Skip to main content
PATCH

Overview

Update an agent created by the user who owns the API key. Send only the fields you want to change; fields you leave out keep their values. Nested objects such as callSetting are merged, not replaced. Each update is saved as a new agent version. Phone numbers that follow the agent’s latest version use the change on their next call; numbers pinned to an older version don’t.

Prerequisites

  • An API key for your workspace
  • The agent’s ID, from Get Agents

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
ID of the agent to update.

Request Parameters

You can send any field described in Create Agent, for example:

Response

object
required
The updated agent with its full configuration.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – A field has an invalid value, Invalid system message syntax — …, or id isn’t a valid ID.
  • 401 Unauthorized – Missing or invalid API key.
  • 404 Not Found – Agent not found: the agent doesn’t exist or wasn’t created by the user who owns the API key.
  • 500 Internal Server Error – Unexpected server error.