跳到主要内容

aiPreferencesSetDeepMode

AiSuccessResponse aiPreferencesSetDeepMode(AiPreferencesSetDeepModeRequest)

PUT /api/2.0/ai/preferences/set-deep-mode

Set deep mode

Stores the deep-mode toggle of a scope. false stores the off depth; true keeps the depth already stored and falls back to the default depth (medium) when none is. value has to be a real boolean: a string, a number or an absent value is rejected rather than coerced, so the string false cannot silently switch the setting on and an empty request cannot silently switch it off. entityId picks a room and omitting it writes the portal-wide preference. It is idempotent, so there is no need to read the current value first.

Parameters​

NameInTypeDescriptionNotes
AiPreferencesSetDeepModeRequestbodyAiPreferencesSetDeepModeRequest[required]

Responses​

Status codeDescriptionTypeResponse headers
200Confirms the preference was stored.AiSuccessResponse-
400value is missing or is not a boolean, or entityId 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