Skip to main content

aiThreadsRename

AiSuccessResponse aiThreadsRename(AiThreadsRenameRequest)

PUT /api/2.0/ai/threads/rename

Rename a chat thread

Replaces a thread's title with the one supplied and bumps its last-edit date. Both threadId and a title with at least one non-whitespace character are required - a blank title is rejected rather than silently stored, so a thread cannot end up nameless. The answer only confirms the write. To have the model produce a title instead of supplying one, use POST api/2.0/ai/threads/regenerate-title.

Parameters​

NameInTypeDescriptionNotes
AiThreadsRenameRequestbodyAiThreadsRenameRequest[required]

Responses​

Status codeDescriptionTypeResponse headers
200Confirms the new title was stored.AiSuccessResponse-
400threadId or the new title is missing.AiErrorResponse-
401Missing asc_auth_key cookie or Authorization header.AiErrorResponse-
403AI is disabled for this portal, the caller is a guest, or the room named by entityId is one the caller cannot open. Relayed from the DocSpace AI service or the Files API.AiErrorResponse-
413The request body is larger than 100 KB, the JSON parser's limit on this route.AiErrorResponse-
500Unhandled failure. The reason is logged server-side and never echoed back.AiErrorResponse-

Return type​

AiSuccessResponse

Authorization​

cookieAuth, bearerAuth

HTTP request headers​

  • Content-Type: application/json
  • Accept: application/json