Maintenance Notice - PDF Generation
Dynamic PDF generation for web-based content is temporarily unavailable. This maintenance affects dynamic PDF files that are generated from either the HTML-based page or manual that you are viewing. Links that normally allow this functionality have been hidden, and will reappear as soon as the feature is restored.


Note: Access to static files, including PDF files that are not dynamically generated from our web-based content, is unaffected.

Jump to: navigation, search

Update Expiration Time

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

Description

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.

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

Operation

Important
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
no
Time at which the service should expire, using the ISO 8601 representation: [YYYY]-[MM]-[DD]T[HH]:[mm]:[ss].[SSS]Z
ttl integer
no
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.

Response

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
Body
Empty

Example

PUT http://localhost:8010/genesys/1/cs/services/115-cc038ec2-c284-41e5-8560-b006743e1935
{  
  "ttl": 86400
}
Response: 200 OK
This page was last edited on April 27, 2017, at 10:04.

Feedback

Comment on this article:

blog comments powered by Disqus