انتقل إلى المحتوى الرئيسي

Change an AI attachment or switch it on or off

PATCH 

/v1/agents/:agentId/attachments/:attachmentId

x-scope: "attachments:write"

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.

Request​

Responses​

The attachment as it now is.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.