latestOpenAPI 3.0.02026-08-10221235717.8 KB
e21ad140ec3c
public
Pipelines
Create a new trigger matching criteria for this Pipeline.
Create a new trigger matching criteria for this Pipeline. This must not conflict with an existing criteria for the same trigger on this or any other Pipeline that applies to this Application.
post/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/criteria
Path parameters
orgIdstring required
The Organization ID
appIdstring required
The Application ID
pipelineIdstring required
The Pipeline ID
Request body
Example request
{
"trigger": "deployment_request",
"env_type": "development",
"app_id": "my-application",
"env_id": "my-environment",
"deployment_type": "deploy"
}Response
The criteria was successfully added.
Example response
{
"trigger": "deployment_request",
"id": "01234567-89ab-cdef-0123-456789abcdef",
"pipeline_id": "sample-pipeline",
"pipeline_name": "Sample Pipeline",
"env_type": "development",
"app_id": "my-application",
"env_id": "my-environment",
"deployment_type": "deploy"
}