Skip to main content
POST
Criar contas de médico em lote

Autorizações

Authorization
string
header
obrigatório

Chave de API enviada como token Bearer

Corpo

application/json

Request body for creating several institutional doctor accounts in one call.

accounts
CreateAccountRequest · object[]
obrigatório

The doctor accounts to create (1–10). Each item takes the same fields as the single-create endpoint. The whole request is rejected before any account is created when it repeats an email or an internalCode.

Required array length: 1 - 10 elements

Resposta

Resposta bem-sucedida

Per-item outcome of a batch account-creation request.

The request never fails as a whole once creation starts: each account is created independently, so an entry can succeed while another fails. The results keep the request order.

results
BatchAccountResult · object[]
obrigatório

One entry per submitted account, in the order received.

createdCount
integer
obrigatório

Number of accounts created.

Exemplo:

1

failedCount
integer
obrigatório

Number of accounts that were not created.

Exemplo:

1