Update a user's attributes or their custom data. Changes will be merged into the user's profile, so you can specify only the fields you want to update.
Note:
- Attributes (like name and address) cannot be partially updated, as the new value of an object or array will just replace the current one.
custom_datacan be partially updated since it will be merged with the existing data (as a shallow merge).
Required permissions:
apps:edit, [appId]:edit, users:edit.Security
ClientAccessToken
Secondary phone numbers to add to user's phone numbers, each specified in E.164 format
The language of the user, as provided by the browser using the Accept-Language header field
Username used to identify the user for password login (unless a primary email will be used instead)
- Sandbox environmenthttps://api.sbx.transmitsecurity.io/cis/v1/users/{user_id}
- US production environmenthttps://api.transmitsecurity.io/cis/v1/users/{user_id}
- EU production environmenthttps://api.eu.transmitsecurity.io/cis/v1/users/{user_id}
- CA production environmenthttps://api.ca.transmitsecurity.io/cis/v1/users/{user_id}
- AU production environmenthttps://api.au.transmitsecurity.io/cis/v1/users/{user_id}
- JP production environmenthttps://api.gasne1-ts01.transmitsecurity.io/cis/v1/users/{user_id}
curl -i -X PUT \
'https://api.sbx.transmitsecurity.io/cis/v1/users/{user_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'user-agent: string' \
-d '{
"email": "string",
"phone_number": "string",
"secondary_emails": [
"string"
],
"secondary_phone_numbers": [
"string"
],
"birthday": "2019-08-24T14:15:22Z",
"address": {
"country": "string",
"state": "string",
"city": "string",
"street_address": "string",
"postal_code": "string",
"type": "Home"
},
"name": {
"title": "string",
"first_name": "string",
"last_name": "string",
"middle_name": "string"
},
"status": "Active",
"external_account_id": "string",
"custom_app_data": {},
"picture": "string",
"language": "string",
"custom_data": {},
"external_user_id": "string",
"username": "string",
"custom_user_fields": {}
}'Response
{ "result": { "email": { … }, "secondary_emails": [ … ], "phone_number": { … }, "secondary_phone_numbers": [ … ], "username": "string", "user_id": "string", "birthday": "2019-08-24T14:15:22Z", "address": { … }, "name": { … }, "status": "Active", "status_changed_at": "2019-08-24T14:15:22Z", "created_at": 0, "updated_at": 0, "identity_providers": [ … ], "identities": [ … ], "last_auth": "2019-08-24T14:15:22Z", "external_account_id": "string", "app_name": "string", "custom_app_data": {}, "groupIds": [ … ], "picture": "string", "language": "string", "custom_data": {}, "external_user_id": "string", "password_information": { … }, "custom_user_fields": {} } }