Updates a webhook for a repository.


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 parameters

Parameter Type Required Example Description
Action String Yes UpdateRepoTrigger

The operation that you want to perform. Set the value to UpdateRepoTrigger.

InstanceId String Yes cri-kmsiwlxxdcvaduwb

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoId String Yes crr-tquyps22md8purzx

The ID of the repository.

TriggerId String Yes crw-k7bdx4kt52tyeurf

The ID of the webhook.

TriggerName String Yes test_trigger

The name of the webhook.

TriggerUrl String No https://www.test.com

The URL of the webhook.

TriggerType String No TAG_LIST

The type of the webhook. Valid values: ALL, TAG_REG_EXP, and TAG_LIST.

TriggerTag String No master

The image tag that triggers the webhook.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The return value.

RequestId String 32535049-ED91-4589-98C0-7C88766EDF1F

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=UpdateRepoTrigger
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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