The pagecacheRuleEnableDisable Web API Method

Enabled/disables the page cache rule.

Version:1.15

Required Permissions: Full

HTTP method: POST

Supported by Editions: Zend Server

Request Parameters:  

Parameter

Type

Required

Description

enable

boolean

Yes

Whether you want to enable or disable the rules.

rules

array

Yes

array of rules ids

Expected Response Code: 200 OK. For more information see Response Format.

Response Format: The rule information.

Possible Action Specific Error Codes:

HTTP Code

Error Code

Description

500

internalServerError

Creation of rule failed due to an internal problem

Example

Usage Example

Request

GET/ZendServer/Api/pageCacheRuleEnableDisable?enable=true&rules=1

Response

{

"result": "success"

}