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
| Name | In | Type | Description | Notes |
|---|---|---|---|---|
| AiProfilesDeleteRequest | body | String | The ID of the profile to delete, as a bare JSON string. | [required] |
Responses
| Status code | Description | Type | Response headers |
|---|---|---|---|
| 200 | Confirms the request was accepted, whether or not a profile was deleted. | AiSuccessResponse | - |
| 400 | The profile ID is missing. | AiErrorResponse | - |
| 401 | Missing asc_auth_key cookie or Authorization header. | AiErrorResponse | - |
| 403 | AI 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 | - |
| 413 | The request body is larger than 100 KB, the JSON parser's limit on this route. | AiErrorResponse | - |
| 500 | Unhandled failure. The reason is logged server-side and never echoed back. | AiErrorResponse | - |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json