Update an existing agent programmatically
Documentation Index
Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
Use this file to discover all available pages before exploring further.
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 is required.
| Parameter | Type | Required | Description |
|---|---|---|---|
agentId | string | Yes | UUID of the agent to update |
name | string | No | Agent name (1-80 characters) |
description | string | No | Description (max 500 chars, "" to clear) |
emoji | string | No | Emoji icon (max 16 chars, null to clear) |
instruction | string | No | System prompt (max 40000 chars, "" to clear) |
model | string | No | Model identifier (deployment name from the Models API) |
creativity | number | No | Temperature between 0 and 1 |
conversationStarters | string[] | No | Suggested prompts, max 20, each 1-255 chars (replaces existing) |
actions | array | No | Actions (replaces existing) |
inputFields | array | No | Form fields (replaces existing) |
attachments | string[] | No | Attachment UUIDs (replaces existing) |
webSearch | boolean | No | Enable web search |
imageGeneration | boolean | No | Enable image generation |
dataAnalyst | boolean | No | Enable code interpreter |
inputType | string | No | Input type: “PROMPT” or “STRUCTURED” |
canvas | boolean | No | Enable canvas |
extendedThinking | boolean | No | Enable extended thinking mode |
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