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>"
}Publish or unpublish a training. Draft trainings are saved but not used by the AI.
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>"
}Was this page helpful?