Skip to main content
PUT
/
api
/
rest
/
addresses
/
{id}
Update One Address
curl --request PUT \
  --url https://api.upwell.com/api/rest/addresses/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "input": {
    "canonicalAddressId": "<string>",
    "city": "<string>",
    "companyId": "<string>",
    "companyName": "<string>",
    "contactId": "<string>",
    "country": "AD",
    "createdAt": "2023-11-07T05:31:56Z",
    "customerId": "<string>",
    "id": "<string>",
    "locationCodeId": "<string>",
    "name": "<string>",
    "phoneNumber": "<string>",
    "stateOrProvince": "<string>",
    "streetLine1": "<string>",
    "streetLine2": "<string>",
    "streetLine3": "<string>",
    "tenantId": "<string>",
    "type": "ADDRESS_BOOK",
    "updatedAt": "2023-11-07T05:31:56Z",
    "zipOrPostalCode": "<string>"
  }
}
'
{
  "updateAddress": {
    "city": "<string>",
    "companyName": "<string>",
    "country": "AD",
    "createdAt": "2023-11-07T05:31:56Z",
    "id": "<string>",
    "name": "<string>",
    "phoneNumber": "<string>",
    "stateOrProvince": "<string>",
    "streetLine1": "<string>",
    "streetLine2": "<string>",
    "streetLine3": "<string>",
    "type": "ADDRESS_BOOK",
    "updatedAt": "2023-11-07T05:31:56Z",
    "zipOrPostalCode": "<string>"
  }
}

Headers

authorization
string

Your API key will be used for authentication of the request. Authorization: YOUR_API_KEY

Path Parameters

id
string
required

"id" is required (enter it either in parameters or request body)

Body

application/json

Query parameters can also be provided in the request body as a JSON object

id
string
input
AddressesSetInput Ā· object

input type for updating data in table "addresses"

Response

200 - application/json

Responses for PUT /api/rest/addresses/{id}

updateAddress
Addresses Ā· object

columns and relationships of "addresses"