Skip to content

Create a one-off destination

POST/v1/streams/{streamId}/createAndLinkOneOffDestination

POST
/v1/streams/{streamId}/createAndLinkOneOffDestination
curl --request POST \
--url https://api.ligr.live/rest/v1/streams/1/createAndLinkOneOffDestination \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "type": "youtube", "url": "example", "key": "example" }'

Create a new destination and link it to the stream, for a single match.

streamId
required
number format: double
Media typeapplication/json
object
name
string
type
required
string
Allowed values: youtube facebook twitter linkedin tiktok twitch custom perform genius img igame fifa+ infront
url
required
string
key
required
string
Media typeapplication/json
object
id
required

Entity identifier

integer format: int32
>= 1
Examplegenerated
{
"id": 1
}

Request is invalid

Media typeapplication/json
object
message
required
string
details
required
object
key
additional properties
Examplegenerated
{
"message": "example",
"details": {
"additionalProperty": "example"
}
}

Missing or invalid api key

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

Api key provides insufficient access for the request

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

Stream not found

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

Api key has made too many requests

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

An unexpected error has occured. If problems persist please contact support

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}