Create a new tag.
URI: /sap/opu/odata/sap/MANAGE_GIT_REPOSITORY/Tags
Operation Type: CRUD
**HTTP Method:**POST
Header |
Required |
Values |
---|---|---|
Accept |
no |
application/json application/xml |
Content-Type |
no |
application/json application/xml |
x-csrf-token |
yes |
Value of x-csrf-token |
No parameters.
Parameter |
Required |
Data Type |
Description |
Parameter Type |
---|---|---|---|---|
sc_name |
yes |
string |
name of the software component |
Request body |
commit_id |
yes |
string |
long commit id |
Request body |
tag_name |
yes |
string |
name of the tag |
Request body |
POST/sap/opu/odata/sap/MANAGE_GIT_REPOSITORY/Tags HTTP/1.1 Host: host.com Authentication: basicAuthentication X-csrf-token: xCsrfToken Content-Type: application/json Accept: application/json { "sc_name": "string", "commit_id": "string", "tag_name": "string", "tag_description": "string", "tag_created_by": "string", "tag_created_on": "/Date(1492098664000)/", "short_commit_id": "string", "message": "string", "author": "string", "author_mail": "string" }
Code |
Reason |
Description |
---|---|---|
201 |
Created |
Tag was created successfully |
400 |
Bad Request |
Could not create a tag due to the values passed in the request body. |