Retire an employee

Retires the employee with the given id, like the app's retire dialog: date (today by default) is the first day they are no longer employed. Their current contract ends the day before, so no hours or vacation accrue from that date on. If the date is today or in the past, the status is set to retired right away and the login is revoked: sessions are deleted, a pending invite is withdrawn and the account is deleted if no other employee uses it. A future date only schedules the status change for that day, like the app's dialog: the login is not revoked, neither now nor when the status flips. The employee is not deleted: they stay retrievable and listed, and their contracts and history are kept. An active license seat is not cancelled. The company owner cannot be retired (403). The request is rejected with 409 if the employee is already retired, has a contract starting on or after the date, or still has time entries or roster entries dated on or after it unless deleteDanglingEntries is set, in which case those entries are discarded. The request takes no body. This is a partner-level operation: the API client behind the auth token must hold the employee:retire partner permission.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

The id of the employee to be retired.

Query Params
date

The first day the employee is no longer employed, as YYYY-MM-DD. Defaults to today. A date before the commit date is rejected with 400. A future date schedules the retirement for that day.

boolean
Defaults to false

Set to true to retire the employee even if they still have time entries or roster entries dated on or after date; those entries are discarded. Defaults to false.

Responses
204

The employee was successfully retired.

400

date lies before the commit date.

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!