curl --request PUT \
--url https://api.open.cx/training/{id} \
--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
}
'{
"id": "<string>",
"organization_id": "<string>",
"question": "<string>",
"answer": "<string>",
"is_draft": true,
"accepted_by": 123,
"learned_from_session_id": "<string>",
"type": "BEHAVIORAL",
"restricted_to_segments": [
"<string>"
],
"restricted_to_channels": [
"web"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"directory_id": "<string>",
"draft_payload": "<unknown>"
}Update an existing custom training entry identified by its ID. This allows you to modify the title, body, or category of a custom training.
curl --request PUT \
--url https://api.open.cx/training/{id} \
--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
}
'{
"id": "<string>",
"organization_id": "<string>",
"question": "<string>",
"answer": "<string>",
"is_draft": true,
"accepted_by": 123,
"learned_from_session_id": "<string>",
"type": "BEHAVIORAL",
"restricted_to_segments": [
"<string>"
],
"restricted_to_channels": [
"web"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"directory_id": "<string>",
"draft_payload": "<unknown>"
}The unique identifier of the custom training
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.
Default Response
The ID of the custom training
The answer of the custom training
The draft status of the custom training
The type of custom training
BEHAVIORAL, SCENARIO_SPECIFIC (is array is empty, instruction works for all segments, if array contains segments, instruction is limited to those segments
(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 The directory ID of the custom training
Was this page helpful?