Jump to: navigation, search

Insert Extension Records

ApiRef2.png POST /profiles/${customer_id}/extensions
Available since: 8.0.100.00

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> Extension
or 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 Extension.
  • For multi-valued extensions, the extension's value is an an array of zero or more 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.

This page was last edited on November 23, 2017, at 14:03.
Comments or questions about this documentation? Contact us for support!