Skip to content

Disable Cache Flags

Request

When an application discards locally cached data as a result of receiving a flush_calls or flush_messages flag in an API result, it should call this method to inform the API to stop returning the corresponding flag in future API results.

Security
accessToken
Query
optionsobject, non-emptyrequired

The flag to disable. Note: Multiple flags can be disabled in a single call by passing this parameter multiple times, eg. options[flush_calls]=false&options[flush_messages]=false

curl -i -X GET \
  'https://p3.avanser.com/app/options?options=%7B%22flush_calls%22%3Afalse%2C%22flush_messages%22%3Afalse%7D&token=YOUR_API_KEY_HERE'

Responses

Cache flags disabled.

Bodyapplication/json
timestampintegerrequired

The time that the API response left the server, represented as the number of seconds since the UNIX epoch.

Example:1508903167
exectionnumber

The number of seconds that it took to process the API request.

Example:0.00041531896591187
errorbooleanrequired

Boolean indicating whether there was an error returned by the API request.

Example:false
datastringrequired

The data returned by the API. The format varies depending on the API function that was called.

Response
{ "timestamp": 1510101397, "exection": 0.00035298299789429, "error": false, "data": "OK" }