API Reference
Log In
API Reference

Undo marking a person as left the company

Clears the mark from every address of the person, or from the email alone when no person holds it, and gives back the department the first mark closed, unless that department was deleted since. Department admin roles the mark ended are not given back. An address mapped to no person and not set by hand is removed, as it resolves like an address with no mapping. Refused with 409 when they are not marked as left, when another change touched them at the same time (retry the request), or, with errors[0].code CANNOT_RESTORE_DEPARTMENT, when their department cannot be given back (send keepWithoutDepartment=true to undo anyway, leaving them with no department).

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

ID of the team that owns this data.

string
required

Email of the person marked as left

boolean
Defaults to false

When true, undo even if their department cannot be given back, leaving them with no department

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*