Skip to content

Merge two sites

Request

Merge a site, identified in the request body, into the site identified in the URL.

Security
sessionToken
Path
clinicIdstring^[a-f0-9]{24}$required
siteIdstring, = 24 characters(Object Id)^[a-f0-9]{24}$required

String representation of a resource id

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

Responses

The merged 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 }