Update an existing assistant programmatically
ASSISTANT_API scope and access to the assistant you want to update.actions, inputFields, conversationStarters, and attachments completely replace existing values when provided[] to remove all actions/fields/attachmentsnull for emoji, description, or instruction to clear themassistantId:
| Parameter | Type | Required | Description |
|---|---|---|---|
assistantId | string | Yes | UUID of the assistant to update |
name | string | No | Updated name (1-255 characters) |
description | string | No | Updated description (max 256 chars, null to clear) |
emoji | string | No | Updated emoji icon (null to clear) |
instruction | string | No | Updated system prompt (max 16384 chars, null to clear) |
model | string | No | Updated model UUID |
creativity | number | No | Updated temperature between 0-1 |
conversationStarters | string[] | No | Updated array of suggested prompts (replaces existing) |
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 |
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 executinginputFields array structure, see the Create Assistant 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"
UUID of the assistant to update
Updated name
1 - 255Updated description (null to clear)
256Updated emoji icon (null to clear)
Updated system prompt (null to clear)
16384Updated input type for the assistant
PROMPT, STRUCTURED Updated model UUID
Updated temperature
0 <= x <= 1Updated array of suggested prompts (replaces existing)
Updated array of actions (replaces existing)
Updated array of form fields (replaces existing)
Updated array of attachment UUIDs (replaces existing)
Updated web search capability setting
Updated image generation capability setting
Updated code interpreter capability setting
Updated canvas capability setting