Skip to main content

aiProfilesDelete

AiSuccessResponse aiProfilesDelete(AiProfilesDeleteRequest)

DELETE /api/2.0/ai/profiles/delete

Delete a provider profile

Deletes an AI provider profile and cleans up every assignment pointing at it: the Default slot moves to the first remaining profile and the other slots are left unbound. The ID is required and may be sent in the body or as a query parameter. An unknown ID is not reported - the call answers success without deleting anything. Threads already bound to the profile keep the stored reference, so a round on such a thread falls back to whatever the scope resolves to.

Parameters​

NameInTypeDescriptionNotes
AiProfilesDeleteRequestbodyStringThe ID of the profile to delete, as a bare JSON string.[required]

Responses​

Status codeDescriptionTypeResponse headers
200Confirms the request was accepted, whether or not a profile was deleted.AiSuccessResponse-
400The profile ID 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