curl --request PUT \
--url https://api.open.cx/training/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"directory_id": "<string>",
"answer": "<string>",
"question": "<string>",
"restricted_to_channels": [
"web"
],
"restricted_to_segments": [
"<string>"
],
"type": "BEHAVIORAL",
"is_draft": true
}
'{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Update an existing custom training entry identified by its ID. This allows you to modify the title, body, or category of a custom training that has already been created.
curl --request PUT \
--url https://api.open.cx/training/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"directory_id": "<string>",
"answer": "<string>",
"question": "<string>",
"restricted_to_channels": [
"web"
],
"restricted_to_segments": [
"<string>"
],
"type": "BEHAVIORAL",
"is_draft": true
}
'{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The directory ID for the custom training. This is the ID of the directory that the custom training will be added to. This is optional.
The answer for the custom training. This is the answer for the custom training.
The question for the custom training. This is the question for the custom training.
(is array is empty, instruction works for all channels, if array contains channels, instruction is limited to those channels
web, email, phone_voice, slack, sms, whatsapp, instagram, messenger, api, web_voice (is array is empty, instruction works for all segments, if array contains segments, instruction is limited to those segments
The type of custom training. This is the type of custom training that will be created.
BEHAVIORAL, SCENARIO_SPECIFIC The draft status of the custom training. This is the draft status of the custom training.
Custom training updated successfully
Was this page helpful?