Updates the specified user by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Arguments | |
---|---|
email | The end-users email address. |
mobile | The end-users mobile number. |
Returns
Returns the user object if the update succeeded. Returns an error if update parameters are invalid (e.g. specifying an email address).
POST /users/{user.id}
POST /users/ea3a81 HTTP/1.1
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
{
"email": "[email protected]"
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"type": "user",
"id": "ea3a81",
"email": "[email protected]",
"mobile": "+61410888666",
"firstName": "Gavin",
"lastName": "Hooli",
"links": {
"self": "https://au-api.basiq.io/users/ea3a81",
"connections": "https://au-api.basiq.io/users/ea3a81/connections"
}
}