public
Pipelines
Create a new trigger matching criteria for this Pipeline.
Changed onCreate 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
Request
- Base URLhttps://api.humanitec.io
- URLhttps://api.humanitec.io/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/criteria
- Authnone declared
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"
}Changes
- warning
for the
pathrequest parameterappId, the maxLength was set to50
- warning