Skip to main content

aiToolsRemoveCustomServer

AiSuccessResponse aiToolsRemoveCustomServer(AiToolsRemoveCustomServerRequest)

DELETE /api/2.0/ai/tools/remove-custom-server

Remove custom server

Unregisters a custom MCP server from the scope, so the model is no longer offered its tools. The name is required and may be sent in the body or as a query parameter, and entityId has to name a room the caller can open. A name that is not registered is not reported: the call answers success without removing anything. The server itself is untouched - only this portal's registration is dropped.

Parameters​

NameInTypeDescriptionNotes
AiToolsRemoveCustomServerRequestbodyAiToolsRemoveCustomServerRequest[required]

Responses​

Status codeDescriptionTypeResponse headers
200Confirms the request was accepted, whether or not a registration was removed.AiSuccessResponse-
400The server name 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-
404The referenced object does not exist: an unknown or deleted room named by entityId, or an object the caller cannot read - for those the two cases are deliberately indistinguishable.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