User
Refresh User Data
POST

/v2/user/refresh/{user_id}

x-vital-api-key*
curl --request POST \
  --url https://api.tryvital.io/v2/user/refresh/{user_id} \
  --header 'x-vital-api-key: <x-vital-api-key>'
curl --request POST \
     --url {{BASE_URL}}/v2/user/refresh/{user_id} \
     --header 'Accept: application/json' \
     --header 'x-vital-api-key: <API_KEY>'
{
  "success": true,
  "user_id": "55c39ede-16b8-438f-bbb9-62591dc2400e",
  "refreshed_sources": [
    "Withings/workouts",
    "Withings/sleep",
    "Withings/body",
    "Withings/vitals/blood_pressure",
    "Withings/activity"
  ],
  "failed_sources": ["Oura/sleep"]
}

​
Path Parameters

user_idrequired
string

User Id

​
Response

successrequired
boolean

Whether operation was successful or not

Available options:
user_idrequired
string

A unique ID representing the end user. Typically this will be a user ID from your application. Personally identifiable information, such as an email address or phone number, should not be used in the client_user_id.

refreshed_sourcesrequired
string[]

Refreshed Sources

failed_sourcesrequired
string[]

Failed Sources