Set user contacts
POST /api/2.0/people/{userid}/contacts
Sets the contacts of the user with the ID specified in the request replacing the current portal data with the new data.
Path parameters
userid
type: string
User ID
Example: "string"
Request body
contacts
type: Contact[]
List of new contacts
Request example
{
"contacts": [
{
"Type": "GTalk",
"Value": "my@gmail.com"
}
]
}
Returns
Updated user profile. A request that is not authenticated returns 401.
FirstName
type: string
Example: "Mike"
LastName
type: string
Example: "Zanyatski"
UserName
type: string
Example: "Mike.Zanyatski"
Email
type: string
Example: "my@domain.com"
Birthday
type: string
Example: "2008-04-10T06-30-00.000Z"
Sex
type: string
Example: "male"
Status
type: "Active" | "Terminated" | "LeaveOfAbsence" | "Default" | "All"
[1 - Active, 2 - Terminated, 4 - LeaveOfAbsence, 5 - Default, 7 - All]
Example: 1
ActivationStatus
type: "NotActivated" | "Activated" | "Pending" | "AutoGenerated"
[0 - NotActivated, 1 - Activated, 2 - Pending, 4 - AutoGenerated]
Example: 0
Terminated
type: string
Example: "2008-04-10T06-30-00.000Z"
Department
type: string
Example: "Marketing"
WorkFrom
type: string
Example: "2008-04-10T06-30-00.000Z"
Groups
type: GroupWrapperSummary[]
Location
type: string
Example: "Palo Alto"
Notes
type: string
Example: "Notes to worker"
Lead
type: string
Example: "055312F1-1D71-4786-BB5B-D5910316E53C"
AvatarMedium
type: string
Example: "url to medium avatar"
Avatar
type: string
Example: "url to big avatar"
IsAdmin
type: boolean
Example: false
IsLDAP
type: boolean
Example: false
ListAdminModules
type: string[]
IsOwner
type: boolean
Example: false
IsVisitor
type: boolean
Example: false
CultureName
type: string
Example: "en-EN"
IsSSO
type: boolean
Example: false
QuotaLimit
type: integer
Example: 0
UsedSpace
type: integer
Example: 0
DocsSpace
type: integer
Example: 0
MailSpace
type: integer
Example: 0
TalkSpace
type: integer
Example: 0
Id
type: string
Example: "00000000-0000-0000-0000-000000000000"
DisplayName
type: string
Example: "Mike Zanyatski"
Title
type: string
Example: "Manager"
AvatarSmall
type: string
Example: "url to small avatar"
ProfileUrl
type: string
Example: "/Products/People/Profile.aspx?user=administrator"
Response example
{
"FirstName": "Mike",
"LastName": "Zanyatski",
"UserName": "Mike.Zanyatski",
"Email": "my@domain.com",
"Birthday": "2008-04-10T06-30-00.000Z",
"Sex": "male",
"Status": 1,
"ActivationStatus": 0,
"Terminated": "2008-04-10T06-30-00.000Z",
"Department": "Marketing",
"WorkFrom": "2008-04-10T06-30-00.000Z",
"Groups": [
{
"Name": "Group Name",
"Id": "00000000-0000-0000-0000-000000000000",
"Manager": "Jake.Zazhitski"
}
],
"Location": "Palo Alto",
"Notes": "Notes to worker",
"Lead": "055312F1-1D71-4786-BB5B-D5910316E53C",
"AvatarMedium": "url to medium avatar",
"Avatar": "url to big avatar",
"IsAdmin": false,
"IsLDAP": false,
"ListAdminModules": [
"projects,crm"
],
"IsOwner": false,
"IsVisitor": false,
"CultureName": "en-EN",
"IsSSO": false,
"QuotaLimit": 0,
"UsedSpace": 0,
"DocsSpace": 0,
"MailSpace": 0,
"TalkSpace": 0,
"Id": "00000000-0000-0000-0000-000000000000",
"DisplayName": "Mike Zanyatski",
"Title": "Manager",
"AvatarSmall": "url to small avatar",
"ProfileUrl": "/Products/People/Profile.aspx?user=administrator"
}