06-16-2021 13:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-16-2021 13:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi, I'm getting the following error when I try to update an alarm using the Web API:
{"errors":[{"errorType":"request","fieldName":"500","message":"An error occurred with the Fitbit Web API while processing the request. Error id: 4af775c82aaa600b7eca002b2f71245c:172.22.10.192:41571"}],"success":false}
The request is:
POST https://api.fitbit.com/1/user/-/devices/tracker/{device}/alarms/{alarmId}.json
Headers:
Authorization:Bearer {token}
Content-Type:application/x-www-form-urlencoded
Body:
time=08:20+02:00&enabled=true&recurring=true&weekDays=MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY&snoozeLength=5&snoozeCount=3
Am I doing something wrong?
Answered! Go to the Best Answer.
Accepted Solutions
06-17-2021 04:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-17-2021 04:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The problem was that my body wasn't url encoded. Now it works.

06-17-2021 04:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-17-2021 04:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The problem was that my body wasn't url encoded. Now it works.

05-05-2023 07:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-05-2023 07:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
PLEASE!!! - I'm looking exactly to do this and been banging my head against a wall and my script (python) is getting BER

