Jump to: navigation, search

Update State Extension

PUT /genesys/1/cs/services/${service_id}/states/${state_id}/extensions/${ext_name}

Description

This operation replaces the extension value with a new extension value. The former value of the extension is lost.

Operation

Updates a state's extension value
ID CV.WS.SRV.17
Method PUT
URL /genesys/1/cs/services/${service_id}/states/${state_id}/extensions/${ext_name}
Name   Type   Mandatory Description
URI Parameters
${service_id} integer yes The ID of the service.
${state_id} integer yes The ID of the state.
${ext_name} string yes The name of the extension.
Body
<extension> or <extension>[\ value yes Values for one or more extensions.

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.

Response
HTTP code 200
HTTP message OK

Example

Operation: Update a multi-valued extension

 PUT  /genesys/1/cs/services/8389/states/1/extensions/Satisfaction
 [
  {
  "rating":2,
  "pertinence":8,
  "usefull":true,
  "place":"Terranova mexico resort"
 },
 {
  "rating":8,
  "pertinence":4,
  "usefull":false,
  "place":"Fancy resort Paris"
 }
]

Result

 204 No Content

Operation: Update a single-valued extension

 PUT  /genesys/1/cs/services/8389/states/1/extensions/Feedback
 {
    "FeedbackType":"survey",
    "rating":7,
    "notes":"warm welcome at frontdesk, thanks for the nice trip"
 }

Result

 200 OK
This page was last edited on September 7, 2018, at 10:35.
Comments or questions about this documentation? Contact us for support!