Issue Attachments

GET /issues/{issue_id}/files #

Get issue files

Parameters

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

Responses

  • 200 Success X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
  • 400 Bad Request
  • 404 Entity not found
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/issues/123/files
POST /issues/{issue_id}/files #

Add attachments to issue

Parameters

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

Request body required

files object[]
name string
content string
reporter 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/files \
  -d '{
    "files": [
        {
            "name": "string",
            "content": "string"
        }
    ],
    "reporter": {
        "name": "string"
    }
}'
Request body · application/json
{
    "files": [
        {
            "name": "string",
            "content": "string"
        }
    ],
    "reporter": {
        "name": "string"
    }
}
GET /issues/{issue_id}/files/{file_id} #

Get file from issue

Parameters

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

Responses

  • 200 Success X-Mantis-Username X-Mantis-LoginMethod X-Mantis-Version
  • 400 Bad Request
  • 404 Entity not found
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/issues/123/files/567