Update a user identified by email

PUT {{baseUrl}}/users/email:{{user_email}}

Update a user's data. If you identify users by their email addresses, you need to update the MagicBell data, so this user can still access their notifications.

Request Body

{"user"=>{"id"=>"<string>", "external_id"=>"<string>", "email"=>"<string>", "first_name"=>"<string>", "last_name"=>"<string>", "custom_attributes"=>{"dolore14_"=>-776965, "ex_3e8"=>23122119.38966824, "tempor443"=>"adipisicing Lorem sed voluptate labore"}, "phone_numbers"=>["<string>", "<string>"]}}

HEADERS

KeyDatatypeRequiredDescription
X-MAGICBELL-API-KEYstring(Required) The (public) API key of your MagicBell project.
X-MAGICBELL-API-SECRETstring(Required) The API secret of your MagicBell project.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;user&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;external_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;email&quot;:&quot;\u003cstring\u003e&quot;,&quot;first_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;last_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;custom_attributes&quot;:{&quot;dolore14_&quot;:-776965,&quot;ex_3e8&quot;:23122119.38966824,&quot;tempor443&quot;:&quot;adipisicing Lorem sed voluptate labore&quot;},&quot;phone_numbers&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]}}