[API] Documentation for createAttachment is a bit confusing
#1489
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
EDIT: I've solved the issue. I was passing the wrong
Content-Typeheaders (needed the uui boundary. Removing the header override fixed it:Currently it seems that the
createAttachmentendpoint allows posting binary data to thefileattribute of the request body, but I can't seem to get this to work. Does this endpoint require the keys in the form data as well as the request body?Here's the error:
And here's all the request data
Data/Keys:
Headers:
Form Data:
Beta Was this translation helpful? Give feedback.
All reactions