Skip to main content
POST
https://app.ocoya.com/api/_public/v1
/
workflow
/
{workflowId}
Toggle workflow on or off
curl --request POST \
  --url https://app.ocoya.com/api/_public/v1/workflow/{workflowId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "on": true
}'

Authorizations

X-API-Key
string
header
required

Path Parameters

workflowId
string
required

Ocoya workflow ID.

Example:

"cmajvvb9q0003ja5vh0538j6r"

Body

application/json
on
boolean
required

Set to true to enable the workflow or false to disable it.

Example:

true