Team Scope Requirements
Set Team Scope Requirements
Team Custom Credentials
Team Data Pull Preferences
Team Scope Requirements
Team Scope Requirements
Set Team Scope Requirements
POST
/
v1
/
org
/
{org_id}
/
team
/
{team_id}
/
scope_requirements
curl --request POST \
--url https://api.tryvital.io/management/v1/org/{org_id}/team/{team_id}/scope_requirements \
--header 'Content-Type: application/json' \
--header 'X-Vital-Org-Key: <api-key>' \
--data '{
"fitbit": null,
"oura": {
"user_must_grant": ["daily"],
"user_may_grant": ["workout"]
}
}'
"<any>"
Org Management API is available for the Scale plan.
The base URL of this endpoint is https://api.tryvital.io/management/
.
The endpoint accepts only Org Key (X-Vital-Org-Key
). Team API Key is not applicable.
curl --request POST \
--url https://api.tryvital.io/management/v1/org/{org_id}/team/{team_id}/scope_requirements \
--header 'Content-Type: application/json' \
--header 'X-Vital-Org-Key: <api-key>' \
--data '{
"fitbit": null,
"oura": {
"user_must_grant": ["daily"],
"user_may_grant": ["workout"]
}
}'
Authorizations
Body
application/json
Available options:
heartrate
, oxygen_saturation
, cardio_fitness
, respiratory_rate
, activity
, location
, nutrition
, profile
, settings
, sleep
, social
, weight
, temperature
Available options:
heartrate
, oxygen_saturation
, cardio_fitness
, respiratory_rate
, activity
, location
, nutrition
, profile
, settings
, sleep
, social
, weight
, temperature
Available options:
openid
, email
, https://www.googleapis.com/auth/fitness.activity.read
, https://www.googleapis.com/auth/fitness.body.read
, https://www.googleapis.com/auth/fitness.sleep.read
, https://www.googleapis.com/auth/fitness.blood_glucose.read
, https://www.googleapis.com/auth/fitness.blood_pressure.read
, https://www.googleapis.com/auth/fitness.heart_rate.read
, https://www.googleapis.com/auth/fitness.nutrition.read
, https://www.googleapis.com/auth/fitness.location.read
Available options:
openid
, email
, https://www.googleapis.com/auth/fitness.activity.read
, https://www.googleapis.com/auth/fitness.body.read
, https://www.googleapis.com/auth/fitness.sleep.read
, https://www.googleapis.com/auth/fitness.blood_glucose.read
, https://www.googleapis.com/auth/fitness.blood_pressure.read
, https://www.googleapis.com/auth/fitness.heart_rate.read
, https://www.googleapis.com/auth/fitness.nutrition.read
, https://www.googleapis.com/auth/fitness.location.read
Available options:
read:recovery
, read:cycles
, read:workout
, read:sleep
, read:profile
, read:body_measurement
, offline
Available options:
read:recovery
, read:cycles
, read:workout
, read:sleep
, read:profile
, read:body_measurement
, offline
Response
200
application/json
Successful Response
The response is of type any
.
curl --request POST \
--url https://api.tryvital.io/management/v1/org/{org_id}/team/{team_id}/scope_requirements \
--header 'Content-Type: application/json' \
--header 'X-Vital-Org-Key: <api-key>' \
--data '{
"fitbit": null,
"oura": {
"user_must_grant": ["daily"],
"user_may_grant": ["workout"]
}
}'
"<any>"