Pause an employee time session
Scope: team:time-tracking.write https://api.alladdin.com/api/v2/employees/{employeeId}/pause
Pauses the current running time tracking session for the employee.
Parameters
Path parameters
employeeId string required
Employee ID
Request body
object latitude number<float> | null
Latitude coordinate
longitude number<float> | null
Longitude coordinate
Request
import requests
url = "https://api.alladdin.com/api/v2/employees/{employeeId}/pause"
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
{
"id": "string"
}Success responses
200 Pause started 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 404 No running time entry found application/json 422 Validation error application/json 429 Rate limit exceeded application/json
