Agent Build

Updates an existing agent

Changed on

Updates an existing agent in your workspace. Configuration updates apply to the draft; access changes take effect immediately without publishing. When actions is provided, the array replaces the draft list. Ids already on the draft that are missing or soft-deleted are dropped. Ids already on the draft whose integration is not enabled stay. A brand-new missing or unavailable id returns 400. The success body includes preservedUnavailableActionIds only when unavailable draft ids were kept.

patch/agent/v1/update

Request

  • Base URL
    https://api.langdock.com
  • URL
    https://api.langdock.com/agent/v1/update
  • Auth
    HTTP bearer

Request body

agentIdstring uuid required
namestring

Name of the agent or assistant

descriptionstring

Description of what the agent or assistant does. Send an empty string to clear it during an update.

instructionstring

System prompt or instructions. Send an empty string to clear it during an update.

inputType'PROMPT' | 'STRUCTURED' | 'INTEGRATION' | 'SCHEDULED' | 'WEBHOOK'

Input type

emojistring nullable

Emoji icon

modelstring

id from GET /agent/v1/models. Unique deployment names and Anthropic aliases stay valid. When several accessible rows share a name, send the UUID id.

creativitynumber

Temperature for response generation

conversationStartersstring[]

Suggested prompts

webSearchboolean

Enable web search

imageGenerationboolean

Enable image generation

dataAnalystboolean

Deprecated. Accepted for compatibility and ignored.

extendedThinkingboolean

Enable extended thinking

attachmentsstring[]

Attachment UUIDs

knowledgeFolderIdsstring[]

Folder UUIDs

Response

Agent updated successfully

status'success' required
messagestring required
preservedUnavailableActionIdsstring[]

Unavailable action ids already on the draft that were kept. Omitted when empty.

Example response

{
  "message": "Agent updated successfully"
}

Changes