Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

subscription: userRevokedAccess throwing 400 error code

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

Best Answer
0 Votes
1 REPLY 1

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/

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes