Skip to main content

aiWebSearchClear

AiSuccessResponse aiWebSearchClear(AiWebSearchClearRequest)

DELETE /api/2.0/ai/web-search/clear

Clear the web-search configuration

Removes the portal's web-search configuration, after which web search is unavailable everywhere it was not configured separately. This is not scoped: it takes no entityId and any body sent with it is ignored, so it cannot be used to clear one room's configuration. Clearing an already-unconfigured portal is not an error and the call answers success either way. The stored provider key is destroyed with the configuration and has to be entered again.

Parameters​

NameInTypeDescriptionNotes
AiWebSearchClearRequestbodyStringIgnored. The operation always clears the portal-wide configuration, so send an empty body; a value here does not scope it to a room.[required]

Responses​

Status codeDescriptionTypeResponse headers
200Confirms the portal has no web-search configuration any more.AiSuccessResponse-
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