Skip to main content
POST
/
v1
/
switch
/
{switchId}
/
source
/
{sourceId}
Add a source to a Switch
curl --request POST \
  --url https://app.variable.global/api/v1/switch/{switchId}/source/{sourceId} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Success"
}
Requires permission:

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

switchId
string<uuid>
required
sourceId
string<uuid>
required

Response

Success

message
string
Example:

"Success"