Update an existing agent programmatically
api.langdock.com with your deployment’s base URL: <deployment-url>/api/publicAGENT_API scope and access to the agent you want to update.actions, inputFields, conversationStarters, and attachments completely replace existing values when provided[] to remove all actions/fields/attachmentsnull for emoji to clear it. For description and instruction, send an empty string "" to clear themagentId:
| Parameter | Type | Required | Description |
|---|---|---|---|
agentId | string | Yes | UUID of the agent to update |
name | string | No | Updated name (1-80 characters) |
description | string | No | Updated description (max 500 chars, "" to clear) |
emoji | string | No | Updated emoji icon (max 16 chars, null to clear) |
instruction | string | No | Updated system prompt (max 40000 chars, "" to clear) |
model | string | No | Updated model identifier (deployment name from the Models API) |
creativity | number | No | Updated temperature between 0-1 |
conversationStarters | string[] | No | Updated array of suggested prompts (replaces existing, max 20, each 1-255 chars) |
actions | array | No | Updated array of actions (replaces existing) |
inputFields | array | No | Updated array of form fields (replaces existing) |
attachments | string[] | No | Updated array of attachment UUIDs (replaces existing) |
webSearch | boolean | No | Updated web search capability setting |
imageGeneration | boolean | No | Updated image generation capability setting |
dataAnalyst | boolean | No | Updated code interpreter capability setting |
inputType | string | No | Input type: “PROMPT” or “STRUCTURED” |
canvas | boolean | No | Updated canvas capability setting |
actions array should contain:
actionId (required) - UUID of the action from an enabled integrationrequiresConfirmation (optional) - Whether to require user confirmation before executing (default: true)inputFields array structure, see the Create Agent API documentation.
actions or attachments, always include existing items you want to keep, as the entire array is replaced.API key as Bearer token. Format "Bearer YOUR_API_KEY"
64163842560 <= x <= 164Array of UUID strings identifying attachments for this message
Agent updated successfully