| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Use the REST API to create and manage issue fields for an organization.
Lists all issue fields for an organization. OAuth app tokens and personal access tokens (classic) need the read:org scope to use this endpoint.
This endpoint works with the following fine-grained token types:
The fine-grained token must have the following permission set:
| Name, Type, Description |
|---|
accept string Setting to application/vnd.github+json is recommended. |
| Name, Type, Description |
|---|
org string Required The organization name. The name is not case sensitive. |
| Status code | Description |
|---|---|
| 200 | OK |
| 404 | Resource not found |
Response
Creates a new issue field for an organization.
You can find out more about issue fields in Managing issue fields in an organization.
To use this endpoint, the authenticated user must be an administrator for the organization. OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
This endpoint works with the following fine-grained token types:
The fine-grained token must have the following permission set:
| Name, Type, Description |
|---|
accept string Setting to application/vnd.github+json is recommended. |
| Name, Type, Description |
|---|
org string Required The organization name. The name is not case sensitive. |
| Name, Type, Description | |||||
|---|---|---|---|---|---|
name string Required Name of the issue field. | |||||
description string or null Description of the issue field. | |||||
data_type string Required The data type of the issue field. Can be one of: text, date, single_select, multi_select, number | |||||
visibility string The visibility of the issue field. Can be organization_members_only (visible only within the organization) or all (visible to all users who can see issues). Only used when the visibility settings feature is enabled. Defaults to organization_members_only. Can be one of: organization_members_only, all | |||||
options array of objects or null Options for select fields. Required when data_type is 'single_select' or 'multi_select'. | |||||
Properties of options
|
| Status code | Description |
|---|---|
| 200 | OK |
| 404 | Resource not found |
| 422 | Validation failed, or the endpoint has been spammed. |
Response
Updates an issue field for an organization.
You can find out more about issue fields in Managing issue fields in an organization.
To use this endpoint, the authenticated user must be an administrator for the organization. OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
This endpoint works with the following fine-grained token types:
The fine-grained token must have the following permission set:
| Name, Type, Description |
|---|
accept string Setting to application/vnd.github+json is recommended. |
| Name, Type, Description |
|---|
org string Required The organization name. The name is not case sensitive. |
issue_field_id integer Required The unique identifier of the issue field. |
| Name, Type, Description | ||||||
|---|---|---|---|---|---|---|
name string Name of the issue field. | ||||||
description string or null Description of the issue field. | ||||||
visibility string The visibility of the issue field. Can be organization_members_only (visible only within the organization) or all (visible to all users who can see issues). Only used when the visibility settings feature is enabled. Can be one of: organization_members_only, all | ||||||
options array of objects Options for select fields. Only applicable when updating single_select or multi_select fields. When provided, this array replaces the entire existing set of options rather than adding to or updating individual options. To retain or update an existing option, include it in the array with its id. Options sent without an id are treated as new options and may cause existing options to be deleted and recreated. | ||||||
Properties of options
|
| Status code | Description |
|---|---|
| 200 | OK |
| 404 | Resource not found |
| 422 | Validation failed, or the endpoint has been spammed. |
Response
Deletes an issue field for an organization.
You can find out more about issue fields in Managing issue fields in an organization.
To use this endpoint, the authenticated user must be an administrator for the organization. OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
This endpoint works with the following fine-grained token types:
The fine-grained token must have the following permission set:
| Name, Type, Description |
|---|
accept string Setting to application/vnd.github+json is recommended. |
| Name, Type, Description |
|---|
org string Required The organization name. The name is not case sensitive. |
issue_field_id integer Required The unique identifier of the issue field. |
| Status code | Description |
|---|---|
| 204 | A header with no content is returned. |
| 404 | Resource not found |
| 422 | Validation failed, or the endpoint has been spammed. |
A header with no content is returned.
| Back | FazBrowse Home | New Git URL |