Skip to main content

Update address

PATCH 

https://api.staging.powerapi.com/api/v1/addresses/:id

Update address

Request

Path Parameters

    id int32required

Body

required

    data

    object

    id stringrequired
    type stringrequired

    Possible values: [addresses]

    attributes

    object

    address_line string
    city string
    country_code string
    name string
    notes string
    post_code string
    region_code string
    street string
    street_number string

Responses

Update address

Schema

    any

curl -L -X PATCH 'https://api.staging.powerapi.com/api/v1/addresses/:id' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": {
"id": "string",
"type": "addresses",
"attributes": {
"address_line": "string",
"city": "string",
"country_code": "string",
"name": "string",
"notes": "string",
"post_code": "string",
"region_code": "string",
"street": "string",
"street_number": "string"
}
}
}'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Parameters
— pathrequired
Body required
{
  "data": {
    "id": "string",
    "type": "addresses",
    "attributes": {
      "address_line": "string",
      "city": "string",
      "country_code": "string",
      "name": "string",
      "notes": "string",
      "post_code": "string",
      "region_code": "string",
      "street": "string",
      "street_number": "string"
    }
  }
}
ResponseClear

Click the Send API Request button above and see the response here!