I’m trying to upload a document using the /assets api found here: https://www.contentstack.com/docs/developers/apis/content-management-api/#upload-asset
I have modified my curl command to look like the one in the documents (removing some non-needed optional parameters):
curl -X POST https://api.contentstack.io/v3/assets?relative_urls=true
-H 'api_key: redacted'
-H 'authorization: redacted'
-H 'content-type: multipart/form-data'
-F 'asset[upload]=/home/tmarshall/Downloads/My-pdf.pdf'
And the error I am getting back is:
{"error_message":"We're sorry, but something went wrong. We've been notified about this issue and will take a look at it shortly. Please contact support@contentstack.com for assistance.","error_code":194}
Please advise!
Best answer by Saqlain
View original