Skip to main content
PATCH
/
addresses
/
{id}
Actualiza una dirección existente
curl --request PATCH \
  --url http://localhost:3000/api/v1/addresses/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "addressType": "<string>",
  "city": "<string>",
  "country": "<string>",
  "formattedAddress": "<string>",
  "latitude": 123,
  "longitude": 123,
  "name": "<string>",
  "placeId": "<string>",
  "postalCode": "<string>",
  "state": "<string>",
  "street": "<string>",
  "streetNumber": "<string>"
}
'
{
  "id": "addr_01",
  "city": "Lima",
  "country": "PE",
  "formattedAddress": "Av. Siempre Viva 123, Lima, Peru"
}

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

Body

application/json
addressType
string
city
string
country
string
formattedAddress
string
latitude
number
longitude
number
name
string
placeId
string
postalCode
string
state
string
street
string
streetNumber
string

Response

Dirección actualizada

id
string
required
addressType
string
city
string
country
string
createdAt
string
formattedAddress
string
latitude
number
longitude
number
name
string
placeId
string
postalCode
string
state
string
street
string
streetNumber
string
updatedAt
string