Jump to: navigation, search

Update Expiration Time

PUT /genesys/1/cs/services/{service_id}


You can make a conversation expire by adding a Time-to-live (TTL) or expiration time to a Service by updating your resource with this query. When you update the TTL or service expiration time, you overwrite previous updates and any expiration time set in your configuration. You can also use ttl and expiration_time attributes in Service Start Events and Service End Events.

Updating the conversation expiration time has a performance impact and uses as much CPU than three event queries.


You need a WRITE role to use this request.
Method PUT
URL /genesys/1/cs/services/{service_id}
Parameter   Type   Mandatory Description
URI Parameters
{service_id} string yes The id of the service to request.
expiration_time string
Time at which the service should expire, using the ISO 8601 representation: [YYYY]-[MM]-[DD]T[HH]:[mm]:[ss].[SSS]Z
ttl integer
Time-to-live of the full conversation in seconds from this event time. This parameter takes precedence over expiration_time parameter which is discarded if you pass both parameters.


The following table shows the correct response for a successful request. In case of error, you will see standard HTTP response error codes.

HTTP code 200
HTTP message OK


PUT http://localhost:8010/genesys/1/cs/services/115-cc038ec2-c284-41e5-8560-b006743e1935
  "ttl": 86400
Response: 200 OK

Comment on this article:

blog comments powered by Disqus
This page was last modified on 27 April 2017, at 03:04.