Skip to main content
POST
/
v1
/
user-addresses
Create user address
curl --request POST \
  --url https://live.copilot.fabric.inc/data-customer/v1/user-addresses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '{
  "userId": "TEST_USER",
  "addressId": "6123f2adcbab9f51ccc420d6"
}'
{
  "_id": "612d1f7d786117000981e485",
  "userId": "TEST_USER1",
  "addressId": "612d1f74d702e70008573abe",
  "createdAt": "2021-08-30T18:12:13.090Z",
  "updatedAt": "2021-08-30T18:12:13.090Z"
}

Authorizations

Authorization
string
header
required

Headers

x-site-context
string
required
Example:

Body

application/json
userId
string
required
addressId
string
required

Response

_id
string
required
userId
string
required
addressId
string
required
createdAt
string
required
updatedAt
string
required