View Issue Details

IDProjectCategoryView StatusLast Update
0034410mantisbtapi restpublic2024-04-20 19:59
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version2.13.0 
Target Version2.26.2 
Summary0034410: REST API error reports incorrect field "version" when updating fixed in / target version with invalid value
Description

Given the following request

PATCH http://localhost/mantis/api/rest/issues/{{id}}
Authorization: {{token}}
Content-Type: application/json

{
  "target_version": {
    "name": "xxx"
  }
}

The API responds with 400 BAD REQUEST

{
  "message": "Version 'xxx' does not exist in project 'Test Project'.",
  "code": 29,
  "localized": "Invalid value for 'version'"
                                   ^ this should be 'target_version'
}
TagsNo tags attached.

Activities