aiAssignmentsGetAssignment
String aiAssignmentsGetAssignment(actionType)
GET /api/2.0/ai/assignments/get-assignment
Get assignment
Returns the profile bound to one AI action, without applying the Default fallback - an empty answer means this action has no profile of its own, not that nothing is configured. actionType is required and is read from the query. Use GET api/2.0/ai/assignments/resolve-for-action to learn which profile would actually serve the action. This reads the portal-wide binding and accepts no entityId.
Parameters
| Name | In | Type | Description | Notes |
|---|---|---|---|---|
| actionType | query | String | The AI action the request applies to - one of Default, Chat, Code, Summarization, Translation, TextAnalyze, ImageGeneration, OCR, Vision, FormAnalysis. | [required] [example: Chat] |
Responses
| Status code | Description | Type | Response headers |
|---|---|---|---|
| 200 | The profile bound to the action, or an empty result when it has none of its own. | String | - |
| 400 | actionType 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 | - |
| 500 | Unhandled failure. The reason is logged server-side and never echoed back. | AiErrorResponse | - |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json