Sign in

End (encerrar mantendo histórico)

POST https://{organization}.myguper.com/api/register/team/member/{id}/end

Encerra o vínculo (saída/demissão) preenchendo endedAt. Diferente do DELETE, o registro é mantido para auditoria/histórico.

Body é opcional — se omitir endedAt, usa hoje. endedAt não pode ser anterior a startedAt.

Try-it values populated from environment ACME (Demo)


Authentication

Token

Send your user token in the x-guper-authorization header.

Headers

Name Type Description
x-guper-authorization * string User token issued by Guper.
Content-Type * string Always `application/json` for endpoints that accept a JSON body.

Path parameters

Name Type Description
id * integer ID do `team_member` ativo (`endedAt IS NULL`).

Request body

Content-Type: application/json

{
    "endedAt": "2026-04-24"                                     // optional
}

Responses

{
    "id": 7,
    "personId": 99,
    "positionId": 12,
    "reportsTo": 5,
    "startedAt": "2026-04-24",
    "endedAt": "2026-04-24",
    "data": null
}
Copied to clipboard