I’ve started working in the Postman web API and have run into an issue updating collections. I keep getting a malformedRequestError when trying to send back up the collection JSON.
What I’m wanting to be able to do is pull down the collection data via the API and save it as a JSON document, change one bit of data, then upload the collection back to my Postman account using the collections endpoints. Note: I’m not making any changes to the structure of the collection JSON returned by the get single collection endpoint, only the data within
I’m using the Postman Echo collection as an example. I have attached a link to a charles log showing what is happening. Here’s the message I receive: “Data does not match any schemas from “oneOf” at item.1” Am I not able to PUT back the same collection JSON schema on the update collection endpoint as I received from the GET single collection endpoint?
Thanks for your help!