Функция требует авторизации
Описание - Обновляет контактные данные указанного пользователя, объединяя отправленные данные с данными на портале
Параметры
Имя | Описание | Тип | Пример |
userid
отправка в url
|
ИД пользователя | строка | какой-либо текст |
contacts
отправка в body
|
Список контактов | Collection of Контактs
коллекция
|
contacts[0][Type]=GTalk&contacts[0][Value]=my@gmail.com |
Возвращает - Обновленный профиль пользователя
Пример ответа
application/json
{ "status": 0, "response": { "id": "00000000-0000-0000-0000-000000000000", "userName": "Mike.Zanyatski", "isVisitor": false, "firstName": "Mike", "lastName": "Zanyatski", "email": "my@gmail.com", "birthday": "2020-12-08T14:19:59.7258222Z", "sex": "male", "status": 1, "activationStatus": 0, "terminated": "2020-12-08T14:19:59.7258222Z", "department": "Marketing", "workFrom": "2020-12-08T14:19:59.7258222Z", "location": "Palo Alto", "notes": "Notes to worker", "displayName": null, "title": "Manager", "contacts": [ { "type": "GTalk", "value": "my@gmail.com" } ], "groups": [ { "id": "00000000-0000-0000-0000-000000000000", "name": "Group Name", "manager": "Jake.Zazhitski" } ], "avatarMedium": "url to medium avatar", "avatar": "url to big avatar", "isAdmin": false, "isLDAP": false, "listAdminModules": [ "projects", "crm" ], "isOwner": false, "cultureName": "en-EN", "isSSO": false, "avatarSmall": "url to small avatar", "profileUrl": "" } }
text/xml
0 00000000-0000-0000-0000-000000000000 Mike.Zanyatski false Mike Zanyatski my@gmail.com 2020-12-08T14:19:59.7258222Z male 1 0 2020-12-08T14:19:59.7258222Z Marketing 2020-12-08T14:19:59.7258222Z Palo Alto Notes to worker /> GTalk my@gmail.com 00000000-0000-0000-0000-000000000000 Group Name Jake.Zazhitski url to medium avatar url to big avatar false false projects crm false en-EN false url to small avatar