Update application component codenow triggers
PUT/applications/:applicationId/components/:applicationComponentId/triggers
Update application component codenow triggers
Request
Path Parameters
Possible values: non-empty
Possible values: non-empty
Header Parameters
CodeNOW API Key
- application/vnd.codenow.v1+json
Body
required
Array [
Array [
]
]
triggers
object[]
required
A list of objects representing all triggers currently defined for this component.
The event that will activate this trigger on every occurrence. The default value is push
Possible values: non-empty
The pipeline used for building the component.
It generally depends on the template (language, build tool, framework) the component is based on.
A boolean flag indicating whether the trigger is active.
If missing or set to false, the trigger will stay defined in the configuration file, but will not execute.
Possible values: non-empty
The git branch(es) associated with the trigger. event
occurrences on this branch will execute the trigger.
You can specify either a single branch name or a glob pattern potentially matching multiple branches.
applicationPackage
object
An object specifying the version to be used for creating a new application package after the component release, if any.
If no value is provided, no new package will be created upon the release of the component during trigger execution.
The semver pattern used for versioning the application package created after the component release.
Use pattern with wildcards to specify package version
(? latest, + increment, i.e. 1.?.+ will increment patch version for the latest version where major path is 1).
deployments
object[]
A list of objects specifying the deployment of the application package potentially created in the previous step
to specific environment(s) and the corresponding configurations to be used.
An empty or missing list indicates that no deployments will be executed.
A boolean flag indicating whether the deployment should be executed.
If missing or set to false, the deployment will stay defined in the configuration file, but will not execute.
Possible values: non-empty
The ID of the environment the application should be deployed to.
Possible values: non-empty
Specification of the deployment configuration used for the deployment.
The two valid values are latest
, representing the highest versioned defined configuration,
and branch
, representing the configuration stored in the branch associated with the trigger.
The primary action executed by the trigger.
Default value is preview
, representing a preview build,
the other possible value is release
, representing a release build.
version
object
nullable
Specifies how to determine the next version of the component.
You must choose either version pattern or a branch pattern.
If no version is specified, the patch version of the last major and minor path will be incremented.
The semver pattern used for versioning the component builds.
Use pattern with wildcards to specify release version
(? latest, + increment, i.e. 1.?.+ will increment patch version for the latest version where major path is 1).
Possible values: non-empty
The release version will be determined from the branch name following this pattern.
${MAJOR}, ${MINOR} can be used as placeholders. i.e release/${MAJOR}.${MINOR} for release/1.5
will creates 1.5.0, 1.5.1, etc builds versions.
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
Component triggers were updated
- application/vnd.codenow.v1+json
- Schema
- Example (from schema)
Schema
Possible values: non-empty
{
"status": "string"
}
The request was unacceptable, often due to missing a required parameter.
No valid API key provided.
The API key doesn't have permissions to perform the request.
Resource not found.
Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.
Something went wrong on CodeNOW's end.