Skip to content

Latest commit

 

History

History
202 lines (117 loc) · 1.85 KB

delete-branches-425717b.md

File metadata and controls

202 lines (117 loc) · 1.85 KB

Delete Branches

Delete a branch.

URI: /sap/opu/odata/sap/MANAGE_GIT_REPOSITORY/Branches

Operation Type: CRUD

**HTTP Method:**DELETE

Request Headers

Request Parameters


Parameter

Required

Data Type

Description

Parameter Type

sc_name

yes

string

name of the software component

query string

branch_name

yes

string

name of the branch

query string

Request Example

Sample Code:

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

Response Headers

Sample Code:

HTTP/1.1 204 No Content

Response Status and Error Codes


Code

Reason

Description

204

No content

Branch was deleted successfully

400

Bad Request

Could not delete branch due to the values passed in the request body.