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

Unable to Set Goals for activeZoneMinutes using WEB API

ANSWERED

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.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

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

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

View best answer in original post

Best Answer
6 REPLIES 6

Hi @sotky 

Would you please provide the endpoint syntax your attempted to execute?

Thanks!

Gordon

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

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

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

@Gordon-C 

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
0 Votes

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

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

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

Best Answer

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
0 Votes