POST/projects/api/v3/tags.json
Create a single tag
Creates a new tag. If there's already a tag with the same name in the installation, it will be returned in the response with the status code 200 (OK).
Body Params
Request contains information of a tag to be created or updated.
- Name
tag
- Type
- object
- Description
- Tag contains all the information returned from a tag.
Responses
- Code
- 200
- Type
- object
- Schema
- Description
- 200 OK
Response contains information about a specific tag.
- Code
- 201
- Type
- object
- Schema
- Description
- 201 Created
Response contains information about a specific tag.
- Code
- 400
- Type
- object
- Schema
- Description
- 400 Bad Request
ErrorResponse defines how []Error should be marshaled to JSON.
- Code
- 403
- Type
- object
- Schema
- Description
- 403 Forbidden
ErrorResponse defines how []Error should be marshaled to JSON.
- Code
- 409
- Type
- object
- Schema
- Description
- 409 Conflict
ErrorResponse defines how []Error should be marshaled to JSON.
200 OK
Response
{
"tag": {
"color": "string",
"count": 0,
"id": 0,
"name": "string",
"project": {
"id": 0,
"meta": {},
"type": "string"
},
"projectId": 0
}
}