08-30-2022 19:44 - edited 08-30-2022 20:44
08-30-2022 19:44 - edited 08-30-2022 20:44
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
09-09-2022 06:06 - edited 09-09-2022 06:08
09-09-2022 06:06 - edited 09-09-2022 06:08
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/