Skip to main content
PATCH
/
users
/
me
/
address
Update user address
curl --request PATCH \
  --url https://{host}/users/me/address \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-user-id: <x-user-id>' \
  --data '
{
  "address": {
    "line1": "15 Ermou Street",
    "line2": "Apartment 4B",
    "city": "Athens",
    "postalCode": 10563,
    "countryCode": "GR"
  }
}
'

Authorizations

Authorization
string
header
required

Auth0-issued access token that includes the scopes listed for the endpoint.

Headers

x-user-id
string
required

MongoDB ObjectId of the authenticated user

Pattern: ^[a-f0-9]{24}$

Body

application/json
address
object
required

Physical address. Overwrites any existing address.

Response

Address updated successfully