Update a user identified by external ID

PUT {{baseUrl}}/users/external_id:{{external_id}}

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"=>{"sed021"=>29167472.758029073}, "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;sed021&quot;:29167472.758029073},&quot;phone_numbers&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]}}