UpdateUser
POST/v1/identity/update-user¶ Description
Updates the 3P user for the given user id. Only the fields listed in fields_to_update are applied.
¶ Request Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| context | ThirdPartyRequestContext | Context of this request | Y |
| user_update_params | UserUpdateParams | Attributes of the user to update | Y |
¶ Response Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| user | User | User details of the updated user | Y |
¶ Errors
| HTTP status | Code | Message |
|---|---|---|
| 422 | ERROR_CODE_VALIDATION_FAILED | Required field missing or invalid for the requested update, e.g. first_name/phone_number set to null, email confirmation requested without an email id, or an invalid locale preference |
| 422 | ERROR_CODE_FIRST_NAME_VALIDATION_FAILED | First name can’t be empty |
| 422 | ERROR_CODE_LAST_NAME_VALIDATION_FAILED | Invalid last name |
| 422 | ERROR_CODE_EMAIL_VALIDATION_FAILED | Email id is invalid |
| 422 | ERROR_CODE_PHONE_NUMBER_VALIDATION_FAILED | Mobile number is invalid |
| 404 | ERROR_CODE_USER_NOT_FOUND | User not found |
| 409 | ERROR_CODE_CONFLICT | User record was concurrently modified. Please retry the request. |