Skip to content
vocapable.Docs

Edit Mobile Agent Draft

PATCH
/v1/mobile/agents/{agent_id}/draft
curl --request PATCH \
--url https://api.vocapable.com/v1/mobile/agents/example/draft \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: example' \
--data '{ "expected_updated_at": "2026-04-15T12:00:00Z", "tools": [ "check_calendar" ], "sms_template_ids": [ "example" ], "handoff_target_rep_ids": [ "example" ], "conversation_settings": { "default_language": "en", "supported_languages": [ "en" ], "allow_language_switch": true, "action_decision_mode": "auto", "focused_reply_temperature": 1, "focused_action_timeout_seconds": 1, "speech_pronunciations": { "additionalProperty": "example" } }, "instructions": "example", "tone": "example", "objectives": [ {} ], "max_call_seconds": 1, "name": "example", "assistant_name": "example", "disclosure_config": { "additionalProperty": "example" }, "knowledge_pack_id": "example", "knowledge_pack_version": 1, "stock_voice_id": "example" }'
agent_id
required
Agent Id
string
Idempotency-Key
required
string
<= 255 characters

Unique key for this draft change. Retry with the same key and body to replay the saved result instead of repeating the change. Stored for 24 hours; a replay carries Idempotent-Replay: true.

Media typeapplication/json
MobileAgentDraftUpdate

Partial draft edits; all other saved settings and published versions are retained.

object
expected_updated_at
required
Expected Updated At
string format: date-time
tools
Any of:
Array<string>
Allowed values: check_calendar book_meeting send_sms send_verification_code verify_identity record_sms_consent take_message open_ticket update_lead register_caller record_survey_answer confirm_shift record_shift_response record_qualification schedule_callback transfer_to_human connect_to_phone_team get_phone_queue_status request_phone_queue_callback resolve_customer request_customer_verification get_customer_verification_status lookup_customer prepare_payment send_payment_link get_payment_status collect_payment_by_phone record_optout end_call custom_webhook
sms_template_ids
Any of:
Array<string>
handoff_target_rep_ids
Any of:
Array<string>
conversation_settings
Any of:
ConversationSettings

Versioned dialogue policy; language availability is qualified by the speech service.

object
default_language
Default Language
string
default: en
Allowed values: en es
supported_languages
Supported Languages
Array<string>
Allowed values: en es
allow_language_switch
Allow Language Switch
boolean
default: true
action_decision_mode
Action Decision Mode
string
default: auto
Allowed values: auto focused_auto
focused_reply_temperature
Any of:
number
<= 2
focused_action_timeout_seconds
Any of:
number
>= 1 <= 6
speech_pronunciations
Speech Pronunciations
object
<= 16 properties
key
additional properties
string
instructions
Any of:
string
<= 4000 characters
tone
Any of:
string
<= 300 characters
objectives
Any of:
Array<object>
object
key
additional properties
any
max_call_seconds
Any of:
integer
>= 30 <= 900
name
Any of:
string
>= 1 characters <= 200 characters
assistant_name
Any of:
string
>= 1 characters <= 80 characters
disclosure_config
Any of:
object
>= 1 properties
key
additional properties
string
knowledge_pack_id
Any of:
string
>= 1 characters <= 128 characters
knowledge_pack_version
Any of:
integer
>= 1
stock_voice_id
Any of:
string
>= 1 characters <= 128 characters

Successful Response

Media typeapplication/json
MobileAgentDraft
object
id
required
Id
string
name
required
Name
string
use_case
required
Use Case
string
status
required
Status
string
latest_version
required
Any of:
integer
updated_at
required
Updated At
string format: date-time
tools
required
Tools
Array<string>
Allowed values: check_calendar book_meeting send_sms send_verification_code verify_identity record_sms_consent take_message open_ticket update_lead register_caller record_survey_answer confirm_shift record_shift_response record_qualification schedule_callback transfer_to_human connect_to_phone_team get_phone_queue_status request_phone_queue_callback resolve_customer request_customer_verification get_customer_verification_status lookup_customer prepare_payment send_payment_link get_payment_status collect_payment_by_phone record_optout end_call custom_webhook
sms_template_ids
required
Sms Template Ids
Array<string>
handoff_targets
required
Handoff Targets
Array<object>
DirectRepHandoffTarget

One server-resolved, immutable direct-rep target in an agent snapshot.

A write request names only rep_id values. Control-api resolves those ids against active, transfer-enabled tenant reps and persists this compact snapshot so an AgentVersion never follows a later mutable Settings record. A raw destination is deliberately not part of this customer/model/runtime representation.

object
rep_id
required
Rep Id
string
>= 1 characters <= 128 characters
display_name
required
Display Name
string
>= 1 characters <= 200 characters
conversation_settings
required
ConversationSettings

Versioned dialogue policy; language availability is qualified by the speech service.

object
default_language
Default Language
string
default: en
Allowed values: en es
supported_languages
Supported Languages
Array<string>
Allowed values: en es
allow_language_switch
Allow Language Switch
boolean
default: true
action_decision_mode
Action Decision Mode
string
default: auto
Allowed values: auto focused_auto
focused_reply_temperature
Any of:
number
<= 2
focused_action_timeout_seconds
Any of:
number
>= 1 <= 6
speech_pronunciations
Speech Pronunciations
object
<= 16 properties
key
additional properties
string
instructions
required
Any of:
string
tone
required
Any of:
string
custom_behavior_fields
required
Custom Behavior Fields
Array<string>
Allowed values: instructions tone
objectives
required
Objectives
Array<object>
object
key
additional properties
any
max_call_seconds
required
Max Call Seconds
integer
assistant_name
required
Any of:
string
disclosure_config
required
Disclosure Config
object
key
additional properties
string
knowledge_pack_id
required
Any of:
string
knowledge_pack_version
required
Any of:
integer
knowledge_pack_name
required
Any of:
string
stock_voice_id
required
Any of:
string
voice_profile_id
required
Any of:
string
Example
{
"tools": [
"check_calendar"
],
"conversation_settings": {
"default_language": "en",
"supported_languages": [
"en"
],
"allow_language_switch": true,
"action_decision_mode": "auto"
},
"custom_behavior_fields": [
"instructions"
]
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}