Updates a location of a client. Only the fields sent are changed.
An omitted field keeps its value; null clears a clearable one. The default location and the default billing location move only by marking another location: sending IsDefault or IsDefaultBilling false on the location that holds it answers 409. A contact taken off BillingContactIds is also taken off the client’s contracts.
Authorizations
Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.
Path Parameters
Client the location belongs to.
Location to update.
Body
Location fields to change.
Request body for changing a client location. Every field is optional - send only what should change. An omitted field keeps the value the location already holds.
Location display name. Maximum 150 characters, cannot be blank. Null leaves it unchanged.
"Branch Office"
Phone ISO 3166-1 alpha-2 region code (e.g. NZ, US). Needed whenever the location has a phone number. Maximum 25 characters. Send null to clear it.
"NZ"
Phone number, as dialled within its country, e.g. 09 123 4567 for NZ; an international +64 9 123 4567 is accepted too. A number sent without its leading 0 is stored with it. Maximum 15 characters. Send null to clear it.
"09 123 4567"
Phone extension. Maximum 5 characters. Send null to clear it.
Address line 1. Maximum 150 characters. Send null to clear it.
"12 Queen Street"
Address line 2. Maximum 150 characters. Send null to clear it.
City. Maximum 100 characters. Send null to clear it.
"Auckland"
State / province. Maximum 100 characters. Send null to clear it.
Country. Maximum 100 characters. Send null to clear it.
"New Zealand"
Postal / ZIP code. Maximum 10 characters. Send null to clear it.
"1010"
IANA time zone identifier for the location (e.g. Pacific/Auckland). Maximum 200 characters. Send null to clear it.
"Pacific/Auckland"
The location's primary contact: an active contact of this client (from GET /v1/contacts?clientIds=). Send null to clear it.
The location's billing contacts, replacing the current set: active contacts of this client. [] clears them; omit to leave them unchanged. At most 100; a repeated id is stored once. A contact taken off the list is also taken off the client's contracts.
True makes this the client's default location, and the current default stops being it. The default cannot be cleared here - mark another location as the default instead; false on the default location is refused, and on any other location changes nothing.
True makes this the client's default billing location, and the current one stops being it. It cannot be cleared here - make another location the default billing location instead; false on the default billing location is refused, and on any other location changes nothing.
Response
OK
100, 101, 102, 103, 200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 421, 422, 423, 424, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511 A client location. Timestamps are UTC.
null