GET /api/user-properties
<?xml version="1.0" encoding="UTF-8"?> <user-properties type="array"> <user-property> ... </user-property> <user-property> ... </user-property> </user-properties>
GET /api/user-properties/{id}
<?xml version="1.0" encoding="UTF-8"?> <user-property> <id type="integer">7</id> <account_id type="integer">1</account_id> <name>Consultant</name> <type>CHECKBOX</type> </user-property>
POST /api/user-properties
XML element | Description | Type | Default value | Mandatory |
---|---|---|---|---|
name | Name of the attribute | ALNUM | yes | |
type | Type of the attribute (TEXTFIELD = single line textfield, TEXTAREA = multi line text field, CHECKBOX = Checkbox) | ALNUM | yes | |
default_value | Default value | ALNUM | ||
is_nvl | Should the default value be used if there is no other value? 1=true | BOOL |
<user-property> <name>Birthday</name> <type>TEXTFIELD</type> </user-property>
<?xml version="1.0" encoding="UTF-8"?> <user-property> <id type="integer">11</id> <account_id type="integer">1</account_id> <name>Birthday</name> <type>TEXTFIELD</type> </user-property>
PUT /api/user-properties/{id}
<user-property> <name>private address</name> <type>TEXTAREA</type> </user-property>
DELETE /api/user-properties/{id}