The purpose of the punch in/punch out API is to allow an external service to update Rodio users with their on-duty status.
To comply with state and local employment law, we've built functionality to disable outbound functionality for employees that are not actively on the clock.
-
When a user is on-duty, they will get full functionality of the app along with push notifications and active status treatemnt within the UI.
-
When a user is off-duty, the app remains functional, but outbound communication is heavily curtailed.
curl -X "POST" "https://rodioapp.com/api/punches" \
-H "Api-Key: Token 2201b...e890a" \
-H "Content-Type: application/json; charset=utf-8" \
-d $'{
"company_id": "321",
"employee_num": "123",
"first_name": "Barbara",
"last_name": "Holland",
"email": "barb@upsidedown.com",
"phone": "+13211234321"
"hired_date": "2018-09-10T11:12:13.456Z",
"end_date": null,
"birth_date": "1984-09-10T11:12:13.456Z",
"is_on_duty": "1"
}'
Rodio will provide you with a token for use with our dev environment and production environment. The token is a 64 character alpha-numeric string.