User Properties

List all user properties

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 a single user property

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>

Create property

POST /api/user-properties
XML elementDescriptionTypeDefault valueMandatory
nameName of the attributeALNUMyes
typeType of the attribute (TEXTFIELD = single line textfield, TEXTAREA = multi line text field, CHECKBOX = Checkbox)ALNUMyes
default_valueDefault valueALNUM
is_nvlShould the default value be used if there is no other value? 1=trueBOOL
<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>

Edit user property

PUT /api/user-properties/{id}
<user-property>
    <name>private address</name>
    <type>TEXTAREA</type>
</user-property>

Delete property

DELETE /api/user-properties/{id}