Use this endpoint to upload files for use in articles (either inline images or attached files). Note that the content-type is multipart/form-data. A link to the file will be returned in the response. If the file being uploaded is an image, the final image dimensions will also be returned in the response.
An example curl request to upload a file:
An API key used to authenticate this request.
The id of the article the asset will be associated with.
The type of asset being uploaded.
'image': an inline image displayed in the text of the article.
'attachment': a file, such as a Word document or PDF that cannot be displayed in the text of the article but can be displayed as a link.
The file name will default to the name of the file being uploaded but can be overridden using this attribute.