Skip to content

Trigger initial migration

Request

Trigger the initial migration

Security
sessionToken
Path
clinicIdstringrequired
Bodyapplication/json
attestationSubmittedboolean
curl -i -X POST \
  'https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/clinics/{clinicId}/migrate' \
  -H 'Content-Type: application/json' \
  -H 'x-tidepool-session-token: YOUR_API_KEY_HERE' \
  -d '{
    "attestationSubmitted": true
  }'

Responses

OK

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" }