PATCH settings
A PATCH query to the settings endpoint lets you use a JSON patch format for operations and content-type headers specified in RFC6902.
| Relative Route | /settings |
|---|---|
HTTP Verb | PATCH |
Headers
The following header is required:
| Name | Value |
|---|---|
Content-Type | application/json-patch+json |
Body
The body structure is as follows:
The replace operation is the only one allowed.
Patch settings
The settings available for patching are as follows:
-
Content cache time to live: cache duration of a piece of content. Value format: timespan.
-
Media cache time to live: cache duration of media resources. Value format: timespan.
-
Content cache auto-clear: auto-clear content-specific caches on publishing end. Value format: boolean.
-
Media cache auto-clear: auto-clear media caches on publishing end. Value format: boolean.
-
Tenant cache auto-clear: auto-clear entire cache on publishing end. Value format: boolean.
Response
A PATCH query returns the tenant settings structured as follow:
A successful query returns the OK status code (200).