delete
https://api.revenium.ai/profitstream/v2/api/departments/departures
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
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…