Update user contacts
PUT /api/2.0/people/{userid}/contacts
Request
Updates the contact information of the user with the ID specified in the request merging the new data into the current portal data.
Authorization
An API key is a token that you provide when making API calls. Include the token in a header parameter called Authorization
.
Example: Authorization: 864FE52C-1C1C-469F-9308-51DAFEFE7436
.
Headers
- Accept
enum of string
Can be one of:
application/json
.- Content-Type
enum of string
Can be one of:
application/json
.
Path
- userid
string
User ID
Body
- contacts
array of object
List of new contacts
- Type
string
- Value
string
Examples
PUT /api/2.0/people/%7Buserid%7D/contacts HTTP/1.1
Accept: application/json
Content-Length: 117
Content-Type: application/json
Host: example.com
{
"contacts": [
{
"value": {
"Type": "GTalk",
"Value": "my@gmail.com"
}
}
]
}
curl --request PUT \
--url https://example.com/api/2.0/people/%7Buserid%7D/contacts \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"contacts": [
{
"value": {
"Type": "GTalk",
"Value": "my@gmail.com"
}
}
]
}'
Responses
200
Updated user profile
- FirstName
string
- LastName
string
- UserName
string
- Email
string
- Birthday
string
- Sex
string
- Status
enum of integer
int32 [1 - Active, 2 - Terminated, 4 - LeaveOfAbsence, 5 - Default, 7 - All]
Can be one of:
Active
,Terminated
,LeaveOfAbsence
,Default
,All
.- ActivationStatus
enum of integer
int32 [0 - NotActivated, 1 - Activated, 2 - Pending, 4 - AutoGenerated]
Can be one of:
NotActivated
,Activated
,Pending
,AutoGenerated
.- Terminated
string
- Department
string
- WorkFrom
string
- Groups
array of object
- Name
string
- Id
string
uuid - Manager
string
- Location
string
- Notes
string
- Lead
string
uuid - AvatarMedium
string
- Avatar
string
- IsAdmin
boolean
- IsLDAP
boolean
- ListAdminModules
array of string
- IsOwner
boolean
- IsVisitor
boolean
- CultureName
string
- IsSSO
boolean
- QuotaLimit
integer
int64 - UsedSpace
integer
int64 - DocsSpace
integer
int64 - MailSpace
integer
int64 - TalkSpace
integer
int64 - Id
string
uuid - DisplayName
string
- Title
string
- AvatarSmall
string
- ProfileUrl
string
401
Unauthorized