08-30-2022 19:44 - edited 08-30-2022 20:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-30-2022 19:44 - edited 08-30-2022 20:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I am calling the following create subscriptions api which is returning 400 HTTP error code for user
1/user/-/userRevokedAccess/apiSubscriptions/5376c286-28cb-11ed-9541-fa8ad0f31f12:userRevokedAccess.json
Response:
{'collectionType': 'userRevokedAccess', 'ownerId': '8422MF', 'ownerType': 'user', 'subscriberId': 'cicd', 'subscriptionId': '50470a12-28cb-11ed-a1aa-623d81a2e23a:userRevokedAccess'}
When i call the GET apiSubscriptions I only see the
1/user/-/apiSubscriptions.json
In the response only seeing the following scopes 'body', 'sleep', 'activities'
I am at a loss as to what I might be doing wrong. I don't get any errors when create a subscription for the above scopes

- Labels:
-
Subscriptions API
09-09-2022 06:06 - edited 09-09-2022 06:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



09-09-2022 06:06 - edited 09-09-2022 06:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @corrycordes
It looks like you are missing the collectionType value in your syntax. Try GET /1/user/-/userRevokedAccess/apiSubscriptions.json.
See https://dev.fitbit.com/build/reference/web-api/subscription/get-subscription-list/
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

