Update Assistant

Partial update — only the fields you pass are changed. Every call writes a versioned snapshot to the assistant’s edit history with changedBy.source = "api".

PATCH/v2.0/assistants/{modelId}

Body

Any field accepted by Create Assistant can be passed here. To manage the channel binding:

Channel binding

ParameterTypeDescription
channel.activatebooleanResolve the channel from the org and bind it to this assistant. Detaches the channel from any other assistant
channel.platformstringRequired with channel.activate. whatsapp | instagram | messenger
channel.brandNumberstringOptional WhatsApp number disambiguator
channel.deactivatebooleanDisconnect the channel without changing other config
clearChatHistorybooleanAlso clear the AI service's per-channel chat history cache

Examples

curl -X PATCH https://api.sendiee.com/v2.0/assistants/kQ8z3cR7hV2bWa \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "systemPrompt": "You are Acme support. Keep replies under 3 sentences.",
    "memoryMinutes": 30
  }'
  • POST/v2.0/assistants/{modelId}/toggle
    body { "isActive": true|false } — quickly enable / disable.
  • DELETE/v2.0/assistants/{modelId}
    deletes the assistant + its history.

Response

{
  "success": true,
  "data": {
    "modelId": "kQ8z3cR7hV2bWa",
    "name": "Sales bot",
    "isActive": true,
    "isConnected": true
  }
}