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

Get an item from a user-owned project

Retrieves a specific item from a project owned by the specified user. Use fields to limit the returned field values; when omitted, the response includes the title field. The item response also identifies its content type and includes item and project details.

4 parameters
project_numberintegerrequired
The number of the project containing the item.
usernamestringrequired
The handle of the user who owns the project.
item_idintegerrequired
The unique identifier of the project item to retrieve.
fieldsstringoptional
Field IDs to include in the result, supplied as a string or an array of strings. Defaults to the title field when omitted; an array can contain at most 50 IDs.

4 status codes
200Returns the project item, including its identifier, content type, content, creator, timestamps, project URL, and associated fields.
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.
304Indicates that the requested representation has not changed.
401Returned when authentication is required but missing or invalid.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
403Returned when the authenticated user is not permitted to access the project item.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 401 is returned when authentication is required but missing or invalid. A 403 is returned when you are not permitted to access the project item. The project_number path parameter, username path parameter, and item_id path parameter must identify the project and item to retrieve. fields accepts a string or an array of field IDs, with no more than 50 IDs in an array.