Skip to content

Migrate Legacy Clinician Patients

Request

Migrate the patients of a legacy clinic account.

Security
sessionToken
Path
clinicIdstringrequired
Bodyapplication/json
userIdstring, non-emptyrequired

The user id of the legacy clinician account that needs to be migrated.

statusstring(Migration Status)

The current status of the migration

Enum:"PENDING""RUNNING""COMPLETED"
curl -i -X POST \
  'https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/clinics/{clinicId}/migrations' \
  -H 'Content-Type: application/json' \
  -H 'x-tidepool-session-token: YOUR_API_KEY_HERE' \
  -d '{
    "userId": "string",
    "status": "PENDING"
  }'

Responses

Accepted

Bodyapplication/json
userIdstring, non-emptyrequired

The user id of the legacy clinician account that needs to be migrated.

statusstring(Migration Status)

The current status of the migration

Enum:"PENDING""RUNNING""COMPLETED"
createdTimestring, (date-time)read-onlyrequired
updatedTimestring, (date-time)read-onlyrequired
attestationTimestring, (date-time)read-only
Response
{ "userId": "string", "status": "PENDING", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "attestationTime": "2019-08-24T14:15:22Z" }