The pagecacheUpdateRulePriority Web API Method

Update page cache rule position.

Version:1.15

Required Permissions: Full

HTTP method: POST

Supported by Editions: Zend Server

Request Parameters:  

Parameter

 Type

Required

Description

ruleId

integer

Yes

The Rule Id.

priority

integer

Yes

The new priority.

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

POST /ZendServer/Api/pagecacheUpdateRulePriority?ruleId=1&priority:=1

Response

{

"ruleId": 1,

"priority": 1

}