Skip to main content
POST
Create a branch

Authorizations

Authorization
string
header
required

API key passed as a Bearer token

Body

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
required
Maximum string length: 255
Example:

"Sede Norte"

type
enum<string> | null

Branch type — single site or multi-site.

Available options:
single,
multi
Example:

"single"

visible
boolean | null
Example:

true

main
boolean | null
Example:

false

order
integer | null
Required range: x >= 0
Example:

0

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

"Av. 7 #12-34"

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

Geographic coordinates of a branch.

expectedConsultations
integer | null
Required range: 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.

Available options:
consultation,
reading

Response

Successful Response

Response body after creating an institution branch.

id
string
required

Server-generated branch id.

name
string
required
Example:

"Sede Norte"

type
string | null
Example:

"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