Skip to main content

aiAttachmentsDeleteMany

AiSuccessResponse aiAttachmentsDeleteMany(AiAttachmentsDeleteManyRequest)

DELETE /api/2.0/ai/attachments/delete-many

Delete many

Permanently deletes several attachments in one round trip. ids is optional and an absent value is treated as an empty list, so a malformed request quietly deletes nothing instead of failing. IDs that do not exist are skipped without being reported, so the answer confirms only that the call was accepted. The deletions cannot be undone.

Parameters​

NameInTypeDescriptionNotes
AiAttachmentsDeleteManyRequestbodyListThe IDs of the attachments to delete, as a bare JSON array of strings.[required]

Responses​

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