Returns all project categories
Forge and OAuth2 apps cannot access this REST resource.
This request has no parameters.
Returns a list of all project categories.
1
2
3
4
curl --request GET \
--url 'http://{baseurl}/rest/api/2/projectCategory' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'1
2
3
4
5
6
{
"description": "This is a project category",
"id": "10000",
"name": "My Project Category",
"self": "http://www.example.com/jira/rest/api/2/projectCategory/10000"
}Create a project category.
Forge and OAuth2 apps cannot access this REST resource.
The project category to create.
string
string
string
string
Returned if the project category is created successfully.
1
2
3
4
5
6
7
8
9
10
11
curl --request POST \
--url 'http://{baseurl}/rest/api/2/projectCategory' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"description": "First Project Category",
"id": "10000",
"name": "FIRST",
"self": "http://www.example.com/jira/rest/api/2/projectCategory/10000"
}'1
2
3
4
5
6
{
"description": "This is a project category",
"id": "10000",
"name": "My Project Category",
"self": "http://www.example.com/jira/rest/api/2/projectCategory/10000"
}Returns a full representation of the project category that has the given id.
Forge and OAuth2 apps cannot access this REST resource.
integer
RequiredReturned if the project category exists and is visible by the calling user.
1
2
3
4
curl --request GET \
--url 'http://{baseurl}/rest/api/2/projectCategory/{id}' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'1
2
3
4
5
6
{
"description": "This is a project category",
"id": "10000",
"name": "My Project Category",
"self": "http://www.example.com/jira/rest/api/2/projectCategory/10000"
}Modify a project category.
Forge and OAuth2 apps cannot access this REST resource.
integer
RequiredThe project category to modify.
string
string
string
string
Returned if the project category exists and the currently authenticated user has permission to edit it.
1
2
3
4
5
6
7
8
9
10
11
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/projectCategory/{id}' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"description": "First Project Category",
"id": "10000",
"name": "FIRST",
"self": "http://www.example.com/jira/rest/api/2/projectCategory/10000"
}'1
2
3
4
5
6
{
"description": "This is a project category",
"id": "10000",
"name": "My Project Category",
"self": "http://www.example.com/jira/rest/api/2/projectCategory/10000"
}Delete a project category.
Forge and OAuth2 apps cannot access this REST resource.
integer
RequiredReturned if the project category is successfully deleted.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/projectCategory/{id}' \
--user 'email@example.com:<api_token>'Rate this page: