Repair / resync run
PATCH {{baseUrl}}/runners/repair/{{userId}}
Rebuilds the driver’s run/stop ordering from their current in-progress orders. Source: models/runs.ts resync().
Response: 200. The handler returns an internal run-audit-log entry whose exact shape wasn’t fully traced — and it doesn’t matter, because the app itself ignores the response body. Source: store.ts calls this then immediately calls loadOrders()/loadCurrentRun() separately rather than reading anything off this response.
Examples
Section titled “Examples”curl --request PATCH 'https://api.firstdelivery.com/api/runners/repair/REPLACE_WITH_USER_ID'const response = await fetch("https://api.firstdelivery.com/api/runners/repair/REPLACE_WITH_USER_ID", { "method": "PATCH", "headers": {}})const data = await response.json()import requests
response = requests.request( "PATCH", "https://api.firstdelivery.com/api/runners/repair/REPLACE_WITH_USER_ID", headers={},)response.raise_for_status()
