Skip to content

Enable



POST /api/v1/monitor/mute/{mute_uuid}/enable

Overview

Enable the Mute Rule in the current workspace.

Before Calling and Usage Steps

First confirm the target from the current workspace list, then enable it. After completion, query the rule and its actual effective status again.

Enabling sets the rule status to 0 and retains the original time; expired rules will not be automatically extended or take effect immediately as a result. The cache is synchronized asynchronously, and notifications configured for the rule are scheduled based on the still-valid time/targets.

When no matching record exists, the API may return 500 instead of 404. Do not assume that the write did not occur based solely on the error; first re-read the valid UUID.

Route Parameters

Parameter Name Type Required Description
mute_uuid string Y Path UUID of the Mute Rule in the current workspace.
Example: mute_example
How to obtain or enter: Get it from content.data[].uuid in the Mute Rule List.

Request Headers

Parameter Name Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to obtain or enter: Obtain an OpenAPI Key with the required permissions from API Key Management in the target workspace.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/monitor/mute/mute_example/enable' \
  -H 'DF-API-KEY: <DF-API-KEY>'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content boolean true on success; see Usage Notes for actual matching and asynchronous status boundaries.
{
  "code": 200,
  "content": true,
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description How to Handle
406 ft.ParameterValidationFailed A request field is missing, or the field value violates the declared validation conditions Parameter parsing failed Verify the parameter location, field name, type, and value.
500 ft.InternalServerError The enable branch may fail when the target does not exist, has been deleted, or is in another workspace, or saving/synchronization fails Internal error Verify the UUID and current status from the current workspace list, then retry. If the failure persists, provide the traceId.

Feedback

Is this page helpful?