Attribute Schema
Purpose: Describes an attribute schema, which can be part of an Extension Schema or of a Profile Schema. |
Description
Your application can retrieve or manage the definitions of the attributes that compose some resources of the Context Services. Each attribute schema defines an attribute, its name, its type, and associated properties such as the default value of the attribute (if it exists). For instance, the following attribute schema defines that the Address Type attribute accepts integer values and is equal to 0 by default:
{"name":"AddressType","type":"integer","default":0}
Profile Attributes
Profile attributes correspond to a recorded schema which details the attribute name, type, and content.
Select in "Tenant" the item specific configuration, and under "Business Attributes" the item 'Contact Attributes'. Then, create a new Business Attribute Value. By default, the new Attribute is of type string. To assign another type to the schema, in Annex, create a section "settings", and a key "type" with the value "string" or "date". The default predefined attributes visible in the Configuration Server are the following:
- First Name (string)
- Last Name (string)
- Phone Number (string)
- E-mail Address (string)
- Title (string)
Default 'internal' Attributes (not visible in the Configuration Server) are the following:
- LastCalledAgent_EmployeeID (string)
- LastCalledAgent_TimeStamp (date)
- PreferredAgent_EmployeeID (string)
Additional attributes are available for each active media defined in the Business Attribute "Media Type" of the Configuration Manager:
- LCA_EmplID_<media> (string)
- LCA_TimeStamp_<media> (date)
- Pref_EmplID_<media> (string)
Attributes of type date/time are formatted in ISO 8601 UTC: [YYYY]-[MM]-[DD]T[HH]:[mm]:[ss].[SSS]Z
Example: "1981-03-17T02:00:00.000Z"
Service, State, and Task extension attributes
Your application can define service, states, and tasks extension resources, based on extension schema which use an array of Attribute Schemas to define the content of the extension. See Extension Schema for further details.
Resource
Field | Type | Mandatory | Description |
---|---|---|---|
name | string | yes | The name is unique for each attribute within the given extension.
Important In profile attribute schemas, the name is not case-sensitive. |
type | token
|
yes |
|
default | numeric or string | no | Provides a default value for the attribute. For numeric attributes, you do not need quotation marks. Quotation marks are for string, date, and datetime attributes. By default, the date/time format is ISO 8601 UTC: [YYYY]-[MM]-[DD]T[HH]:[mm]:[ss].[SSS]Z .
|
length | integer | no | Reserved to attributes of type String . Defines the maximum number of characters for the string.
|
mandatory | boolean | no |
|