StreamPEG API Docs
    StreamPEG API Docs
    • Get Current Balance
      GET
    • Files
      GET
    • Tasks
      GET
    • Storage Stats
      GET
    • Change Task State
      POST
    • Create Task
      POST
    • Remove File
      POST
    • Remove Task
      POST
    • Upload File
      POST

      Change Task State

      POST
      /api/changeTaskState
      Changes the state of a task

      Request

      Header Params

      Body Params application/json

      Example
      {
          "alias": "cf290f75-e8ba-4b88-b50b-a737e4e32b9f",
                  "state": "stop"
      }

      Request Code Samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      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

      🟢200Success
      application/json
      Body

      Example
      {"error":true,"msg":"Status of this task is cant be started"}
      Modified at 2024-08-06 14:52:16
      Previous
      Storage Stats
      Next
      Create Task
      Built with