Issue Notes

POST /issues/{issue_id}/notes #

Create an issue note

Parameters

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

Request body required

text string
view_state object
id number
name string
label string
time_tracking object
duration string
files object[]
name string
content string

Responses

  • 201 Resource created successfully X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
  • 202 Request accepted for moderation
  • 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/notes \
  -d '{
    "text": "string",
    "view_state": {
        "id": 10,
        "name": "public",
        "label": "Public"
    },
    "time_tracking": {
        "duration": "string"
    },
    "files": [
        {
            "name": "string",
            "content": "string"
        }
    ]
}'
Request body · application/json
{
    "text": "string",
    "view_state": {
        "id": 10,
        "name": "public",
        "label": "Public"
    },
    "time_tracking": {
        "duration": "string"
    },
    "files": [
        {
            "name": "string",
            "content": "string"
        }
    ]
}
DELETE /issues/{issue_id}/notes/{issue_note_id} #

Delete an issue note

Parameters

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