API Reference
This document describes the usage of REST API for Release management. You can also use GraphQL API for composite queries.
Create a Release
POST
/api/releases/<project_name>/releases/<release_candidate_version>
This creates a new Release and an associated Release Candidate with the provided commit SHA.
Parameters
Name | Description |
---|---|
| Name of the Release Project. Case sensitive. |
| Release candidate version string represented as: |
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Body
Name | Type | Description |
---|---|---|
| String | Repository associated with the Release. String of the format: |
| String | Head commit SHA to cut a release at. |
| Boolean. Optional | If set to |
Response
If successful, HTTP 201 response is returned back.
Create a Deployment
POST
/api/releases/<project_name>/environments/<env_name>/deployments
This creates a new Deployment for the provided Release Candidate and Environment. This workflow will also trigger the appropriate deployment workflow configured for that environment.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Parameters
Name | Description |
---|---|
| Name of the Release Project. Case sensitive. |
| Name of the Environment within the Release Project. Case sensitive. |
Body
Name | Type | Description |
---|---|---|
| String | Release candidate version associated with the Release Candidate that will be deployed. String represented as: |
Response
If successful, HTTP 201 response is returned back.
Update Deployment status
PATCH
/api/releases/<project_name>/environments/<env_name>/deployments
Update the status of the Deployment once it's created. If a Deployment doesn't already exist for the given Release Candidate version and the Environment, a new deployment is also created.
This can be used for a custom CD pipeline to send the deployment status to Aviator.
This method does not trigger the configured deployment workflow.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Parameters
Name | Description |
---|---|
| Name of the Release Project. Case sensitive. |
| Name of the Environment within the Release Project. Case sensitive. |
Body
Name | Type | Description |
---|---|---|
| string | Release candidate version associated with the Release Candidate that will be deployed. String represented as: |
| string | Possible values:
- |
Response
If successful, HTTP 200 response is returned back. The API returns a 200 response even when a new deployment is created.
Last updated