Update user
This endpoint allows you update your user's identifier when they make a profile update to their identifier on your platform.
Endpoint
PUT
https://api.thepeer.co/users/{{USER_REFERENCE}}
URL Parameter | Description |
---|---|
{{USER_REFERENCE}} | the reference returned when the user was indexed |
Sample body
{ "identifier": "craig"}
Sample response
{ "indexed_user": { "name": "Criag Federighi", "identifier": "craig", "identifier_type": "username", "email": "craig@apple.com", "reference": "hair-force-one" }}
Field requirements
Field name | Data type | Required |
---|---|---|
identifier | string | true |
‼️
You cannot update an identifier from username
to email
and vice versa