← All tags

Projects API Reference

Endpoints to manage Projects using the REST API.

26 endpoints tagged projects, each listing its parameters and possible responses. Search or scroll the index below to jump to a specific endpoint.

No endpoints match your search.

List projects for organization

GET /orgs/{org}/projectsV2

List all projects owned by a specific organization accessible by the authenticated user.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
qquerynoLimit results to projects of the specified type.
beforequerynoA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
afterquerynoA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

Get project for organization

GET /orgs/{org}/projectsV2/{project_number}

Get a specific organization-owned project.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

Create draft item for organization owned project

POST /orgs/{org}/projectsV2/{project_number}/drafts

Create draft issue item for the specified organization owned project.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
project_numberpathyesThe project's number.

Responses

StatusDescriptionHas JSON body
201Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

List project fields for organization

GET /orgs/{org}/projectsV2/{project_number}/fields

List all fields for a specific organization-owned project.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
orgpathyesThe organization name. The name is not case sensitive.
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."
beforequerynoA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
afterquerynoA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

Add a field to an organization-owned project.

POST /orgs/{org}/projectsV2/{project_number}/fields

Add a field to an organization-owned project.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
201Response for adding a field to an organization-owned project.yes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes
422Validation failed, or the endpoint has been spammed.yes

Get project field for organization

GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}

Get a specific field for an organization-owned project.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
field_idpathyesThe unique identifier of the field.
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

List items for an organization owned project

GET /orgs/{org}/projectsV2/{project_number}/items

List all items for a specific organization-owned project accessible by the authenticated user.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
orgpathyesThe organization name. The name is not case sensitive.
qquerynoSearch query to filter items, see Filtering projects for more information.
fieldsquerynoLimit results to specific fields, by their IDs. If not specified, the title field will be returned.
beforequerynoA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
afterquerynoA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

Add item to organization owned project

POST /orgs/{org}/projectsV2/{project_number}/items

Add an issue or pull request item to the specified organization owned project.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
project_numberpathyesThe project's number.

Responses

StatusDescriptionHas JSON body
201Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

Get an item for an organization owned project

GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}

Get a specific item from an organization-owned project.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
orgpathyesThe organization name. The name is not case sensitive.
item_idpathyesThe unique identifier of the project item.
fieldsquerynoLimit results to specific fields, by their IDs. If not specified, the title field will be returned.

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

Update project item for organization

PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}

Update a specific item in an organization-owned project.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
orgpathyesThe organization name. The name is not case sensitive.
item_idpathyesThe unique identifier of the project item.

Responses

StatusDescriptionHas JSON body
200Responseyes
401Requires authenticationyes
403Forbiddenyes
404Resource not foundyes
422Validation failed, or the endpoint has been spammed.yes

Delete project item for organization

DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}

Delete a specific item from an organization-owned project.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
orgpathyesThe organization name. The name is not case sensitive.
item_idpathyesThe unique identifier of the project item.

Responses

StatusDescriptionHas JSON body
204Responseno
403Forbiddenyes
401Requires authenticationyes

Create a view for an organization-owned project

POST /orgs/{org}/projectsV2/{project_number}/views

Create a new view in an organization-owned project. Views allow you to customize how items in a project are displayed and filtered.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
project_numberpathyesThe project's number.

Responses

StatusDescriptionHas JSON body
201Response for creating a view in an organization-owned project.yes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes
404Resource not foundyes
422Validation failed, or the endpoint has been spammed.yes
503Service unavailableyes

List items for an organization project view

GET /orgs/{org}/projectsV2/{project_number}/views/{view_number}/items

List items in an organization project with the saved view's filter applied.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
orgpathyesThe organization name. The name is not case sensitive.
view_numberpathyesThe number that identifies the project view.
fieldsquerynoLimit results to specific fields, by their IDs. If not specified, the
beforequerynoA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
afterquerynoA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes
404Resource not foundyes

Create draft item for user owned project

POST /user/{user_id}/projectsV2/{project_number}/drafts

Create draft issue item for the specified user owned project.

Parameters

NameInRequiredDescription
user_idpathyesThe unique identifier of the user.
project_numberpathyesThe project's number.

Responses

StatusDescriptionHas JSON body
201Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

Create a view for a user-owned project

POST /users/{user_id}/projectsV2/{project_number}/views

Create a new view in a user-owned project. Views allow you to customize how items in a project are displayed and filtered.

Parameters

NameInRequiredDescription
user_idpathyesThe unique identifier of the user.
project_numberpathyesThe project's number.

Responses

StatusDescriptionHas JSON body
201Response for creating a view in a user-owned project.yes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes
404Resource not foundyes
422Validation failed, or the endpoint has been spammed.yes
503Service unavailableyes

List projects for user

GET /users/{username}/projectsV2

List all projects owned by a specific user accessible by the authenticated user.

Parameters

NameInRequiredDescription
usernamepathyesThe handle for the GitHub user account.
qquerynoLimit results to projects of the specified type.
beforequerynoA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
afterquerynoA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

Get project for user

GET /users/{username}/projectsV2/{project_number}

Get a specific user-owned project.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
usernamepathyesThe handle for the GitHub user account.

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

List project fields for user

GET /users/{username}/projectsV2/{project_number}/fields

List all fields for a specific user-owned project.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
usernamepathyesThe handle for the GitHub user account.
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."
beforequerynoA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
afterquerynoA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

Add field to user owned project

POST /users/{username}/projectsV2/{project_number}/fields

Add a field to a specified user owned project.

Parameters

NameInRequiredDescription
usernamepathyesThe handle for the GitHub user account.
project_numberpathyesThe project's number.

Responses

StatusDescriptionHas JSON body
201Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes
422Validation failed, or the endpoint has been spammed.yes

Get project field for user

GET /users/{username}/projectsV2/{project_number}/fields/{field_id}

Get a specific field for a user-owned project.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
field_idpathyesThe unique identifier of the field.
usernamepathyesThe handle for the GitHub user account.

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

List items for a user owned project

GET /users/{username}/projectsV2/{project_number}/items

List all items for a specific user-owned project accessible by the authenticated user.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
usernamepathyesThe handle for the GitHub user account.
beforequerynoA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
afterquerynoA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."
qquerynoSearch query to filter items, see Filtering projects for more information.
fieldsquerynoLimit results to specific fields, by their IDs. If not specified, the title field will be returned.

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

Add item to user owned project

POST /users/{username}/projectsV2/{project_number}/items

Add an issue or pull request item to the specified user owned project.

Parameters

NameInRequiredDescription
usernamepathyesThe handle for the GitHub user account.
project_numberpathyesThe project's number.

Responses

StatusDescriptionHas JSON body
201Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

Get an item for a user owned project

GET /users/{username}/projectsV2/{project_number}/items/{item_id}

Get a specific item from a user-owned project.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
usernamepathyesThe handle for the GitHub user account.
item_idpathyesThe unique identifier of the project item.
fieldsquerynoLimit results to specific fields, by their IDs. If not specified, the title field will be returned.

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes

Update project item for user

PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}

Update a specific item in a user-owned project.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
usernamepathyesThe handle for the GitHub user account.
item_idpathyesThe unique identifier of the project item.

Responses

StatusDescriptionHas JSON body
200Responseyes
401Requires authenticationyes
403Forbiddenyes
404Resource not foundyes
422Validation failed, or the endpoint has been spammed.yes

Delete project item for user

DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}

Delete a specific item from a user-owned project.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
usernamepathyesThe handle for the GitHub user account.
item_idpathyesThe unique identifier of the project item.

Responses

StatusDescriptionHas JSON body
204Responseno
403Forbiddenyes
401Requires authenticationyes

List items for a user project view

GET /users/{username}/projectsV2/{project_number}/views/{view_number}/items

List items in a user project with the saved view's filter applied.

Parameters

NameInRequiredDescription
project_numberpathyesThe project's number.
usernamepathyesThe handle for the GitHub user account.
view_numberpathyesThe number that identifies the project view.
fieldsquerynoLimit results to specific fields, by their IDs. If not specified, the
beforequerynoA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
afterquerynoA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
401Requires authenticationyes
404Resource not foundyes