Project
Create a new project
Create a new project. Works for all organization types.
post/organization/{org-slug-or-id}/project
Request
- Base URLhttps://circleci.com/api/v2
- URLhttps://circleci.com/api/v2/organization/{org-slug-or-id}/project
- Auth
- API key in header Circle-Token
- or HTTP bearer
- or HTTP basic
- or API key in query parameter circle-token
Path parameters
org-slug-or-idstring required
Org UUID or slug in the form vcs-slug/org-name. For projects that use GitLab or GitHub App, use circleci as the vcs-slug and replace the org-name with the organization ID (found in Organization Settings).
Request body
Example request
{
"name": "api-preview-docs"
}Response
The new project
Example response
{
"slug": "gh/CircleCI-Public/api-preview-docs",
"name": "api-preview-docs",
"organization_name": "CircleCI-Public",
"organization_slug": "gh/CircleCI-Public",
"organization_id": "ec6887ec-7d44-4b31-b468-7e552408ee32",
"vcs_info": {
"vcs_url": "https://github.com/CircleCI-Public/api-preview-docs",
"default_branch": "main"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.