09-13-2023 21:28
09-13-2023 21:28
Hello,
Has it become impossible to set goals for activeZoneMinutes using the WEB API?
I have been using the Create Activity Goal API to set goals for activeZoneMinutes.
However, recently I have been receiving the following error: "400 Client Error: The value 'activeZoneMinutes' is not a valid value for field Type."
I have been making API requests based on the information provided in the following reference: Create Activity Goals - Fitbit Developer API.
Answered! Go to the Best Answer.
09-25-2023 07:23
09-25-2023 07:23
Hi @sotky
I received an update from engineering this morning that the problem is fixed. I have tested it and it works for me. Please the endpoint again.
Best,
Gordon
09-19-2023 13:23
09-19-2023 13:23
Hi @sotky
Would you please provide the endpoint syntax your attempted to execute?
Thanks!
Gordon
09-20-2023 13:57
09-20-2023 13:57
Hi @sotky
I wanted to let you know that I think I have reproduced your problem where you cannot create an activeZoneMinutes goal. I have submitted a ticket to our engineering team to investigate. I'll update this post once I have some more information on the problem.
Gordon
09-22-2023 00:00 - edited 09-22-2023 00:01
09-22-2023 00:00 - edited 09-22-2023 00:01
Thank you for bringing this issue to our attention.We appreciate your efforts in reproducing the problem related to the inability to create an activeZoneMinutes goal. It's great to hear that you have already submitted a ticket to our engineering team for further investigation. Please keep us updated on any progress or information you receive regarding this issue. We understand the importance of resolving it promptly, and we look forward to hearing back from you soon.
Here is the execution code for your reference.(Python)
import requests
headers = {
'accept': 'application/json',
'authorization': 'Bearer '+access_token
}
params = {
'type': 'activeZoneMinutes',
'value': 200,
}
response = requests.post(f'https://api.fitbit.com/1/user/{fitbit_user_id}/activities/goals/weekly.json', params=params, headers=headers)
Best regards
09-25-2023 07:23
09-25-2023 07:23
Hi @sotky
I received an update from engineering this morning that the problem is fixed. I have tested it and it works for me. Please the endpoint again.
Best,
Gordon
09-27-2023 20:46
09-27-2023 20:46
Hi @Gordon-C
Thank you for your update. I'm glad to hear that the issue has been resolved on your end. I have also tested the endpoint on our side and can confirm that the problem has been successfully fixed here as well.
Best Regards
11-05-2023 17:31
11-05-2023 17:31
I’ve been trying to update the start and end times for hourly step tracking, but it keeps resetting to 3am to 2pm.