Update end user
PUT
Update an end user.
ApiKeyAuth organization.memberheader
Authorization<token>Scope: organization.member
userId*stringThe end user id
Format
uuidThe updated details for an end user
application/json- body
displayName*stringemail?stringphoneNumber?stringadditionalEmails?array<string>additionalPhoneNumbers?array<string>firstName?stringlastName?stringmiddleNames?array<string>avatarUrl?stringexternalId?stringThe updated end user
application/json- response
data*curl -X PUT 'https://dev.dixa.io/beta/endusers/{userId}' \ -H 'Authorization: <API token>' \ -H 'Content-Type: application/json' \ -d '{ "displayName": "Alice Brown", "email": "alice@brown.com", "phoneNumber": "+551155256325", "additionalEmails": [ "alice@secondary.email" ], "additionalPhoneNumbers": [ "+5566778899" ], "firstName": "Alice", "lastName": "Brown", "middleNames": [ "J." ], "avatarUrl": "http://avatar.url", "externalId": "#12345678"}'{}
"data": {}
"id": "434ce9f5-14c8-4be1-a0a8-f755010deb9b",
"createdAt": "2020-12-16T09:41:43Z",
"displayName": "Alice Brown",
"email": "alice@brown.com",
"phoneNumber": "+551155256325",
"additionalEmails": [],
"alice@secondary.email"
"additionalPhoneNumbers": [],
"+5566778899"
"firstName": "Alice",
"lastName": "Brown",
"middleNames": [],
"J."
"avatarUrl": "https://files.dixa.io/public/image_id",
"externalId": "#12345678",
"customAttributes": []
{}
"id": "4baa78bc-4815-4122-9c99-f71cd742d37b",
"name": "My Attribute",
"identifier": "my_attribute",
"value": "My Attribute Value"