Set delivery times
PUT
/addresses/{id}/hours
const url = 'https://example.com/addresses/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/hours';const options = { method: 'PUT', headers: { cookie: 'bottle.session_token=<bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"rules":[{"weekday":1,"closed":true,"opensAt":"07:30","closesAt":"07:30","note":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/addresses/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/hours \ --header 'Content-Type: application/json' \ --cookie bottle.session_token=<bottle.session_token> \ --data '{ "rules": [ { "weekday": 1, "closed": true, "opensAt": "07:30", "closesAt": "07:30", "note": "example" } ] }'The whole set at once, replacing whatever was there. The planner holds a van that arrives early and takes a drop off the round altogether when the van would get there after the door has shut.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
UUID v7
string format: uuid
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fUUID v7
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
rules
required
Array<object>
object
weekday
integer | null
closed
boolean
opensAt
string | null
Example
07:30closesAt
string | null
Example
07:30note
string | null
Responses
Section titled “Responses”Set
Media typeapplication/json
object
items
required
Array<object>
object
id
required
UUID v7
string format: uuid
deliveryAddressId
required
UUID v7
string format: uuid
weekday
required
integer | null
closed
required
boolean
opensAt
required
string | null
closesAt
required
string | null
note
required
string | null
Example
{ "items": [ { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "deliveryAddressId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "opensAt": "07:30", "closesAt": "07:30" } ]}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not a member of that tenant
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not found
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
Media typeapplication/json
object
error
required
string
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}