Skip to main content
POST
Crear cuentas de médico en lote

Autorizaciones

Authorization
string
header
requerido

Clave API enviada como token Bearer

Cuerpo

application/json

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

accounts
CreateAccountRequest · object[]
requerido

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

Respuesta

Respuesta exitosa

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[]
requerido

One entry per submitted account, in the order received.

createdCount
integer
requerido

Number of accounts created.

Ejemplo:

1

failedCount
integer
requerido

Number of accounts that were not created.

Ejemplo:

1