Stream Copy
...
Request
| Property | Value |
|---|---|
| Method | POST |
| URL | /api/streams/{appName}/{streamKey}/command |
| Content-Type | application/json |
| Authentication | Bearer Token |
Request
curl -X POST "{BASE_URL}/api/streams/{appName}/{streamKey}/command" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
appName | string | Yes | Application name |
streamKey | string | Yes | Stream key |
Request
curl -X POST "{BASE_URL}/api/streams/{appName}/{streamKey}/command" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
data.attributes.command | string | Yes | Command name |
Example Request
{
"data": {
"attributes": {
"command": "restartCopy"
}
}
}
Response Body
Metadata
| Parameter | Type | Description |
|---|---|---|
meta.executionTime | integer | Request processing time in milliseconds |
meta.generatedAt | integer | Response generation timestamp (Unix timestamp in ms) |
Successful Response (200)
{
}
Error Responses
Source Not Found (404)
| Parameter | Type | Description |
|---|---|---|
message | string | Human-readable error message |
{
"message": "Application not found"
}
Support Needed?
Create a free ticket and our support team will provide you necessary assistance.