Pipeline
Trigger a new pipeline
[This endpoint is superseded by the new Trigger Pipeline API, which supports all organization and pipeline types except GitLab.] Triggers a new pipeline on the project. Does not support triggering pipelines integrated with GitLab or GitHub App.
post/project/{project-slug}/pipeline
Request
- Base URLhttps://circleci.com/api/v2
- URLhttps://circleci.com/api/v2/project/{project-slug}/pipeline
- Auth
- API key in header Circle-Token
- or HTTP bearer
- or HTTP basic
- or API key in query parameter circle-token
Path parameters
project-slugstring required
Project slug in the form vcs-slug/org-name/repo-name. The / characters may be URL-escaped. For projects that use GitLab or GitHub App, use circleci as the vcs-slug, replace org-name with the organization ID (found in Organization Settings), and replace repo-name with the project ID (found in Project Settings).
Request body
Example request
{
"branch": "feature/design-new-api",
"tag": "v3.1.4159",
"parameters": {
"deploy_prod": true
}
}Response
The created pipeline.
Example response
{
"id": "5034460f-c7c4-4c43-9457-de07e2029e7b",
"number": 25
}Changes
No recorded changes to this operation across all 1 revision of this API.