You can call CreateTriggerHook to create an application operation trigger.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses the common request header only. For more information, see Common parameters.

Request syntax

PUT /hook/trigger HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
region_id String No cn-beijing

The ID of the region where the cluster is deployed.

cluster_id String No c82e6987e2961451182edacd74faf****

The ID of the cluster.

project_id String No default/nginx-deployment-basic

The ID of the application for which the trigger is created.

action String No redeploy

The operation to trigger. Set the value to redeploy.

trigger_url String No ""

The URL of the trigger.


Sample requests

PUT /hook/trigger HTTP/1.1
Common request header

Sample success responses

JSON format


Error codes

For a list of error codes, visit the API Error Center.