Storm docs logo
Search the docs.../
Explore Storm Products

Cluster Source Command

Executes a command on a specific stream source.

Request

PropertyValue
MethodPOST
URL/api/cluster/streams/{streamKey}/sources/{sourceId}/command
Content-Typeapplication/json
AuthenticationBearer Token
Request
Code iconbash
curl -X POST "{BASE_URL}/api/cluster/streams/{streamKey}/sources/{sourceId}/command" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'

Path Parameters

ParameterTypeRequiredDescription
streamKeystringYesUnique identifier of the stream
sourceIdstringYesUnique identifier of the stream source
Request
Code iconbash
curl -X POST "{BASE_URL}/api/cluster/streams/{streamKey}/sources/{sourceId}/command" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"

Request Body

ParameterTypeRequiredDescription
data.attributes.commandstringYesCommand to execute (see available commands below)

Available Commands

CommandDescription
deleteRemoves the source from the stream
moveToTopMoves the source to the highest priority position
moveUpMoves the source one position up in the priority list
moveDownMoves the source one position down in the priority list
Example Request Body
Code iconjson
{
  "data": {
    "attributes": {
      "command": "delete"
    }
  }
}

Response Body

ParameterTypeDescription
messagestringResponse status message

Metadata

ParameterTypeDescription
meta.executionTimeintegerRequest processing time in milliseconds
meta.generatedAtintegerResponse generation timestamp (Unix timestamp in ms)
Successful Response (200)
Code iconjson
{
  "meta": {
    "executionTime": 12,
    "generatedAt": 1770287210383
  },
  "message": "Source has been deleted"
}

Error Responses

ParameterTypeDescription
messagestringHuman-readable error message
Source Not Found (404)
Code iconjson
{
  "message": "Source not found"
}
Other Errors (4xx/5xx)
Code iconjson
{
  "message": "Error message"
}
Support Needed?

Create a free ticket and our support team will provide you necessary assistance.

Blog
Support
About us
Patents
Term of use
Privacy policy
Contact
©2026 Storm Streaming Media. All Rights Reserved.