Skip to navigation

Update job agent

View as Markdown

Updates specific fields of a job agent using its UUID. Verifies the agent has at least one job. At least one field must be provided for update. Caution: Update overwrites everything — ensure your payload includes all data you want to keep to prevent data loss (e.g. GET the job agent first, merge changes, then PATCH).

Authentication

X-API-Keystring

API key for authentication. Example: raya_ABCD1234567890abcdef

Path parameters

idstringRequiredformat: "uuid"
The UUID of the job agent

Request

This endpoint expects an object.
namestringOptional
Job agent name. If provided, replaces the existing name.
agent_rolestringOptional

How the voice agent should behave (e.g. prescreening interviewer). Not the job/position title. If provided, replaces the agent role.

introductionstringOptional
Introduction text. If provided, replaces the introduction.
about_jobstringOptional

About the job. If provided, replaces the about-job section.

about_companystringOptional

About the company. If provided, replaces the about-company section.

extra_instructionsstringOptional
Extra instructions. If provided, replaces the extra instructions.
closing_messagestringOptional
Closing message. If provided, replaces the closing message.
questionslist of stringsOptional
Interview questions. If provided, replaces the questions list.
output_fieldslist of objectsOptional

Array of key-description pairs. Each item has key and description only. If provided, replaces the agent’s output_fields.

output_instructionsstringOptional

Instructions for how to populate output_fields after a call. If provided, replaces the agent’s output_instructions.

webhook_urlstringOptionalformat: "uri"

Webhook URL for callbacks (sent on call completed or call failure). Must be a valid URL or null. See Webhooks for payload format and when webhooks are sent.

required_silence_after_speechdoubleOptional>=0
Required silence after speech in seconds
allowed_silence_before_nudgedoubleOptional>=0
Allowed silence before nudge in seconds
allowed_speech_before_nudgedoubleOptional>=0
Allowed speech before nudge in seconds
out_diddoubleOptional
Outbound DID number for the agent's phone record
allow_call_transferbooleanOptional
India only. When true, live call transfer to a human is allowed.
transfer_destination_phonestring or nullOptionalformat: "^[0-9]{10}$"

India mobile (10 digits, no +91). Null clears stored transfer destination.

Response

Job agent updated successfully
uuidstringOptionalformat: "uuid"
Unique identifier of the agent
namestringOptional
Name of the agent
agent_rolestringOptional

Agent role: how the voice agent should behave (e.g. prescreening interviewer). Distinct from job role (the position being hired for).

introductionstringOptional
Introduction
about_jobstringOptional
About job
about_companystringOptional
About company
extra_instructionsstringOptional
Extra instructions
output_instructionsstringOptional

Instructions for how to populate output_fields after a call.

closing_messagestringOptional
Closing message
questionslist of stringsOptional
Questions
output_fieldslist of objectsOptional

Array of key-description pairs. Each item has key and description only (no extra properties).

agent_argsmap from strings to anyOptional

Agent arguments as a JSON object (e.g. {“contact_name”: “John”, “order_id”: “123”}). Not an array.

required_silence_after_speechdouble or nullOptional
Required silence after speech in seconds
allowed_silence_before_nudgedouble or nullOptional
Allowed silence before nudge in seconds
allowed_speech_before_nudgedouble or nullOptional
Allowed speech before nudge in seconds
out_diddouble or nullOptional
Outbound DID number
in_diddouble or nullOptional

Inbound DID number (read-only; for reference)

webhook_urlstring or nullOptional

Webhook URL for callbacks (sent on call completed or call failure). See Webhooks for payload format.

allow_call_transferbooleanOptional
India only. When true, live call transfer to a human is allowed.
transfer_destination_phonestring or nullOptionalformat: "^[0-9]{10}$"

India mobile (10 digits, no +91). Null if unused.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error