Skip to content

Update the current customer's profile​

PATCH
/auth/me

Updates firstName, lastName and/or phone for the authenticated customer. Scoped strictly to the caller's own customerId (no client-supplied id). At least one field must be present.

Auth: Bearer JWT required; allowed realms: customer.

Authorizations​

bearerAuth

Jeton client obtenu par POST /auth/login (ou /auth/register), renouvelé par POST /auth/refresh.

Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"firstName": "string",
  
"lastName": "string",
  
"phone": "string"
}

Responses​

Updated customer profile

application/json
JSON
{
  
"ok": true,
  
"data": {
  
  
"customerId": "string",
  
  
"email": "user@example.com",
  
  
"firstName": "string",
  
  
"lastName": "string",
  
  
"phone": "string",
  
  
"emailVerified": true,
  
  
"createdAt": "2024-01-01T00:00:00Z"
  
}
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI

Tarifs : contactez-nous — contact@marketkit.ai