Change an AI attachment or switch it on or off
update_attachmentChange an AI attachment or switch it on or off
Changes the fields you send. active: true switches it on: it needs its media stored
(409 attachment_has_no_media) and room under the agent's 100 active attachments
(409 too_many_active_attachments); one already on stays editable. type can change
only while no media is stored (409 attachment_type_locked): the files were checked
against it. A change reaches the AI from its next reply.
The answer's message_weight says what the agent now reads (Main Instructions, active
knowledge, active attachments' text, in characters) and what one of its replies costs; when
it has a notice, pass it on to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Can't contain angle brackets. | |
| type | No | Only while no media is stored. | |
| active | No | `true` switches it on (needs media), `false` off. | |
| agent_id | Yes | The agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`. | |
| priority | No | ||
| description | No | An empty string clears it. | |
| when_to_send | No | ||
| attachment_id | Yes | An AI attachment of the agent. Another agent's attachment is `404 not_found`. |