Issue Notes

POST /issues/{id}/notes #

Create an issue note

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

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
    "string"
  • 202 Request accepted for moderation X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
  • 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/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/{id}/notes/{note_id} #

Delete an issue note

Parameters

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