Clock Out

Requires authentication

HTTP Request

POST connector/api/clock-out

Body Parameters

Parameter Type Status Description
user_id integer required id of the user
clock_out_time string optional Clock out time.If not given current date time will be used Fromat: Y-m-d H:i:s
clock_out_note string optional Clock out note.

Example request:

curl -X POST \
"" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}" \
-d '{"user_id":1,"clock_out_time":"2000-06-13 13:13:00","clock_out_note":"non"}'

Example response (200):

"success": true,
"msg": "Clocked Out successfully",
"type": "clock_out"


const url = new URL(
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {token}",
let body = {
"user_id": 1,
"clock_out_time": "2000-06-13 13:13:00",
"clock_out_note": "non"
fetch(url, {
method: "POST",
headers: headers,
body: body
.then(response => response.json())
.then(json => console.log(json));