01-17-2022 01:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-17-2022 01:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I have developed a Webhook using the subscriptions API to get information about users' activities. It works fine, but I would like to know what is the action made for the activity (create, update or delete) so that I can modify it properly. The body of the request made by fitbit does not provide that information , or I can't find it.
Thank you in advance
Answered! Go to the Best Answer.

- Labels:
-
Subscriptions API
Accepted Solutions
01-21-2022 12:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



01-21-2022 12:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi @iBereciartua,
A webhook notification indicates when a resource was added, modified, or deleted. The notifications will not tell you what exactly occurred, it will just tell which resource has new data (whether it was added, modified, or deleted, but will not specify which of the three).
- Added = Whenever new data is synced to the Fitbit account. Examples include: an activity is recorded, sleep log is recorded, or a food log is recorded.
- Modified = Whenever a Fitbit user modifies an existing entry. For example, a user may change the time frame of an activity in which it actually occurred.
- Deleted = Whenever a Fitbit user deletes an existing entry, such as a food log or an activity that was falsely recorded.
Per the documentation, its up to your application to determine what resource was changed and/or how it was affected by comparing the new data from the old data. For more information, see Responding To A Notification.
I hope this helps. Let me know if you have any additional questions.
01-21-2022 12:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



01-21-2022 12:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi @iBereciartua,
A webhook notification indicates when a resource was added, modified, or deleted. The notifications will not tell you what exactly occurred, it will just tell which resource has new data (whether it was added, modified, or deleted, but will not specify which of the three).
- Added = Whenever new data is synced to the Fitbit account. Examples include: an activity is recorded, sleep log is recorded, or a food log is recorded.
- Modified = Whenever a Fitbit user modifies an existing entry. For example, a user may change the time frame of an activity in which it actually occurred.
- Deleted = Whenever a Fitbit user deletes an existing entry, such as a food log or an activity that was falsely recorded.
Per the documentation, its up to your application to determine what resource was changed and/or how it was affected by comparing the new data from the old data. For more information, see Responding To A Notification.
I hope this helps. Let me know if you have any additional questions.
01-24-2022 05:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-24-2022 05:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thank you for your answer. Sadly, I can't track the data to check the method in my platform. Maybe it could be good if that information is included in the notification.

