Skip to content

Commit 3dbbea0

Browse files
committed
make it clear project tokens can't be used to trigger a pipeline
1 parent c71ab4f commit 3dbbea0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src-api/source/includes/_builds_and_jobs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,12 @@ curl -X POST https://circleci.com/api/v1.1/project/:vcs-type/:username/:project/
404404
}
405405
```
406406

407-
**`POST` Request:** Triggers a pipeline of the specified project, by branch, revision, or tag. Workflows will be run or scheduled in the same way as when a webhook from source control is received.
407+
**`POST` Request:** Triggers a pipeline of the specified project, by branch, revision, or tag. Workflows will be run or scheduled in the same way as when a webhook from source control is received. The use of this endpoint requires a personal API token.
408408

409409

410410
<aside class="notice">
411411
<strong>Note:</strong> This endpoint does not yet support the <code>build_parameters</code> options that the job-triggering endpoint supports.
412-
This also means that this endpoint is not available for CircleCI Server.
412+
This also means that this endpoint is not available for CircleCI server.
413413
</aside>
414414

415415
**Parameter** | **Description**

src-api/source/includes/_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ curl -u <circle-token>: "https://circleci.com/api/..."
6464
curl "https://circleci.com/api/v1.1/me?circle-token=<circle-token>"
6565
```
6666

67-
You can add the API token using your [account dashboard](https://circleci.com/account/api). Both personal and project API tokens are supported for API v1, however, we recommend using personal API tokens at this time as project API tokens are **not** supported for API v2.
67+
You can add the API token using your [account dashboard](https://circleci.com/account/api). We recommend using **personal API tokens** at this time as project API tokens are **not** supported for API v2. Project API tokens are supported for a subset of API v1 endpoints.
6868

6969
To be authenticated by the API server, use this as the value of the Circle-Token header:
7070

0 commit comments

Comments
 (0)