customer-engagement
knowledge-base
knowledge-base-attachments

Upload attachment

Uploads a file as a new knowledge base attachment. The file is validated and stored.

post/knowledge-base/1/attachments

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    • OAuth 2
      Client credentials
      Token URL: https://api.infobip.com/auth/1/oauth2/token
    • or API key in header Authorization
    • or API key in header Authorization
    • or HTTP basic

Request body multipart/form-data

filestring binary required

Response

Attachment uploaded successfully

idstring uuid required

Unique identifier of the attachment.

namestring required

Name of the attachment.

downloadPublicUrlstring required

Public URL for downloading the attachment from CDN.

publicContentUrlstring

Public URL for accessing the attachment in Public Content.

contentTypestring required

MIME type of the attachment.

sizeInBytesinteger required

Size of the attachment in bytes.

scope'INTERNAL' | 'EXTERNAL' required

Content scope of the node.

Example response

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "product-overview.pdf",
  "downloadPublicUrl": "https://cdn.example.com/attachments/product-overview.pdf",
  "publicContentUrl": "https://public.example.com/attachments/product-overview.pdf",
  "contentType": "application/pdf",
  "sizeInBytes": 1048576,
  "scope": "INTERNAL"
}

Changes

No recorded changes to this operation across all 1 revision of this API.