Web service that stores information about clinics, clinicians and their patients
- Remove User from Clinics
Clinics API (1.0)
https://tidepool.redocly.app/_mock/reference/clinic.v1/
https://external.integration.tidepool.org/
https://api.tidepool.org/
https://dev1.dev.tidepool.org/
https://qa1.development.tidepool.org/
https://qa2.development.tidepool.org/
Clinic ID
String representation of a Tidepool User ID. Old style IDs are 10-digit strings consisting of only hexadeximcal digits. New style IDs are 36-digit UUID v4
- Mock server
https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/clinics/{clinicId}/migrations/{userId}
- integration
https://external.integration.tidepool.org/v1/clinics/{clinicId}/migrations/{userId}
- production
https://api.tidepool.org/v1/clinics/{clinicId}/migrations/{userId}
- dev1
https://dev1.dev.tidepool.org/v1/clinics/{clinicId}/migrations/{userId}
- qa1
https://qa1.development.tidepool.org/v1/clinics/{clinicId}/migrations/{userId}
- qa2
https://qa2.development.tidepool.org/v1/clinics/{clinicId}/migrations/{userId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/clinics/2fe2488217ee43e1b2e83c2f/migrations/{userId}' \
-H 'Content-Type: application/json' \
-H 'x-tidepool-session-token: YOUR_API_KEY_HERE' \
-d '{
"status": "PENDING"
}'
{ "userId": "string", "status": "PENDING", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "attestationTime": "2019-08-24T14:15:22Z" }
Request
Internal endpoint that deletes any user associations with clinics they are a patient or a member of.
If the user is a patient of a clinic the service will delete the patient-clinic relationship.
If the user is one of many admins of any clinic the service will delete the clinician-clinic relationship.
If the user is the only admin of a clinic the service will:
- delete the clinician record, leaving the clinic without an admin
- delete all non-custodial patient relationships of the clinic
- keep all custodian relationships, allowing users to claim custodial accounts with an email
- keep all custodian accounts and data even if they can’t be claimed when there isn’t an email address associated with the account
String representation of a Tidepool User ID. Old style IDs are 10-digit strings consisting of only hexadeximcal digits. New style IDs are 36-digit UUID v4
- Mock server
https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/users/{userId}/clinics
- integration
https://external.integration.tidepool.org/v1/users/{userId}/clinics
- production
https://api.tidepool.org/v1/users/{userId}/clinics
- dev1
https://dev1.dev.tidepool.org/v1/users/{userId}/clinics
- qa1
https://qa1.development.tidepool.org/v1/users/{userId}/clinics
- qa2
https://qa2.development.tidepool.org/v1/users/{userId}/clinics
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/users/{userId}/clinics' \
-H 'x-tidepool-session-token: YOUR_API_KEY_HERE'
String representation of a Tidepool User ID. Old style IDs are 10-digit strings consisting of only hexadeximcal digits. New style IDs are 36-digit UUID v4
- Mock server
https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/users/{userId}/clinics
- integration
https://external.integration.tidepool.org/v1/users/{userId}/clinics
- production
https://api.tidepool.org/v1/users/{userId}/clinics
- dev1
https://dev1.dev.tidepool.org/v1/users/{userId}/clinics
- qa1
https://qa1.development.tidepool.org/v1/users/{userId}/clinics
- qa2
https://qa2.development.tidepool.org/v1/users/{userId}/clinics
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/users/{userId}/clinics' \
-H 'Content-Type: application/json' \
-H 'x-tidepool-session-token: YOUR_API_KEY_HERE' \
-d '{
"email": "user@example.com"
}'