Schedule
Create a schedule
Creates a schedule and returns the created schedule. Available only on organizations of type bitbucket and github, and for the latter will exclusively create schedule triggers associated with the GitHub OAuth pipeline definition. For projects of type circleci, or to create schedule triggers for GitHub App pipeline definitions, use the Create trigger endpoint.
post/project/{project-slug}/schedule
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
{
"attribution-actor": "current",
"parameters": {
"deploy_prod": true,
"branch": "feature/design-new-api"
}
}Response
A schedule object.
Example response
{
"project-slug": "gh/CircleCI-Public/api-preview-docs",
"parameters": {
"deploy_prod": true,
"branch": "feature/design-new-api"
}
}