Creates or updates a page cache rule for a specific application.
Version: 1.3
Required Permissions: Full
HTTP method: POST
Supported by Editions: Zend Server
Request Parameters:
Parameter |
Type |
Required |
Description |
ruleId |
integer |
No |
Required when updating an existing rule |
urlPath |
string |
Yes |
Relative to Base URL |
matchType |
string |
Yes |
'exactMatch', 'regexMatch' or 'regexlMatch' |
lifetime |
integer |
Yes |
|
compress |
boolean |
No |
default TRUE |
name |
string |
No |
Non empty string |
applicationId |
interger |
Yes |
|
conditionsType |
array |
No |
'and' or 'or' |
conditions |
array |
No |
|
splitBy |
array |
No |
|
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 |
|
Request
Response
|
|
|
|
Related Links: Available API Methods |
|
|
© 1999-2013 Zend Technologies, Ltd. All rights reserved.