Query Profile Extension Schema
GET /metadata/profiles/extensions | |
Available since: 8.0.100.00
|
Description
Queries the schemas of the given profile extension. This operation is available in both Production
or Maintenance
modes (read the Documentation:CS:Developer:Server Mode page for further information about server modes.)
Operation
Prerequisites: The Profile Extension Schemas resource exist.
To create the profile extension schema, use the Create Profile Extension Schema operation.
ID | CV.WS.PROF.META.3 | |||
---|---|---|---|---|
Method | GET | |||
URL |
| |||
Name | Type | Mandatory | Description | |
URI Parameter | ||||
${extension-name} | string | no | The extension name, if a specific extension should be returned. |
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 |
Body | /metadata/profiles/extensions |
Returns an array of the following fields:
| |
/metadata/profiles/extensions/${extension-name} | |
Extension Schema or Extension Schema[] |
Example
Get all extension schemas
Operation
GET /metadata/profiles/extensions
Result
200 OK [ { "name":"Phone", "type":"multi-valued", "attributes": [ {"name":"PhoneType","type":"integer","default":0,"mandatory":"true"}, {"name":"prefix","type":"string","length":"3","default":"555",}, {"name":"PhoneNumber","type":"integer","length":15,"mandatory":"true"}, {"name":"description","type":"string","length":32,"mandatory":"true"}, {"name":"start_availabilty","type":"datetime"}, {"name":"end_availabilty","type":"datetime", "mandatory":"false"} ] }, { "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} ] } ]
Get a single extension schema
Operation
GET /metadata/profiles/extensions/Phone
Result
200 OK { "name":"Phone", "type":"multi-valued", "attributes": [ {"name":"PhoneType","type":"integer","default":0,"mandatory":"true"}, {"name":"prefix","type":"string","length":"3","default":"555",}, {"name":"PhoneNumber","type":"integer","length":15,"mandatory":"true"}, {"name":"description","type":"string","length":32,"mandatory":"true"}, {"name":"start_availabilty","type":"datetime"}, {"name":"end_availabilty","type":"datetime", "mandatory":"false"} ] }
This page was last edited on November 23, 2017, at 16:01.
Comments or questions about this documentation? Contact us for support!