Skip to content

Create a Site

Request

Create a Site

Security
sessionToken
Path
clinicIdstring^[a-f0-9]{24}$required
Bodyapplication/json
namestring, [ 1 .. 200 ] characters(siteName.v1)^[[:graph:]\p{L}\p{N}][[:graph:]\p{L}\p{N} ]*$required

The site's name.

curl -i -X POST \
  'https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/clinics/{clinicId}/sites' \
  -H 'Content-Type: application/json' \
  -H 'x-tidepool-session-token: YOUR_API_KEY_HERE' \
  -d '{
    "name": "string"
  }'

Responses

The newly-created clinic site

Bodyapplication/json
idstring, = 24 characters(Object Id)^[a-f0-9]{24}$read-onlyrequired

String representation of a resource id

namestring, [ 1 .. 200 ] characters(siteName.v1)^[[:graph:]\p{L}\p{N}][[:graph:]\p{L}\p{N} ]*$required

The site's name.

numPatientsintegerread-only
Response
{ "id": "string", "name": "string", "numPatients": 0 }