Skip to main content
PATCH
/
public
/
v1
/
media-service
/
slots
/
{slot-id}
Toggle Slot
curl --request PATCH \
  --url https://api.topsort.com/public/v1/media-service/slots/{slot-id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "isActive": true
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

A valid API key generated in Topsort's UI.

Path Parameters

slot-id
string
required

The id of the slot. The id of the slot.

Body

application/json

Request body to activate or deactivate the slot.

isActive
boolean
required

Set is_active to true to activate the slot, or false to deactivate it.

Response

Successful Response