Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Attachment API is not working

Devansh1
Tera Contributor

Hi all,
we are trying rest api for attachment for our table now the problem we are facing is that whenever we are passing it to other third party team they are consuming it from their gateway and when we are hitting this api it is taking only 'json' file. They are saying that it is not getting updated just because of cookies. so my question is do we have any cookie relation between attachment api if yes then how we can remove it so that our api can consume all file type format.

 

 

1 REPLY 1

Sheldon  Swift
ServiceNow Employee
ServiceNow Employee

Hi @Devansh1 - It might be helpful if you can share a code sample (you should remove any sensitive information).  From what you've provided, it sounds like you might have an incorrect Content-Type. File uploads require multipart/form-data and must include a binary file part.