Address
Updates an address
Updates an address object
PATCH
/v1/addresses/{id}
Bearer*
curl --request PATCH \
--url https://api.oneslipstream.com/v1/addresses/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"city": "London",
"country": "GB",
"line1": "New Bond Street",
"postcode": "SE1 7TP"
}'
{
"id": "addr_bPKKB3sYsukFanSsaBcMCMR2",
"buildingName": "null",
"buildingNumber": "7",
"city": "London",
"country": "GB",
"line1": "New Bond Street",
"line2": "null",
"postcode": "SE1 7TP",
"state": "Greater London",
"subBuildingName": "null",
"subBuildingNumber": "null",
"createdAt": "2022-01-01T00:00:00.000Z"
}
Authorizations
Authorizationheaderrequired
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
idrequired
string
The id of the address
Body
application/json
buildingName
string | null
The building name
buildingNumber
string | null
The building number
cityrequired
string | null
The city
countryrequired
string | null
The country
line1required
string
Address line 1 (e.g., street)
line2
string | null
Address line 2 (e.g., apartment, suite, unit, or building).
postcoderequired
string | null
The postal code
state
string | null
The state
subBuildingName
string | null
The sub building name
subBuildingNumber
string | null
The sub building number
Response
200 - application/json
idrequired
string
The unique identifier for the address
buildingName
string | null
The building name
buildingNumber
string | null
The building number
cityrequired
string | null
The city
countryrequired
string | null
The country
line1required
string
Address line 1 (e.g., street)
line2
string | null
Address line 2 (e.g., apartment, suite, unit, or building).
postcoderequired
string | null
The postal code
state
string | null
The state
subBuildingName
string | null
The sub building name
subBuildingNumber
string | null
The sub building number
createdAt
string
The date and time the address was created
curl --request PATCH \
--url https://api.oneslipstream.com/v1/addresses/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"city": "London",
"country": "GB",
"line1": "New Bond Street",
"postcode": "SE1 7TP"
}'
{
"id": "addr_bPKKB3sYsukFanSsaBcMCMR2",
"buildingName": "null",
"buildingNumber": "7",
"city": "London",
"country": "GB",
"line1": "New Bond Street",
"line2": "null",
"postcode": "SE1 7TP",
"state": "Greater London",
"subBuildingName": "null",
"subBuildingNumber": "null",
"createdAt": "2022-01-01T00:00:00.000Z"
}