Benutzer-Attribute

Alle Attri­bute eines Benut­zers auflisten

GET /api/user-property-values?user_id={user_id}

Attri­bute kön­nen immer nur für einen bestimm­ten Benut­zer zurück­ge­ge­ben werden.

Des­halb ist user_id ein Pflichtparameter.

<?xml version="1.0" encoding="UTF-8"?>
<user-property-values type="array">
    <user-property-value>
        ...
    </user-property-value>
    <user-property-value>
        ...
    </user-property-value>
</user-property-values>

Ein­zel­nes Attri­but aufrufen

GET /api/user-property-values/{id}
<?xml version="1.0" encoding="UTF-8"?>
<user-property-value>
    <id type="integer">1</id>
    <user_id type="integer">2</user_id>
    <clieusernt_property_id type="integer">3</user_property_id>
    <type>TEXTFIELD</type>
    <name>Abteilung</name>
    <value>Marketing</value>
</user-property-value>

Attri­but setzen

POST /api/user-attribute-values
XML-Element Beschrei­bung Typ Default-Wert Pflicht­feld
user_id ID des Benut­zers INT ja
user_property_id ID des Attri­buts INT ja
value Wert des Attributs ALNUM ja
<user-property-value>
    <user_id>2</user_id>
    <user_property_id>3</user_property_id>
    <value>Innendienst</value>
</user-property-value>
<?xml version="1.0" encoding="UTF-8"?>
<user-property-value>
    <id type="integer">1</id>
    <user_id type="integer">2</user_id>
    <user_property_id type="integer">3</user_property_id>
    <type>TEXTFIELD</type>
    <name>Abteilung</name>
    <value>Innendienst</value>
</user-property-value>