Skip to main content
PUT
/
training
/
{id}
/
draft
Toggle draft status
curl --request PUT \
  --url https://api.open.cx/training/{id}/draft \
  --header 'Content-Type: application/json' \
  --data '{
  "draft": true
}'
{
  "statusCode": 123,
  "message": "<string>",
  "error": "<string>"
}

Path Parameters

id
string
required

The unique identifier of the custom training

Body

application/json
draft
boolean
required

Set to true to make draft, false to publish

Response

Default Response