I am trying to use Update part of a collection API to bulk update Authorization methods for all the collections in my workspace.
As per the Postman API Documentation, there is an example for Update part of a collection with the name Update Auth to update the authorization of a collection using the collection ID. The request body in the example is as follows:
Please let me know if the Postman API request to update Auth part of a collection has been updated. Or if there is something wrong with the request I am trying to make.
Oh Ok. Sorry, I understood it wrong. Yes, its working now Thank you!!
Just one more question:
So this API is updating the Authorization tab of the requested collection but it is populating the value section with the actual value of the variable like Bearer 2~4d485** that is passed.
I would like the collection to be updated with just the variable {{loginAccessToken}}
Is there a way to to do this through some escape characters in the Postman Update API?? I have updated a screenshot below if it helps
I also tried in Postman 11.17.1 but ended up with the same result. In Authorization tab, variable value is updated in the Value section instead of the variable name. Attaching screenshot of the Postman version details
Does the same happen if you use a dummy variable? Like {{my_variable}} in the payload?
You’re making those requests in the new version but viewing them in the older enterprise app, correct? In the v11 onwards version, you would see scripts as a menu heading and not Pre-request / Tests.
In terms of using the new Enterprise Application, you’re going to need to discuss that with your team and the admins who have distributed that version.
I guess as a work around, I could just delete my existing variable thus making it dummy, bulk update the request to all my collections and re-enable the variable.
Thank you so much for working through all the issues with me! Appreciate it.
I stand corrected, after trying that process out again, it does resolve the variable value in the field - I don’t think that’s quite right so I’ll speak to the team about that.