Jump to: navigation, search

Insert Extension Records

Important
Prerequisites: You need to enable profiles in UCS.
POST /profiles/${customer_id}/extensions

Description

This operation inserts one or more extension records, which replace former records if they already exist.

Operation

ID CV.WS.PROF.4
Method POST
URL /profiles/${customer_id}/extensions
Parameter   Type   Mandatory Description
URI Parameters
${customer_id} string yes The unique ID of the given customer. Limited to 16 characters.
Body
<extension n> Profile Extension
or Profile Extension[]
no Profile extensions, where <extension n> corresponds to the unique name of the profile extension resource.
  • For single-valued extensions, the extension's value is a single Profile extension.
  • For multi-valued extensions, the extension's value is an an array of zero or more Profile Extension.

<references />

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

POST /profiles/0004Va58A92T0017/extensions
  {
"customer_id":"0004Va58A92T0017",
"Phone": [
 {"PhoneType":0,
 "prefix":"+33",
 "number":"3145926535",
 "description":"family phone",
 "start_availabilty":"2009-12-18T18:30:00.000Z",
 "end_availabilty":"2009-12-18T21:40:00.000Z"},
 {"PhoneType":2,
 "prefix":"+33",
 "number":"6543210",
 "description":"business calls only, no sales",
 "start_availabilty":"2009-12-18T09:30:00.000Z",
 "end_availabilty":"2009-12-18T17:45:00.000Z"},
 {"PhoneType":5,
 "prefix":"+33",
 "number":"951357456",
 "description":"",
 ] }
}

Result

 200 OK

UCS added the phone extension to the extensions of the specified customer.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on September 7, 2018, at 02:34.