-
Notifications
You must be signed in to change notification settings - Fork 3
POST user fitbit auth revoke
Revokes the user-associated Fitbit access token.
Permissions:
-
Application User can revoke Fitibit authorization from any Child.
-
Child user can revoke only Fitbit authorization of himself.
-
Educator and HealthProfessional users can revoke Fitbit authorization data from any Child as long as Child is part of any of their groups.
-
Family Member can revoke Fitbit authorization data only from child that associated with it
external:sync
POST https://localhost/v1/users/{user_id}/fitbit/auth/revoke
user_id: string (A 24-byte hex ID)
curl -X POST "https://localhost/v1/users/5c86d00c2239a48ea20a0134/fitbit/auth/revoke" -H "accept: /" -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
-
204
Operation performed successfully. There is no data to be returned. -
400
Validation errors-
Access token expired
- Pattern
{ "code": 400, "message": "Access token expired.", "description": "The access token ${accessToken} has been expired and needs to be refreshed." }
- Pattern
-
Access token invalid
- Pattern
{ "code": 400, "message": "Access token invalid.", "description": "The access token ${accessToken} is invalid. Please make a new Fitbit Auth Data request and try again." }
- Pattern
-
Refresh token invalid
- Pattern
{ "code": 400, "message": "Refresh token invalid.", "description": "The refresh token ${refreshToken} is invalid. Please make a new Fitbit Auth Data request and try again." }
- Pattern
-
Data request limit for access token expired
- Pattern
{ "code": 400, "message": "Data request limit for access token ${accessToken} has expired.", "description": "Please wait a minimum of one hour and try make the operation again." }
- Pattern
-
Invalid Fitbit Client data
- Pattern
{ "code": 400, "message": "Invalid Fitbit Client data.", "description": "The Fitbit Client credentials are invalid. The operation cannot be performed." }
- Pattern
-
Internal error
- Pattern
{ "code": 400, "message": "A internal error occurs. Please, try again later." }
- Pattern
-
Internal error (unmapped)
- Pattern
{ "code": 400, "message": "{ERROR_MESSAGE}" }
- Pattern
-
403
Permission Error -
503
Fitbit service unavailable- Pattern
{ "code": 503, "message": "Could not connect with the Fitbit Server", "description": "Please try again later." }
- Pattern 2
{ "code": 503, "message": "{ERROR_MESSAGE}" }
OCARIoT API Gateway (Full documentation)
- POST institutions
- GET institutions
- GET institutions.inst_id
- PATCH institutions.inst_id
- DELETE institutions.inst_id
- POST children.physicalactivities
- GET children.physicalactivities
- GET children.physicalactivities.activity_id
- DELETE children.physicalactivities.activity_id
- POST children.weights
- GET children.weights
- GET children.weights.weight_id
- DELETE children.weights.weight_id
- POST children.bodyfats
- GET children.bodyfats
- GET children.bodyfats.bodyfat_id
- DELETE children.bodyfats.bodyfat_id
- POST educators.children.groups
- GET educators.children.groups
- GET educators.children.groups.group_id
- PATCH educators.children.groups.group_id
- DELETE educators.children.groups.group_id
- POST healthprofessionals
- GET healthprofessionals
- GET healthprofessionals.hprof_id
- PATCH healthprofessionals.hprof_id
- POST healthprofessionals.children.groups
- GET healthprofessionals.children.groups
- GET healthprofessionals.children.groups.group_id
- PATCH healthprofessionals.children.groups.group_id
- DELETE healthprofessionals.children.groups.group_id
- POST institutions.environments
- GET institutions.environments
- DELETE institutions.environments
- DELETE institutions.environments.environment_id
- Invalid ID
- Invalid JSON format
- Missing fields
- Empty string
- Invalid string
- Invalid date
- Negative number
- Invalid number
- Unregistered institution
- Unregistered children
- Invalid children attribute type
- Invalid children items
- Empty ID(s) in children attribute
- ID(s) with invalid format in children
- Attempting to update password on wrong route
- Child does not exist
- Institution does not exist