03-30-2022 01:13
03-30-2022 01:13
What is the correct process to change the Steps goal from the companion.
This code runs successfully but the goal doesn't change in the Fitbit App, even after syncing.
let url = 'https://api.fitbit.com/1/user/-/activities/goals/daily.json?type=steps&value=20000';
fetch( url,
{
method: 'POST',
headers: new Headers({
'Authorization': 'Bearer ' ,
}),
mode: 'cors',
}
).then({console.log('Success');});
.then(function(data){ console.log('Request succeeded with response', data);})
.catch(function(error){ console.log(error.message);});
}
Author | ch, passion for improvement.
04-12-2022 12:00
04-12-2022 12:00
Hi @Guy_,
After doing a bit of research, I found out that a month ago, we identified a caching issue with the Create Activity Goal endpoint, where updating the goal via the endpoint will not reflect in the app after syncing. We're currently looking into this and I'll let you know you know when we have an update.