Issue Tags

POST /issues/{issue_id}/tags #

Attach a tag to issue

Parameters

Name In Type Description
issue_id required path integer The issue ID e.g. 123

Request body required

tags object[]
id number

Responses

  • 201 Resource created successfully X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
  • 400 Bad Request
  • 404 Entity not found
cURL
curl -X POST \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/issues/123/tags \
  -d '{
    "tags": [
        {
            "id": 1
        }
    ]
}'
Request body · application/json
{
    "tags": [
        {
            "id": 1
        }
    ]
}
DELETE /issues/{issue_id}/tags/{tag_id} #

Detach a tag from an issue

Parameters

Name In Type Description
issue_id required path integer The issue ID e.g. 123
tag_id required path integer

Responses

  • 200 Success X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
  • 400 Bad Request
  • 404 Entity not found
cURL
curl -X DELETE \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/issues/123/tags/1