Issue Relationships

POST /issues/{issue_id}/relationships #

Add an issue relationship

Parameters

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

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

Delete an issue relationship

Parameters

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