| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Use the REST API to manage Project views
Create a new view in an organization-owned project. Views allow you to customize how items in a project are displayed and filtered.
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. |
project_number integer Required The project's number. |
| Name, Type, Description |
|---|
name string Required The name of the view. |
layout string Required The layout of the view. Can be one of: table, board, roadmap |
filter string The filter query for the view. See Filtering projects for more information. |
visible_fields array of integers 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. |
sort_by array of arrays Sorting configuration for the view. Each element is a two-element array of [field_id, direction] where direction is "asc" or "desc". Supports multiple sort criteria applied in order. |
group_by array of integers The field IDs to group items by (horizontal grouping). Supports a single field. The field must support grouping; fields such as Title, Reviewers, Linked pull requests, Sub-issues progress, Tracked by, and Tracks cannot be grouped on. |
vertical_group_by array of integers The field IDs to use as columns in board layout (vertical grouping). Supports a single field. The field must support grouping; fields such as Title, Reviewers, Linked pull requests, Sub-issues progress, Tracked by, and Tracks cannot be grouped on. |
| Status code | Description |
|---|---|
| 201 | Response for creating a view in an organization-owned project. |
| 304 | Not modified |
| 401 | Requires authentication |
| 403 | Forbidden |
| 404 | Resource not found |
| 422 | Validation failed, or the endpoint has been spammed. |
| 503 | Service unavailable |
Response for creating a table view
Create a new view in a user-owned project. Views allow you to customize how items in a project are displayed and filtered.
This endpoint does not work with GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens.
| Name, Type, Description |
|---|
accept string Setting to application/vnd.github+json is recommended. |
| Name, Type, Description |
|---|
user_id string Required The unique identifier of the user. |
project_number integer Required The project's number. |
| Name, Type, Description |
|---|
name string Required The name of the view. |
layout string Required The layout of the view. Can be one of: table, board, roadmap |
filter string The filter query for the view. See Filtering projects for more information. |
visible_fields array of integers 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. |
sort_by array of arrays Sorting configuration for the view. Each element is a two-element array of [field_id, direction] where direction is "asc" or "desc". Supports multiple sort criteria applied in order. |
group_by array of integers The field IDs to group items by (horizontal grouping). Supports a single field. The field must support grouping; fields such as Title, Reviewers, Linked pull requests, Sub-issues progress, Tracked by, and Tracks cannot be grouped on. |
vertical_group_by array of integers The field IDs to use as columns in board layout (vertical grouping). Supports a single field. The field must support grouping; fields such as Title, Reviewers, Linked pull requests, Sub-issues progress, Tracked by, and Tracks cannot be grouped on. |
| Status code | Description |
|---|---|
| 201 | Response for creating a view in a user-owned project. |
| 304 | Not modified |
| 401 | Requires authentication |
| 403 | Forbidden |
| 404 | Resource not found |
| 422 | Validation failed, or the endpoint has been spammed. |
| 503 | Service unavailable |
Response for creating a table view
| Back | FazBrowse Home | New Git URL |