deployments
Create deployment
Creates a deployment from the project's connected git repository.
Builds the latest commit on the environment's git_branch, or on the repository's default branch when the environment has none. Only works for projects with a git provider connected; other projects return 400. For projects without git, deploy with connic deploy from the CLI. Older pending or building deployments in the same environment are cancelled.
Required permission: deployments.create.
post/v1/projects/{project_id}/deployments
Request
- Base URL: https://api.connic.co
- URL: https://api.connic.co/v1/projects/{project_id}/deployments
- Auth: HTTP bearer
Path parameters
project_idstring uuid required
ID of the project the API key belongs to.
Query parameters
environment_idstring uuid required
Environment to deploy to
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.