Update Task Extension
PUT /services/${service_id}/tasks/${task_id}/extensions/${extension_name} | |
Available since: 8.0.200.00
|
Description
This operation replaces the extension value with a new extension value. The former value of the extension is lost.
Operation
ID | CV.WS.SRV.18 | ||
---|---|---|---|
Method | PUT | ||
URL | /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 | |||
<attribute n> |
|
yes | Values for one or more extension attributes (previously defined through the Create Task Extension Schema operation). |
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 |
Example
Operation
Update a multi-valued extension.
PUT /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 November 23, 2017, at 14:23.
Comments or questions about this documentation? Contact us for support!