Create clock event
documentedCreate a clock-in or clock-out event.
POST /clockClockin/Clockoutno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.servicetrade.com/api/clock" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Cookie: PHPSESSID={{SERVICETRADE_SESSION_TOKEN}}" \
-d '{"eventTime": {{$eventTime}}, "lat": {{$lat}}, "lon": {{$lon}}, "activity": "{{$activity}}", "source": "{{$source}}", "userId": {{$userId}}, "appointmentId": {{$appointmentId}}, "started": {{$started}}, "completed": {{$completed}} }'