Create Profile Extension Schema
POST /metadata/profiles/extensions | |
Available since: 8.0.100.00
|
Description
Creates a profile extension schema resource, which is mandatory to query and use profile extension schemas. Your application can create profile extension schemas when the UCS is in Production mode, but Genesys recommends to create extensions when the server is in maintenance mode.
Operation
Prerequisites:
- The server is in Maintenance mode.
ID | CV.WS.PROF.META.4 | ||
---|---|---|---|
Method | POST | ||
URL | /metadata/profiles/extensions | ||
Parameter | Type | Mandatory | Description |
Body: The schema to create.<ref>This is the Profile Extension Schema to create.</ref> | |||
name | string | yes | The unique, case-insensitive name of the extension. The name must start with a letter, and can be followed with letters, numbers, or underscores.
The name is restricted to a maximum of 26 characters (Maximum RDBMS shared limit on creation of index). |
type | token
|
yes | Extensions come in the following forms:
|
attributes | Attribute Schema[] | no | The array of zero or more attributes. Empty when type="classifier". |
unique | string[] | no | Lists attributes which are unique in the scope of a given customer. The customer profile cannot include several extension records with identical values for these attributes. For example, let's consider a contact extension with the attributes "phone_num", "ext", "time_of_day". To ensure that a given customer does not have two contact extensions with the same phone number, set the following in the extension schema:
unique = ["phone_num", "ext"] |
<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.
HTTP code | 201 |
---|---|
HTTP message | Created |
Header | Location: ${base_uri}/profiles/extensions/${extension-name}
where
|
Body | { "name": "${extension-name}"}
where:
|
Example
Operation
POST http://ucsserver.mycompany.com:8080/cms/profiles/extensions { "name":"Address", "type":"single-valued", "attributes": [ {"name":"AddressType","type":"integer","default":0}, {"name":"Address","type":"string","length":256}, {"name":"City","type":"string","length":32}, {"name":"County","type":"string","length":32}, {"name":"PostCode","type":"string", "length":10}, {"name":"Country","type":"string","length":32} ] }
Result
201 Created Content-Location http://ucsserver.mycompany.com:8080/cms/profiles/extensions/Address {"name":"Address"}
This page was last edited on November 23, 2017, at 16:01.
Comments or questions about this documentation? Contact us for support!