Skip to main content

errand_update_address

Edits an address in the address book. Pass only the fields you want to change — anything omitted keeps its current value. Commonly used to change the door number, the label, or the contact name/phone.
Changing the position requires passing address, lat, and lng together (search with errand_search_addresses first to get the new place’s coordinates). Changing only the text without the coordinates would send the rider to the old location, so it’s rejected.
An empty string is treated as “not passed,” except for tag — an empty string clears the tag.

Parameters

Returns

The updated address object; id stays unchanged.
Passing no fields to change returns ADDRESS_UPDATE_EMPTY; changing an address to exactly match another one of the user’s addresses returns ADDRESS_DUPLICATE.

Error Codes

See Error Handling for the full list.

Call Example