Purge Services
POST /maintenance/purge |
Description
Purge the services which received a started and/or a completed event prior to a limit date. Use this query if your application needs to remove old services from the database.
Important
Your application needs a WRITE role to perform this request.Operation
Method | POST | ||
---|---|---|---|
URL | /genesys/1/cs/maintenance/purge | ||
Field Name | Type | Mandatory | Description |
URI Parameters | |||
limit | String | yes | Specifies the time limit for the service deletion.
Example : 2014-09-02T08:00:00.000Z |
operation | String | yes | Specifies the type of operation to be performed when the purging process runs.
|
Response
The Context Management Service API answers with HTTP codes for every request. The following table shows the correct response for a successful request. See HTTP Response Codes and Errors for further details on the possible codes that this operation can return.
HTTP code | 200 | ||
---|---|---|---|
HTTP message | OK |
<references />
Example
Operation The following operation deletes the given service with its active states and tasks.
POST http://localhost:8080/genesys/1/cs/maintenance/purge
{
"limit": "2014-09-26T16:50:00.000Z",
"operation":"purge.service.all"
}
Result
200 OK
This page was last edited on April 27, 2017, at 10:04.
Comments or questions about this documentation? Contact us for support!