跳到主要内容

aiAssignmentsUnassign

AiSuccessResponse aiAssignmentsUnassign(AiActionType)

DELETE /api/2.0/ai/assignments/unassign

Clear an action's profile

Clears the portal-wide binding of one AI action, after which the action falls back to the Default slot. actionType is required and may be sent in the body or as a query parameter. An action whose slot is already empty is not reported as an error - the call answers success either way, so it is safe to repeat. Clearing Default itself leaves the actions that relied on it unresolvable.

Parameters​

NameInTypeDescriptionNotes
AiActionTypebodyString[required]

Responses​

Status codeDescriptionTypeResponse headers
200Confirms the action now has no profile of its own.AiSuccessResponse-
400actionType 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