v1

latestOpenAPI 3.0.02026-07-24161168406.5 KB
Position
Position

Delete positions by employee identifier

Deletes all positions associated with an employee identified by email or taxpayerRegistry (CPF).

Business Rules:

• Position cannot be deleted if it has direct descendants

• Unlike the regular delete, this endpoint does NOT validate if position has an employee

delete/os/v1/positions/by-employee

Request body

identifierstring required

Employee email or taxpayerRegistry (CPF)

Example request

{
  "identifier": "employee@example.com"
}

Response

Positions successfully deleted