Skip to main content
POST
Create a branch

Autorizaciones

Authorization
string
header
requerido

Clave API enviada como token Bearer

Cuerpo

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
requerido
Maximum string length: 255
Ejemplo:

"Sede Norte"

type
enum<string> | null

Branch type — single site or multi-site.

Opciones disponibles:
single,
multi
Ejemplo:

"single"

visible
boolean | null
Ejemplo:

true

main
boolean | null
Ejemplo:

false

order
integer | null
Rango requerido: x >= 0
Ejemplo:

0

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

"Av. 7 #12-34"

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

Geographic coordinates of a branch.

expectedConsultations
integer | null
Rango requerido: 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.

Opciones disponibles:
consultation,
reading

Respuesta

Successful Response

Response body after creating an institution branch.

id
string
requerido

Server-generated branch id.

name
string
requerido
Ejemplo:

"Sede Norte"

type
string | null
Ejemplo:

"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