Skip to main content
POST
Create a branch

Autorizações

Authorization
string
header
obrigatório

Chave de API enviada como token Bearer

Corpo

application/json

Request body for creating an institution branch.

Mirrors datalayer's branch input. Only name is required; omitted fields fall back to datalayer defaults (visible=true, type=single, main=false, order=0, IPS=[]). The branch id is generated server-side.

name
string
obrigatório
Maximum string length: 255
Exemplo:

"Sede Norte"

type
enum<string> | null

Branch type — single site or multi-site.

Opções disponíveis:
single,
multi
Exemplo:

"single"

visible
boolean | null
Exemplo:

true

main
boolean | null
Exemplo:

false

order
integer | null
Intervalo obrigatório: x >= 0
Exemplo:

0

description
string | null
Maximum string length: 1000
address
string | null
Maximum string length: 500
Exemplo:

"Av. 7 #12-34"

IPS
string[] | null
coordinates
Coordinates · object | null

Geographic coordinates of a branch.

expectedConsultations
integer | null
Intervalo obrigatório: x >= 0
branchManagerAccountIds
string[] | null
cdssConfigurationId
string | null
auditConfigurationId
string | null
sessionStartLabel
enum<string> | null

Wording the scribe clients use on the start-session button.

Opções disponíveis:
consultation,
reading

Resposta

Successful Response

Response body after creating an institution branch.

id
string
obrigatório

Server-generated branch id.

name
string
obrigatório
Exemplo:

"Sede Norte"

type
string | null
Exemplo:

"single"

visible
boolean | null
main
boolean | null
order
integer | null
description
string | null
address
string | null
IPS
string[] | null
coordinates
Coordinates · object | null

Geographic coordinates of a branch.

expectedConsultations
integer | null
branchManagerAccountIds
string[] | null
cdssConfigurationId
string | null
auditConfigurationId
string | null
sessionStartLabel
string | null