Skip to Content
Applications

Trigger a new deployment for current application

POST
/applications/{application_id}/deployments

Path Parameters

application_id*integer

The ID of the application.

Range1 <= value

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Request Body

A JSON object containing the resource data

application/json
  1. body
environment?string

The environment type of the deployment.

type*DeploymentType

The type of the deployment

Value in"deploy""redeploy""rollback"
source_type?string

The 'source type' from which the application source code will be retrieved and deployed. It can be one of branch, tag or commit. If not provided, the application's default branch will be used. This field is required when source_ref is present.

source_ref?string

A git reference pointing to a commit in a source provider repository from which the application source code will be retrieved and deployed. It can be a branch name, tag name or a specific commit hash. This field is required when source_type is present. Must not be greater than 200 characters.

pipeline_id?integer

The pipeline's ID to use for deployment.

servers?array<integer>

List of valid resource IDs

Response Body

No Content

Example Request
curl -X POST 'https://api.devopness.com/applications/123/deployments' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json' \  -H 'Content-Type: application/json' \  -d '{  "type": "deploy"}'
Example Response
Empty