Skip to main content
PATCH
/
v1
/
addresses
/
{addressId}
Update Address
curl --request PATCH \
  --url https://live.copilot.fabric.inc/data-customer/v1/addresses/{addressId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '{
  "globalAddressId": 1234,
  "type": "M",
  "addressLine1": "street 1",
  "addressLine2": "street 2",
  "addressLine3": "street 3",
  "addressLine4": "street 4",
  "county": "San Diego",
  "city": "Boston",
  "state": "Texas",
  "zipCode": 12345,
  "postalCode": "ABC-123",
  "country": "USA",
  "latitude": 38.8951,
  "longitude": -77.0364,
  "isDefault": false,
  "additionalAttributes": {}
}'
{
  "_id": "61604a30fdfacd0009816e44",
  "globalAddressId": 1234,
  "type": "M",
  "addressLine1": "street 1",
  "addressLine2": "street 2",
  "addressLine3": "street 3",
  "addressLine4": "street 4",
  "county": "San Diego",
  "city": "Boston",
  "state": "Texas",
  "zipCode": 12345,
  "postalCode": "ABC-123",
  "country": "USA",
  "latitude": 38.8951,
  "longitude": -77.0364,
  "additionalAttributes": {},
  "isDeleted": false,
  "isDefault": false,
  "createdAt": "2021-08-30T23:20:42.822Z",
  "updatedAt": "2021-08-30T23:20:42.822Z"
}

Authorizations

Authorization
string
header
required

Headers

x-site-context
string
required
Example:

Path Parameters

addressId
string
required
Example:

Body

application/json
type
enum<string>
required
Available options:
M,
E,
P
Example:
globalAddressId
number
Example:
addressLine1
string
Example:
addressLine2
string
Example:
addressLine3
string
Example:
addressLine4
string
Example:
county
string
Example:
city
string
Example:
state
string
Example:
zipCode
number
Example:
postalCode
string
Example:
country
string
Example:
latitude
number
Example:
longitude
number
Example:
isDefault
boolean
Example:
additionalAttributes
object

Response

_id
string
required
Example:
type
enum<string>
required
Available options:
M,
E,
P
Example:
isDeleted
boolean
required
Example:
isDefault
boolean
required
Example:
createdAt
string<date-time>
required
Example:
updatedAt
string<date-time>
required
Example:
globalAddressId
number
Example:
addressLine1
string
Example:
addressLine2
string
Example:
addressLine3
string
Example:
addressLine4
string
Example:
county
string
Example:
city
string
Example:
state
string
Example:
zipCode
number
Example:
postalCode
string
Example:
country
string
Example:
latitude
number
Example:
longitude
number
Example:
additionalAttributes
object