How to update a user profile
POST https://mburger.cloud/api/profile/update
curl https://mburger.cloud/api/profile/update -X POST -H "Accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -H "X-MBurger-Token: <token>" -H "X-MBurger-Version: 3" -H "Authorization: Bearer <JWT>" -d '<data>'
Name
Type
Required
Description
name
string
Yes
The user name
surname
The user surname
data
JSON
No
JSON object/array that contains custom data
Parameters list is in the Register parameters table.
When successful, a HTTP 200 and JSON like this is returned:
{ "status_code": 0, "body": { "id": 1, "name": "Name", "surname": "Surname", "email": "name.surname@mail.com", "fb_id": null, "auth_mode": "email", "data": { "key": "value" }, "stripe_id": null, "card_brand": null, "card_last_four": null, "trial_ends_at": null, "subscriptions": [], "purchases": [], "published_sections": [], "contracts": [] } }
Last updated 4 years ago
Was this helpful?