Alladdin

Work in progress

Site en construction

الموقع قيد الإنشاء

Alladdin
POST

Clock in an employee

Scope: team:time-tracking.write https://api.alladdin.com/api/v2/employees/{employeeId}/clock-in

Starts a new time tracking session for the employee. Fails if a session is already running.

Parameters

Path parameters

employeeId string required

Employee ID

Request body

object latitude number<float> | null

Latitude coordinate

longitude number<float> | null

Longitude coordinate

Request

python
import requests

url = "https://api.alladdin.com/api/v2/employees/{employeeId}/clock-in"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "latitude": 0,
    "longitude": 0
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "507f1f77bcf86cd799439011"
}

Success responses

201 Clock-in successful application/json object id string

Error responses

400 Bad request application/json 401 Invalid or missing API key application/json 403 Insufficient permissions application/json 422 Validation error application/json 429 Rate limit exceeded application/json

Next →Clock out an employee →