Upload and associate attachments

POST {{baseUrl}}/api/v1/articles/:article_id/translations/{locale}/attachments?attachmentType=<String>

This API attaches files to translations and also uploads them to the knowledge base gallery

OAuth Scope

  • Desk.articles.CREATE

Request Params

KeyDatatypeRequiredDescription
attachmentTypestringAttachment type. Allowed values file, blob

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;resourceId&quot;:&quot;dkx4q10b53a2b6e844addaec2723cd4b07092&quot;,&quot;extension&quot;:&quot;txt&quot;,&quot;name&quot;:&quot;aadas1_2_3_5_54_.txt&quot;,&quot;viewUrl&quot;:&quot;https://desk.zoho.com/support/DocsDisplay?attachId=e91351dc29e5b7394d93c8deb91b642a0b498ee34174141d\u0026action=view\u0026zgId=17ec4c79299ee107dc91a236738b3d70\u0026entityId=e91351dc29e5b739421838319e770b0a42acf79f93f757e8&quot;,&quot;downloadUrl&quot;:&quot;https://desk.zoho.com/support/DocsDisplay?attachId=e91351dc29e5b7394d93c8deb91b642a0b498ee34174141d\u0026action=download\u0026zgId=17ec4c79299ee107dc91a236738b3d70\u0026entityId=e91351dc29e5b739421838319e770b0a42acf79f93f757e8&quot;,&quot;createdTime&quot;:&quot;2018-07-10T22:45:05.865Z&quot;,&quot;filesize&quot;:&quot;62&quot;}