The pagecacheSaveRule Web API Method
Creates or updates a page cache rule.
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 |
|
urlScheme |
string |
Yes |
'http', 'https' or 'https?' for all |
|
urlHost |
string |
Yes |
|
|
urlPath |
string |
Yes |
|
|
matchType |
string |
Yes |
'exactMatch', 'regexMatch' or 'regexlMatch' |
|
lifetime |
integer |
Yes |
|
|
compress |
boolean |
No |
Default TRUE |
|
name |
string |
No |
Non empty string |
|
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 |
Example
|
|
Request
Response
|
