跳到主要内容

aiPreferencesClearDeepMode

AiSuccessResponse aiPreferencesClearDeepMode(AiPreferencesClearDeepModeRequest)

DELETE /api/2.0/ai/preferences/clear-deep-mode

Clear deep mode

Removes the stored extended-thinking setting of a scope (the depth and, with it, the deep-mode toggle), after which reads fall back to the configured default rather than to false. entityId picks a room and omitting it clears the portal-wide preference. Clearing a scope that has no stored value is not an error. This differs from storing false, which is an explicit choice a later read reports as set.

Parameters​

NameInTypeDescriptionNotes
AiPreferencesClearDeepModeRequestbodyStringThe ID of the room whose preference is cleared, as a bare JSON string. Send an empty body to clear the portal-wide preference.[required]

Responses​

Status codeDescriptionTypeResponse headers
200Confirms the scope has no preference of its own and now inherits the default.AiSuccessResponse-
400entityId is not a room ID.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