provider projects POST /users/{user_id}/projectsV2/{project_number}/views
@utdk/github /users/{user_id}/projectsV2/{project_number}/views
Create a view for a user-owned project
Create a new view in a user-owned project. Views allow you to customize how items in a project are displayed and filtered.
user_id path required
The unique identifier of the user.
string
project_number path required
The project's number.
integer

Try it

Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

projects.createViewForUser
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

required

The unique identifier of the user.

required

The project's number.

Input

required

The name of the view.

required

The layout of the view.

The filter query for the view. See [Filtering projects](https://docs.github.com/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/filtering-projects) for more information.

`visible_fields` is not applicable to `roadmap` layout views. For `table` and `board` layouts, this represents the field IDs that should be visible in the view. If not provided, the default visible fields will be used.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.projects.createViewForUser()