Hello everyone,
I am an SDET and currently working with the REST API in Python/Postman. I have been able to perform a PUT operation with an HTTP REST API call to a particular endpoint.
I created a pull request with 2 branches, then deleted the pull request using the UI, but I am unable to delete the branches with the UI or with HTTP requests.
I am trying to delete an entity of type "scm_branch". However, when I try to do so, I receive an error message saying "Current user is not authorized to perform this operation." The error message indicates that I do not have the necessary permissions to perform this operation.
I would like to know what permission level is required to delete an entity of type "scm_branch". Are there any settings or switches that I need to activate in order for this to work?
Here's the code that I used to try to delete the branch:
/api/shared_spaces/27001/workspaces/6001/scm_branches =>
{"total_count":2,"data":[{"type":"scm_branch","workspace_id":6001,"id":"1001"},{"type":"scm_branch","workspace_id":6001,"id":"1002"}],"exceeds_total_count":false,"total_error_count":0}
Error message :
Thank you in advance for your help.