Jump to: navigation, search

Update Task Extension

CSAPIProxyGMS.png POST /genesys/1/cs/services/${service_id}/tasks/${task_id}/extensions/${extension_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.18
Method PUT
URL /genesys/1/cs/services/${service_id}/tasks/${task_id}/extensions/${extension_name}
Name   Type   Mandatory Description
URI Parameters
${service_id} integer yes The ID of the service.
${task_id} integer yes The ID of the task.
${extension_name} string yes The name of the extension
Body
<extension  n> Any JSON type yes Values for one or more extension attached data.

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 HTTPResponseCodesandErrors 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/tasks/42/extensions/Proposal
 [
   {
    "car type":"cabriolet",
   "price":25 000,
   "seats":2,
   "comments":"200 cv, hardtop"
 },
 {
  "car type":"S.U.V.",
  "price":70 000,
  "seats":8,
  "comments":"4wd, leather seats"
 }
 ]

Result

 200 OK

Operation
Update a single-valued extension.

 PUT /services/8389/tasks/42/extensions/Survey
 {
   "url":"http://ourServer/storage/userAnswers",
   "question1":7,
   "question2":true,
   "question3":"will be better with cable tv and on-demand video"
  }

Result

 200 OK
This page was last edited on September 13, 2016, at 08:20.
Comments or questions about this documentation? Contact us for support!