Updates the user's metadata collection corresponding to collectionName. Each metadata collection is an unbounded JSON object with client-defined fields.
Security
sessionToken
- Mock serverhttps://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/{userId}/{collectionName}
- integrationhttps://external.integration.tidepool.org/metadata/{userId}/{collectionName}
- productionhttps://api.tidepool.org/metadata/{userId}/{collectionName}
- dev1https://dev1.dev.tidepool.org/metadata/{userId}/{collectionName}
- qa1https://qa1.development.tidepool.org/metadata/{userId}/{collectionName}
- qa2https://qa2.development.tidepool.org/metadata/{userId}/{collectionName}
- Profile
- User Preferences
- User Settings
- Private Collection
curl -i -X POST \
'https://tidepool.redocly.app/_mock/reference/metadata.v1/metadata/{userId}/profile' \
-H 'Content-Type: application/json' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d '{
"fullName": "James Jellyfish",
"patient": {
"diagnosisType": "type1",
"diagnosisDate": "2013-05-09",
"birthday": "2012-08-30",
"biologicalSex": "male",
"targetDevices": [
"bayercontournext"
],
"targetTimezone": "US/Eastern",
"about": "Jellyman is awesome!"
}
}'Response
- Profile
- User Preferences
- User Settings
- Private Collection
{ "fullName": "James Jellyfish", "patient": { "diagnosisType": "type1", "diagnosisDate": "2013-05-09", "birthday": "2012-08-30", "biologicalSex": "male", "targetDevices": [ … ], "targetTimezone": "US/Eastern", "about": "Jellyman is awesome!" } }