v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-25173140700.7 KB
Chat

Set a chat tool setting

Enable or disable a tool for a chat, creating the setting if needed.

put/chats/{chat_id}/tools/{tool_id}

Path parameters

chat_idinteger required
tool_idinteger required

ID of the tool to configure.

ID of the tool to configure.

Query parameters

cookie_namestring nullable

Request body

enabledboolean required

Whether the tool is enabled for the chat.

Example request

{
  "enabled": true
}

Response

Successful Response

chat_idinteger required

ID of the chat.

tool_idinteger required

ID of the tool.

enabledboolean required

Whether the tool is enabled for the chat.

created_atstring date-time required

When the setting was created.

updated_atstring date-time nullable required

When the setting was last updated, or null if never.

Example response

{
  "chat_id": 42,
  "tool_id": 7,
  "enabled": true,
  "created_at": "2026-01-15T10:30:00Z",
  "updated_at": "2026-01-16T08:00:00Z"
}