Skip to main content
POST
Claim a journey against a job.

Headers

Prefer
enum<string>

Preference

Available options:
params=single-object

Body

Claim a journey against a job.

travel_minutes is derived from the two timestamps rather than sent, and the worker defaults to the caller's own.

p_work_order_id
string<uuid>
required
p_arrived_at
string<timestamp with time zone>
p_client_operation_id
string<uuid>
p_departed_at
string<timestamp with time zone>
p_destination_description
string<text>
p_device_id
string<uuid>
p_distance_km
number<numeric>
p_is_billable
boolean<boolean>
p_origin_description
string<text>
p_worker_id
string<uuid>

Response

200

OK