aiSettingsSetVectorization
AiVectorizationSettingsWrapper aiSettingsSetVectorization(AiSettingsSetVectorizationRequest)
PUT /api/2.0/ai/config/vectorization
Update vectorization settings
Replaces the portal's vectorization settings and returns the stored result. The body is proxied unchanged to the DocSpace AI service, which validates it, so a rejected value is reported with that service's own verdict rather than being checked here. Changing the embedding provider does not re-index anything already indexed - start that separately with POST api/2.0/ai/vectorization/tasks. This is a portal-wide setting and requires the permissions the AI service demands for it.
Parameters
| Name | In | Type | Description | Notes |
|---|---|---|---|---|
| AiSettingsSetVectorizationRequest | body | Map | The portal's vectorization settings, proxied unchanged to the DocSpace AI service, which owns and validates the shape. Read the current one with GET api/2.0/ai/config/vectorization and send it back changed. | [required] |
Responses
| Status code | Description | Type | Response headers |
|---|---|---|---|
| 200 | The stored vectorization settings. | AiVectorizationSettingsWrapper | - |
| 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
AiVectorizationSettingsWrapper
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json