- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 10:42 AM
We are trying to send an attachment using multipart/form-data in postman and get this error:
{
"error": {
"message": "Failed to create the attachment. File part might be missing in the request.",
"detail": null
},
"status": "failure"
}
The same is working from ServiceNow REST API explorer.
I have seen similar post since 2015 but no correct answers till now 🙂
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2024 06:14 AM
Note: I have done entirely on my instance.....
So, I have reproduce your steps in my instance.
I think you should also follow the same, I guess the version of POSTMAN you are using is not current version so just upgrade it or use the current version of Postman here is the steps that I followed.
Inside Body ---> Form-data ---> file (File) type.....
Authentication used : Basic
Also no need to configure Header in this case rather
Inside Authorization....
Step 1:
Step 2: Hit that send button...... yessss....
Here is the Sample response....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2024 06:14 AM
Note: I have done entirely on my instance.....
So, I have reproduce your steps in my instance.
I think you should also follow the same, I guess the version of POSTMAN you are using is not current version so just upgrade it or use the current version of Postman here is the steps that I followed.
Inside Body ---> Form-data ---> file (File) type.....
Authentication used : Basic
Also no need to configure Header in this case rather
Inside Authorization....
Step 1:
Step 2: Hit that send button...... yessss....
Here is the Sample response....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2024 09:37 PM
@saurabh_dubey I used the online version of postman now and it worked like a charm. Thank you very much for your help 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2024 10:42 PM
Hey @Suggy if it really helped you so please mark this solution as helpful, it will motivate community members to contribute more.
😀
Saurabh Dubey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 08:52 AM
Hey, I already marked your answer as Correct answer 🙂