Clear
Clear the cache scope for a given context.
Resource Information
This service uses the tomcat application on port 8080 by default. To see a list of default ports click here
The context for this API is /
.
HTTP Verb
|
GET
|
URL
|
/api/1/cache/clear |
Response Formats
|
JSON |
Parameters
Name
|
Type
|
Required
|
Description
|
---|---|---|---|
contextId
|
String
|
✓
|
The site context id
|
token
|
String
|
✓
|
The authorization token
|
Example
Request
GET .../api/1/cache/clear?contextId=405ffc233d075b010536bd2eb786b86c&token=defaultManagementToken
Response
Status 200 OK
{ "message": "Cache scope for context '405ffc233d075b010536bd2eb786b86c' has been cleared" }
Responses
Status
|
Location
|
Response Body
|
---|---|---|
200
|
See example above.
|
|
400
|
{"message":"Required String parameter 'token' is not present"} |
|
401
|
{"message":"Management authorization failed, invalid token."} |
|
500
|
{ "message" : "Internal server error" } |