Upload attachments

POST {{baseUrl}}/api/v1/articleAttachments?workspaceId=<String> &attachmentType=<String>

This API uploads files to your portal gallery.

OAuth Scope

  • Desk.articles.CREATE

Request Params

KeyDatatypeRequiredDescription
workspaceIdstringWorkspace id to which the attachement should be uploaded
attachmentTypestringAttachment type. Allowed values file, blob

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;resourceId&quot;:&quot;96b17694d63cd0f03eadbe4ae534f4ba993bb0&quot;,&quot;extension&quot;:&quot;png&quot;,&quot;name&quot;:&quot;Screen Shot 2018-12-28 at 7.21.58 PM.png&quot;,&quot;filesize&quot;:&quot;62&quot;}