/user/updateProfileByEmail
- 1 Minute to read
- Print
- DarkLight
/user/updateProfileByEmail
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Post
/user/updateProfileByEmail
Updates a user identified via email. Updates all data stored in the attributes with the information saved in the attribute list. This method only changes the information that is explicitly mentioned. Attributes that are not mentioned are not changed (there is also a replace method to change the entire profile of a user and to delete attribute values if the attribute is not mentioned for the user).
Request body example:
[
{"name" : "user.firstname", "value" : "John"},
{"name" : "user.lastname", "value" : "Smith"}
]
Request body example - erase mobile number:
[
{"name" : "user.MobileNumber", "value" : null}
]
Query parameters
email
string
Email of the user
Body parameters
Array of object
object
name
string
value
string
Responses
204
400
Email address not existing in the Engage system provided as a parameter.
Example:
{
"errorActor": "CLIENT",
"errorCode": "NO_SUCH_OBJECT",
"message": "User with email=no.email@example.com does not exist.",
"objectType": "User",
"propertyName": "email",
"propertyValue": "no.email@example.com"
}
Was this article helpful?