Updates a webhook for a repository.

Debugging

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.

Examples

Sample requests

http(s)://[Endpoint]/? Action=UpdateRepoTrigger
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&RepoId=crr-tquyps22md8purzx
&TriggerId=crw-k7bdx4kt52tyeurf
&TriggerName=test_trigger
&TriggerUrl=https://www.test.com
&TriggerType=TAG_LIST
&TriggerTag=master
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<RequestId>32535049-ED91-4589-98C0-7C88766EDF1F</RequestId>
<Code>success</Code>

JSON format

{
    "IsSuccess":true,
    "RequestId":"32535049-ED91-4589-98C0-7C88766EDF1F",
    "Code":"success"
}

Error codes

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