Skip to content

Update my profile

PATCH
/api/website/me
curl --request PATCH \
--url https://api.petanqueai.com/api/website/me \
--header 'Content-Type: application/json' \
--header 'x-customer-session: <x-customer-session>' \
--header 'x-storefront-token: <x-storefront-token>' \
--data '{ "name": "example", "phone": "example", "smsConsent": true }'

Changes name, phone or SMS consent. Fields you leave out are not touched. The email address cannot be changed.

object
name
string
>= 1 characters <= 200 characters
phone
string
<= 50 characters
smsConsent
boolean

Example generated

{
"name": "example",
"phone": "example",
"smsConsent": true
}