Skip to main content

UpdateRepoWebhook

Description

call UpdateRepoWebhook update mirror repository trigger.

Request Method

POST

Request Path

/apsara/route/cr/UpdateRepoWebhook

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
WebhookIdBODYstringYesNo sample value for this parameter.trigger ID
RepoNamespaceBODYstringYesNo sample value for this parameter.namespace name
regionIdBODYstringYesNo sample value for this parameter.region id
RepoNameBODYstringYesNo sample value for this parameter.warehouse name
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
WebhookUrlstringYeswarehouse trigger URL. The length limit is 1 to 1024. It supports lowercase letters, numbers, dashes (-), and underscores (_) (which cannot start with a dash or underscore).
WebhookNamestringYeswarehouse trigger name. The length is limited to 2 to 30. You can use lowercase letters, digits, and underscores (_) (which cannot start with an underscore).

Example

Successful Response example

{
"WebhookUrl":"Yes",
"WebhookName":"Yes"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}