Skip to content

Latest commit

 

History

History
323 lines (199 loc) · 2.82 KB

create-tag-442cf83.md

File metadata and controls

323 lines (199 loc) · 2.82 KB

Create Tag

Create a new tag.

URI: /sap/opu/odata/sap/MANAGE_GIT_REPOSITORY/Tags

Operation Type: CRUD

**HTTP Method:**POST

Request Headers

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

Request Parameters

No parameters.

Request Body


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

Sample Code:

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"
}


Response Status and Error Codes


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.

Request Payload Example

Sample Code: