Get planning settings
GET
/planning
const url = 'https://example.com/planning';const options = { method: 'GET', headers: {cookie: 'bottle.session_token=<bottle.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/planning \ --cookie bottle.session_token=<bottle.session_token>The working day for any driver without hours of their own, how long loading takes, and what a stop costs on top of the drive to it. These turn a list of stops into a length of day, which is how a round is judged to fit a driver’s shift.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The settings
Media typeapplication/json
object
dayStart
required
string
dayEnd
required
string
breakMinutes
required
integer
loadMinutes
required
integer
stopMinutes
required
number
itemMinutes
required
number
trafficPercent
required
integer
peakPercent
required
integer
peakMorningFrom
required
string | null
peakMorningTo
required
string | null
peakEveningFrom
required
string | null
peakEveningTo
required
string | null
updatedAt
required
string format: date-time
Example
{ "dayStart": "07:30", "dayEnd": "07:30", "peakMorningFrom": "07:30", "peakMorningTo": "07:30", "peakEveningFrom": "07:30", "peakEveningTo": "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, or without the permission this needs
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" } ]}