Skip to content

Latest commit

 

History

History
288 lines (171 loc) · 2.48 KB

delete-tag-9575fc8.md

File metadata and controls

288 lines (171 loc) · 2.48 KB

Delete Tag

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

Request Headers


Header

Required

Values

Accept

no

application/json

application/xml

x-csrf-token

yes

Value of x-csrf-token

Request Body


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

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

Tag was deleted successfully

400

Bad Request

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