Updating Trigger Settings
Function
Update trigger settings.
URI
PATCH /v2/manage/namespaces/{namespace}/repos/{repository}/triggers/{trigger}
Table 1 describes the parameters.
Request
Request parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| enable | Yes | String | Whether to enable the trigger. The value can be true, which indicates enabling the trigger, and false, which indicates disabling the trigger. |
{
"enable": "true"
} Response
{}
Status Code
Table 3 describes the status codes of this API.
Last Article: Obtaining Information About a Trigger
Next Article: Adding an Image Retention Policy
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.