Gamma API

Create an issue category

POST
/api/projects/{projectId}/issue-schemas/{schemaId}/categories

Who may call it: Whoever manages the project: an owner, security admin or admin of its organization, or an admin of the project. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

projectId*string

The project's id.

schemaId*string

Request Body

application/json
  1. body
name*string
Length1 <= length <= 200
parentId?|

A category of the same schema; null or absent for the top.

requiredFieldIds?array<>

Fields of the schema an issue in it, or under it, must fill in.

Itemsitems <= 200

Response Body

Created.

application/json
  1. response
category*

A node of an issue schema's category tree.

Example Request
curl -X POST 'http://localhost:3000/api/projects/string/issue-schemas/string/categories' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "category": {    "id": "string",    "schemaId": "string",    "parentId": "string",    "name": "string",    "requiredFieldIds": [      "string"    ]  }}