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

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
acoder2020
Posts: 65
Joined: 11 Jan 2024, 19:32

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

Post 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
    }
}
Post Reply