Changes the state of a task
Request
Body Params application/json
{
"alias": "cf290f75-e8ba-4b88-b50b-a737e4e32b9f",
"state": "stop"
}
Request Code Samples
curl --location --request POST 'https://streampeg.com/api/changeTaskState' \
--header 'X-Auth-Token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"alias": "cf290f75-e8ba-4b88-b50b-a737e4e32b9f",
"state": "stop"
}'
Responses
application/json {"error":true,"msg":"Status of this task is cant be started"}
Modified at 2024-08-06 14:52:16