Trigger a new deployment for current application
application_id*integerThe ID of the application.
1 <= valueAccept*stringapplication/json
Content-Type*stringapplication/json
A JSON object containing the resource data
application/json- body
environment?stringThe environment type of the deployment.
type*DeploymentTypeThe type of the deployment
"deploy""redeploy""rollback"source_type?stringThe '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?stringA 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?integerThe pipeline's ID to use for deployment.
servers?array<integer>List of valid resource IDs
No Content
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"}'