Skip to main content
PATCH
Update ai chat
Required permissions:
  • ai_chat:update

Autorisationer

Authorization
string
header
påkrævet

An Account API key, account-scoped JWT, App API key, or user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************.

Scopes

ai_chat:update

Sti-parametre

id
string
påkrævet

The unique identifier of the AI chat to update (e.g., "ai_chat_XXXXX").

Eksempel:

"aich_xxxxxxxxxxxxx"

Krop

application/json

Parameters for UpdateAiChat

current_account_id
string | null

The unique identifier of the account to set as context for the AI chat (e.g., "biz_XXXXX").

notification_preference
enum<string> | null

The notification preference for the AI chat.

Tilgængelige muligheder:
all,
none
title
string | null

The new display title for the AI chat thread (e.g., "Help with billing").

Svar

A successful response

An AI-powered chat conversation belonging to a user, with optional scheduled automation.

agent_identifier
enum<string>
påkrævet

The AI agent that handles this chat. Set when the chat is created and fixed for its lifetime.

Tilgængelige muligheder:
general,
support
blended_token_usage
string
påkrævet

The total number of tokens consumed across all messages in this conversation.

Eksempel:

"123.45"

created_at
string<date-time>
påkrævet

The datetime the ai chat was created.

Eksempel:

"2023-12-01T05:00:00.401Z"

id
string
påkrævet

The unique identifier for the ai chat.

Eksempel:

"aich_xxxxxxxxxxxxx"

last_message_at
string<date-time> | null
påkrævet

The timestamp of the most recent message in this conversation. Null if no messages have been sent yet.

Eksempel:

"2023-12-01T05:00:00.401Z"

message_count
integer
påkrævet

The total number of messages exchanged in this conversation.

Eksempel:

42

notification_preference
enum<string>
påkrævet

The notification preference for this AI chat. all delivers AI chat notifications and badges, while none mutes them.

Tilgængelige muligheder:
all,
none
title
string | null
påkrævet

A short descriptive title for this AI chat conversation. Null if no title has been set.

Eksempel:

"Weekly Revenue Analysis"

updated_at
string<date-time>
påkrævet

The datetime the ai chat was last updated.

Eksempel:

"2023-12-01T05:00:00.401Z"

user
object
påkrævet

The user who owns this AI chat conversation.