@@ -903,30 +903,6 @@ When you create a {% data variables.product.pat_v2 %}, you grant it a set of per
|
||||
|
||||
{% endif %}
|
||||
|
||||
## Repository projects
|
||||
|
||||
- [`GET /projects/columns/cards/{card_id}`](/rest/projects#get-a-project-card) (read)
|
||||
- [`PATCH /projects/columns/cards/{card_id}`](/rest/projects#update-a-project-card) (write)
|
||||
- [`DELETE /projects/columns/cards/{card_id}`](/rest/projects#delete-a-project-card) (write)
|
||||
- [`POST /projects/columns/cards/{card_id}/moves`](/rest/projects#move-a-project-card) (write)
|
||||
- [`GET /projects/columns/{column_id}`](/rest/projects#get-a-project-column) (read)
|
||||
- [`PATCH /projects/columns/{column_id}`](/rest/projects#update-a-project-column) (write)
|
||||
- [`DELETE /projects/columns/{column_id}`](/rest/projects#delete-a-project-column) (write)
|
||||
- [`GET /projects/columns/{column_id}/cards`](/rest/projects#list-project-cards) (read)
|
||||
- [`POST /projects/columns/{column_id}/cards`](/rest/projects#create-a-project-card) (write)
|
||||
- [`POST /projects/columns/{column_id}/moves`](/rest/projects#move-a-project-column) (write)
|
||||
- [`GET /projects/{project_id}`](/rest/projects#get-a-project) (read)
|
||||
- [`PATCH /projects/{project_id}`](/rest/projects#update-a-project) (write)
|
||||
- [`DELETE /projects/{project_id}`](/rest/projects#delete-a-project) (write)
|
||||
- [`GET /projects/{project_id}/collaborators`](/rest/projects#list-project-collaborators) (write)
|
||||
- [`PUT /projects/{project_id}/collaborators/{username}`](/rest/projects#add-project-collaborator) (write)
|
||||
- [`DELETE /projects/{project_id}/collaborators/{username}`](/rest/projects#remove-project-collaborator) (write)
|
||||
- [`GET /projects/{project_id}/collaborators/{username}/permission`](/rest/projects#get-project-permission-for-a-user) (write)
|
||||
- [`GET /projects/{project_id}/columns`](/rest/projects#list-project-columns) (read)
|
||||
- [`POST /projects/{project_id}/columns`](/rest/projects#create-a-project-column) (write)
|
||||
- [`GET /repos/{owner}/{repo}/projects`](/rest/projects#list-repository-projects) (read)
|
||||
- [`POST /repos/{owner}/{repo}/projects`](/rest/projects#create-a-repository-project) (write)
|
||||
|
||||
## Repository security advisories
|
||||
|
||||
- [`GET /repos/{owner}/{repo}/security-advisories`](/rest/security-advisories/repository-advisories#list-repository-security-advisories) (read)
|
||||
|
||||
@@ -269,6 +269,7 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
|
||||
|
||||
### Using `curl` in the command line
|
||||
|
||||
{% ifversion ghes or ghae %}
|
||||
{% note %}
|
||||
|
||||
**Notes:**
|
||||
@@ -277,6 +278,7 @@ If you are authenticating with a {% data variables.product.prodname_github_app %
|
||||
- If you want to make API requests from the command line, {% data variables.product.prodname_dotcom %} recommends that you use {% data variables.product.prodname_cli %}, which simplifies authentication and requests. For more information about getting started with the REST API using {% data variables.product.prodname_cli %}, see the {% data variables.product.prodname_cli %} version of this article.
|
||||
|
||||
{% endnote %}
|
||||
{% endif %}
|
||||
|
||||
1. Install `curl` if it isn't already installed on your machine. To check if `curl` is installed, execute `curl --version` in the command line. If the output is information about the version of `curl`, it is installed. If you get a message similar to `command not found: curl`, you need to download and install `curl`. For more information, see [the curl project download page](https://curl.se/download.html).
|
||||
1. Create an access token. For example, create a {% data variables.product.pat_generic %} or a {% data variables.product.prodname_github_app %} user access token. For more information, see "[Creating a {% data variables.product.pat_generic %}](/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)" or "[Identifying and authorizing users for GitHub Apps](/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps)."
|
||||
|
||||
Reference in New Issue
Block a user