Recent searches
No recent searches
Help Center API Create Article Attachment fails due to improper Content-Type deduction
Posted Nov 29, 2023
I am experiencing a new issue when creating a help center article attachment. When attempting to create the attachment, I receive a 400 status code and the following error:
{
"errors": "content_type Expected asset of type application/xml but got audio/mpeg"
}
The endpoint I am using is documented here:
I have an application calling the following endpoint:
POST /api/v2/help_center/articles/{article_id}/attachments
The file in question has a proprietary file extension used by my organization, so common methods of deducing the file type may be unreliable. When sending a similar request in Postman, I must use multipart/form-data for the Content-Type header or I receive a 400 response with the following error:
0
0 comments