tencent cloud

APIs

ModifyZoneWorkMode

Focus Mode
Font Size
Last updated: 2026-04-13 14:45:01

1. API Description

Domain name for API request: teo.intl.tencentcloudapi.com.

This API is used to modify the working mode of configuration modules under a site. Configuration modules can enable version management mode or immediate effect mode by configuration group dimension. For details, refer to version management (https://www.tencentcloud.comom/document/product/1552/113690?from_cn_redirect=1).

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: ModifyZoneWorkMode.
Version Yes String Common Params. The value used for this API: 2022-09-01.
Region No String Common Params. This parameter is not required.
ZoneId Yes String Zone ID.
WorkModeInfos.N No Array of ConfigGroupWorkModeInfo Version management configuration group working mode. site configuration modules can enable "version management mode" or "immediate effect mode" by configuration group dimension. for details, see version management.

3. Output Parameters

Parameter Name Type Description
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Modify the Working Mode of the Site Configuration Group

Modify the site layer-7 acceleration configuration group and edge function configuration group working mode to version management.

Input Example

POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyZoneWorkMode
<Common request parameters>

{
    "ZoneId": "zone-27********v1",
    "WorkModeInfos": [
        {
            "ConfigGroupType": "l7_acceleration",
            "WorkMode": "version_control"
        },
        {
            "ConfigGroupType": "edge_functions",
            "WorkMode": "version_control"
        }
    ]
}

Output Example

{
    "Response": {
        "RequestId": "a06f52e7-2aab-4510-b2c2-1065bfb4414c"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InvalidParameter.WorkModeIsSame The site working mode remains unchanged.
InvalidParameter.ZoneNotFound The site does not exist.
InvalidParameterValue.OwnershipVerificationNotPassed Verification failed for ownership. please first complete site ownership verification.
OperationDenied.AliasDomainNotSupport This operation is not supported for alias domain names.
OperationDenied.ConfigLocked The configuration is locked. Please unlock and try again.
OperationDenied.DomainStatusUnstable Some domain names on the site are currently experiencing instability. The stable states for domain names are "online" and "offline".
OperationDenied.ErrZoneIsAlreadyPaused The EdgeOne service of the site is disabled. Please enable it and try again.
OperationDenied.NotInVersionControlWhiteList The current user is not included in the whitelist for version management.
OperationDenied.OwnershipVerificationNotPassed Ownership verification failed. Please complete the site ownership verification first.
OperationDenied.PlanTypeIsWrong The enterprise package for site configuration does not support the version control feature.
OperationDenied.VersionControlLocked The operation is not allowed because the version management mode is applied.
OperationDenied.VersionControlNeedNSSwitched For sites in NS mode, please first switch NS before toggling version management.
ResourceNotFound.ZoneNotFound Site not found.
ResourceUnavailable.ZoneNotFound The site does not exist or is not belong to this account.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback