Issue Relationships

POST /issues/{id}/relationships #

Add an issue relationship

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

issue object
id number
type object
name string

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/relationships \
  -d '{
    "issue": {
        "id": 1
    },
    "type": {
        "name": "string"
    }
}'
Request body · application/json
{
    "issue": {
        "id": 1
    },
    "type": {
        "name": "string"
    }
}
DELETE /issues/{id}/relationships/{relationship_id} #

Delete an issue relationship

Parameters

Name In Type Description
id required path integer The issue ID e.g. 123
relationship_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/relationships/1