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.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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
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
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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
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
I’ve been trying to update the start and end times for hourly step tracking, but it keeps resetting to 3am to 2pm.
Best Answer