Issue Tags

POST /issues/{id}/tags #

Attach a tag to issue

Parameters

Name In Type Description
id required path integer The issue ID e.g. 123
X-Mantis-Username header string Username to impersonate for this request. Requires an authorized API token.

Request body required

tags object[]
id number

Responses

  • 201 Resource created successfully X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
    "string"
  • 400 Bad Request
  • 401 Authentication is required or the supplied API token is invalid. WWW-Authenticate
  • 403 The authenticated user is not authorized for this operation, impersonation, or API access level.
  • 404 Entity not found
  • 503 MantisHub is temporarily unavailable and cannot process API requests.
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/{id}/tags/{tag_id} #

Detach a tag from an issue

Parameters

Name In Type Description
id required path integer The issue ID e.g. 123
tag_id required path integer
X-Mantis-Username header string Username to impersonate for this request. Requires an authorized API token.

Responses

  • 200 Success ETag X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
    "string"
  • 400 Bad Request
  • 401 Authentication is required or the supplied API token is invalid. WWW-Authenticate
  • 403 The authenticated user is not authorized for this operation, impersonation, or API access level.
  • 404 Entity not found
  • 503 MantisHub is temporarily unavailable and cannot process API requests.
cURL
curl -X DELETE \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/issues/123/tags/1