URL: <jira_base_url>/rest/category-level-rest/1.0/category
Method: POST
Data:
If a top-level option is to be added, the "rootId" value should be given "-1".
If a new option will be added under a parent; The id value of the relevant aprent should be written to the "rootId" value
In the example below, a new option is added under the option with 35 ids under the parent with 3 ids.
{
"value": "New Option Tree 1",
"parentId": 35,
"rootId": 3,
"issueType": [],
"group": []
}
Result:
{
"self": "<jira_base_url>/rest/category-level-rest/1.0/category/17792",
"id": 17792,
"value": "New Option Tree 1",
"path": "Hardware/New Option Tree 1",
"level": 2,
"parentId": 35,
"root": {
"self": "<jira_base_url>/rest/category-level-rest/1.0/root/3",
"id": 3,
"value": "Tech"
},
"categoryRank": 7,
"enabled": true,
"categoryIssueTypes": [],
"categoryGroups": []
}