The following macros are not currently supported in the header:
- style
PUT /addresses/:id
Resource URL
Edit an existing address.
PUT /addresses/:id ANY /addresses/:id?_method=put
Parameters
Table of allowed parameters. Underlined parameters are mandatory.
state_id | unsigned int | Must point to a valid state. If you do not know the state id, please use the state parameter. |
---|---|---|
state | string | The name of the state or province |
country_id | unsigned int | Must point to a valid country. If you do not know the country id, please use the country parameter. |
country | string | The name of the country. |
title | string | |
street1 | string | |
street2 | string | |
city | string | |
zipcode/postcode | string | |
latitude | string | |
longitude | string | |
postal | string, 'yes' or 'no' | This indicates whether this address is a postal address |
physical | string, 'yes' or 'no' | This indicates whether this address is a physical address |
Handling the response
The updated address will be returned in the response. Please see the GET endpoint for handling the response.