GitHub Issues & Projects: REST API support for issue types
Issue types can now be managed using the REST API, expanding the ability to automate and incorporate them in your workflows. Check out our documentation on issue types for more details. You can also review the examples below to get started.
You can create, update, delete, and list issue types for an organization.
Creating a new issue type:
curl --request POST \
--url https://api.github.com/orgs/{org}/issue-types \
--header 'authorization: token <YOUR-TOKEN>' \
--header 'content-type: application/json' \
--data '{
"name": "Initiative",
"description": "A large body of work that spans a quarter.",
"color": "orange",
"is_enabled": true
}'
curl --request POST \
--url https://api.github.com/orgs/{org}/issue-types \
--header 'authorization: token <YOUR-TOKEN>' \
--header 'content-type: application/json' \
--data '{
"name": "Initiative",
"description": "A large body of work that spans a quarter.",
"color": "orange",
"is_enabled": true
}'