Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Create project category

Create a project category.

POST/api/2/projectCategory
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Request body
requiredapplication/json

The project category to create.

descriptionstring
idstring
namestring
selfstring<uri>
Responses
201

Returned if the project category is created successfully.

descriptionstring
idstring
namestring
selfstring
401

Returned if the caller is not logged in so does not have permission to create project categories.

403

Returned if the caller is authenticated and does not have permission to create project categories (is not global admin).

409

Returned if a project category with the given name already exists.

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/projectCategory' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "description": "First Project Category",
  "id": "10000",
  "name": "FIRST",
  "self": "http://www.example.com/jira/rest/api/2/projectCategory/10000"
}'
Response
{
  "description": "This is a project category",
  "id": "10000",
  "name": "My Project Category",
  "self": "http://www.example.com/jira/rest/api/2/projectCategory/10000"
}

Was this page helpful?