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

Response code change for Create Activity Log / Log Activity

I have a daily script running for my application to synchronize my daily steps. It has been running multiple months and worked every day until a month ago.

When I created this script I checked the documentation here:
https://dev.fitbit.com/build/reference/web-api/activity/create-activity-log/

According to that link and the link below a successful POST to that and any other URL should return a 201 status code.
https://dev.fitbit.com/build/reference/web-api/troubleshooting-guide/error-messages/

But according to this documentation the response code should be 200:
https://dev.fitbit.com/build/reference/web-api/explore/#/Activity/addActivitiesLog

My code checks success based on response code 201 and the last day this worked was the 2nd September 2024.

When the script ran again the 3rd September 2024 my application reported a fail but the activity was uploaded to fitbit. After some more logging the response code had now been changed to 200 and my script did not like that.

Is there a changelog showing that this change was made?
Has anyone else had the same problem?

Best Answer
0 Votes
1 REPLY 1

Hi @XeroXer 

Thank you for reporting this problem.  The response code should be 201.   Let me report this to engineering to get it fixed.

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