SOLVED

How to upload document data via POSTMAN?

Brass Contributor

Hello,

 

i am prototyping with universal printing for a Dynamics 365 warehouse label printing solution.

I am struggeling to upload my document to a print job via POSTMAN.

Die "binary" function with an pdf returns "bad request".

How can I upload an document correctly?

 

Thanks,

Stefan

body.png

 

headers.png

 

 

1 Reply
best response confirmed by SKrieger (Brass Contributor)
Solution

Just in case somebody run into the same.

The content-type must be set to "application/octet-stream" not "application/json".

1 best response

Accepted Solutions
best response confirmed by SKrieger (Brass Contributor)
Solution

Just in case somebody run into the same.

The content-type must be set to "application/octet-stream" not "application/json".

View solution in original post