API referenceAddress Book
Update an address book entry
This endpoint changes the address book entry represented by addressId. A field left out keeps its saved value and null clears it. A new address replaces the saved one whole. Accessorials replace the stop's saved list, but services saved on the dashboard that this API has no name for are kept.
/ address-book/{addressId}https:/ / sandbox.api.mothership.com/ beta$MOTHERSHIP_API_TOKENHover a key to see what it means. Click it to jump to the field.
Send only the fields to change. A field left out keeps its saved value, and null clears it. address replaces the whole saved address, so a subStreet left out of it is cleared. accessorials replaces the stop's saved list; send [] to clear it. Services saved on the dashboard that this API has no name for stay saved either way.
An entry's accessorials can be sent back as they are, except a service saved on the dashboard that this API has no name for, which comes back as stored, such as white-glove-delivery. Leave those out; they stay saved. notifyBeforeArrival is delivery only and needs the feature enabled for your user, as on Create a quote, unless the stop already has it saved. Without the feature, adding it returns 400 INVALID_REQUEST.
Request body
application/json · requiredClose time of this location, in 4-digit 24-hour time format (HHmm) of this location's timezone. Must be later than openTime.
For example: 1700 to represent 5:00pm in local time
On update, leave it out to keep the saved value or send null to clear it.
4 characterspattern ^([01]\d|2[0-3])[0-5]\d$nullable