Page 1 of 1

Is both ID --and-- Name required for submitting issue to REST api

Posted: 22 Feb 2024, 14:13
by acoder2020
Do you absolutely have to give both ID and name when submitting a new issue with REST api?

Documentation:

Code: Select all

{
    "summary": "Sample REST issue with attachment",
    "description": "Description for sample REST issue.",
    "project": {
        "id": 1,
        "name": "mantisbt"
    },
    "category": {
        "id": 5,
        "name": "bugtracker"
    }
}
Or would this work?

Code: Select all

{
    "summary": "Sample REST issue with attachment",
    "description": "Description for sample REST issue.",
    "project": {
        "id": 1
    },
    "category": {
        "id": 5
    }
}