Create Unassociated Attachment

POST {{baseUrl}}/api/v2/help_center/articles/attachments

You can use this endpoint for bulk imports. It lets you upload a file without associating it to an article until later. See Associate Attachments in Bulk to Article.

Note: Associate attachments to articles as soon as possible. For example, if you use the endpoint to bulk-import inline images, only signed-in end users can see the images; anonymous users don't have permission to view unassociated images. Also, from time to time, we purge old article attachments not associated to any article. To ensure you don't lose an uploaded file, associate it to an article.

Allowed for

  • Agents

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: Created

{"article_attachment":{"article_id":"\u003cinteger\u003e","content_type":"\u003cstring\u003e","content_url":"\u003cstring\u003e","created_at":"\u003cstring\u003e","file_name":"\u003cstring\u003e","id":"\u003cinteger\u003e","inline":"\u003cboolean\u003e","size":"\u003cinteger\u003e","updated_at":"\u003cstring\u003e","url":"\u003cstring\u003e"}}