Pular para o conteúdo principal
POST
Approve a user-delete request (checker) and execute the deletion

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

Authorization
string

Bearer JWT. Must be a normal-user principal: an application token is refused with 403, and any other token type is refused with 401 at the gate. The CHECKER identity is derived from THIS token; it MUST differ from the requester (four-eyes).

Parâmetros de caminho

userId
string
obrigatório

The target user whose pending delete request is being decided.

Exemplo:

"42"

Corpo

application/json

Optional decision note.

note
string

Optional decision reason (≤500 chars).

Resposta

OK

at
string<date-time>
obrigatório

When the latest event was recorded (RFC 3339).

operator
object
obrigatório

Server-extracted operator who recorded the latest event (the maker on 'requested'; the checker otherwise).

state
enum<string>
obrigatório

Latest workflow action: 'requested' (pending a checker), 'approved' (deleted), 'rejected', or 'failed' (execution failed, retryable).

Opções disponíveis:
requested,
approved,
rejected,
failed
Exemplo:

"requested"

userId
string
obrigatório

The target user the workflow is about.

Exemplo:

"42"

note
string

Optional operator-authored reason.

Exemplo:

"offboarding after a role change"