Upload article attachments

POST
/v1/knowledge/articles/attachments

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.

Authorization

ApiKeyAuth knowledge.content:w
headerAuthorization<token>

Scope: knowledge.content:w

Request Body

multipart/form-data
  1. body
files?array<unknown>

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

Response Body

The uploaded attachments, with partial errors if any

application/json
  1. response
data?array<>

Successfully uploaded attachments

partialErrors?array<>

Errors for attachments that failed

Example Request
curl -X POST 'https://dev.dixa.io/v1/knowledge/articles/attachments' \  -H 'Authorization: <API token>'
{
"data": [
{
"originalFilename": "logo.png",
"url": "https://cdn.example.com/images/org-id/uuid.png"
},
{
"originalFilename": "banner.jpg",
"url": "https://cdn.example.com/images/org-id/uuid2.jpg"
}
],
"partialErrors": []
}