POST
/
training
curl --request POST \
  --url https://api.open.cx/training \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "body": "<string>",
  "category": "<string>"
}'
{
  "id": "<string>",
  "organization_id": "<string>",
  "question": "<string>",
  "answer": "<string>",
  "category": "<string>",
  "is_draft": false,
  "accepted_by": 123,
  "draft_payload": "<any>",
  "learned_from_session_id": "<string>",
  "type": "BEHAVIORAL",
  "created_at": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

201
application/json

Returns the created custom training

The response is of type object.