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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
draft
boolean
required

Set true for draft (inactive), false to publish (active)

Response

Default Response