Sample - GitHub REST API
PATCH/orgs/{org}/projectsV2/{project_number}/items/{item_id}

Update project item for organization

Update a specific item in an organization-owned project.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters · 1 body field
project_numberintegerrequired
The project's number.
orgstringrequired
The organization name. The name is not case sensitive.
item_idintegerrequired
The unique identifier of the project item.

Field updates to apply to the project item. Only text, number, date, single select, and iteration fields are supported.

fieldsarray<object>required
A list of field updates to apply.

5 status codes
200Response
idnumberrequired
The unique identifier of the project item.
node_idstringoptional
The node ID of the project item.
project_urlstringoptional
The API URL of the project that contains this item.
content_typestringrequired
The type of content tracked in a project item
Allowed:IssuePullRequestDraftIssue
contentobjectoptional
The content of the item, which varies by content type.
creatorobjectoptional
A GitHub user.
created_atstringrequired
The time when the item was created.
updated_atstringrequired
The time when the item was last updated.
archived_atstringrequired
The time when the item was archived.
item_urlstringoptional
The API URL of this item.
fieldsarray<object>optional
The fields and values associated with this item.
401Requires authentication
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
422Validation failed, or the endpoint has been spammed.
messagestringrequired
documentation_urlstringrequired
errorsarray<object>optional

Error handling

A 401 is returned: Requires authentication. A 403 is returned: Forbidden. A 404 is returned: Resource not found. A 422 is returned: Validation failed, or the endpoint has been spammed.