Skip to content

Upload article attachments

Request

Upload one or more image files to be used as attachments in knowledge articles. Supported formats: image/png, image/jpeg, image/gif, image/webp. Maximum 5 files per request, 4 MB per file, with a total request payload limit of 10 MB. Supports partial success.

Security
ApiKeyAuth(Required scopes: knowledge.content:w)
Bodymultipart/form-datarequired
filesArray of strings, (binary)

One or more image files to upload as article attachments. Each part must be a supported image format.

POST
/beta/knowledge/articles/attachments
curl -i -X POST \
  https://dev.dixa.io/beta/knowledge/articles/attachments \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: multipart/form-data' \
  -F 'files=["string"]'

Responses

The uploaded attachments, with partial errors if any

Bodyapplication/json
dataArray of objects(AttachmentResult)

Successfully uploaded attachments

partialErrorsArray of objects(AttachmentError)

Errors for attachments that failed

Response
{ "data": [ { … }, { … } ], "partialErrors": [] }