Delete a branch.
URI: /sap/opu/odata/sap/MANAGE_GIT_REPOSITORY/Tags(sc_name='{sc_name}',commit_id='{commit_id}',tag_name='{tag_name}')
Operation Type: CRUD
**HTTP Method:**DELETE
Header |
Required |
Values |
---|---|---|
Accept |
no |
application/json application/xml |
x-csrf-token |
yes |
Value of x-csrf-token |
Parameter |
Required |
Data Type |
Description |
Parameter Type |
---|---|---|---|---|
sc_name |
yes |
string |
name of the software component |
query string |
commid_id |
yes |
string |
long commit id |
query string |
tag_name |
yes |
string |
name of the branch |
query string |
DELETE /sap/opu/odata/sap/MANAGE_GIT_REPOSITORY/Branches(branch_name='my-to-be-deleted-branch',sc_name='/DMO/GIT_REPOSITORY') HTTP/1.1 Host: host.com Authentication: basicAuthentication Accept: application/json
HTTP/1.1 204 No Content
Code |
Reason |
Description |
---|---|---|
204 |
No content |
Tag was deleted successfully |
400 |
Bad Request |
Could not delete tag due to the values passed in the request body. |