Reporting API v1 - using updatedDate filters

Appxite

Introduction

This article explains how to use updatedDate filters in the Reporting API v1 to retrieve only recently modified data. Understanding these filters will help you optimize API performance and implement efficient incremental data loading strategies.

How updatedDate filters work

Several Reporting API endpoints allow you to restrict the data received based on when it was last updated. This is useful for scenarios where only recent changes are needed, such as incremental data loads. In most cases, using these filters will also improve API performance by reducing the volume of data transferred.

Using updatedDateFrom and updatedDateTill parameters

To receive a filtered response, use the updatedDateFrom and updatedDateTill parameters by entering dates in the yyyy-MM-dd format.

Example:

updatedDateFrom=2024-01-01&updatedDateTill=2024-01-15

This will return only records that were updated between January 1, 2024, and January 15, 2024.

Untitled.png

API Endpoint Example:

The parameters can be added to any supported Reporting API endpoint as query parameters. For example, when querying subscriptions:

GET /api/v1/reporting/subscriptions/{requesterId}?updatedDateFrom=2024-01-01&updatedDateTill=2024-01-15

Limitations

When using updatedDate filters, be aware of the following limitations:

1. False positive updates: There may be cases when the updatedDateTime field is updated without any values actually changing in the API response. This may happen when a related entity in the Platform has been updated but the changed content is not included in the API response.

2. Specific field exclusions: The updatedDateTime field does not react to changes to industryTypes and isVendor fields in the Get Organization Details API endpoint. Changes to these fields will not trigger an update to the updatedDateTime value.

Summary

Use updatedDateFrom and updatedDateTill parameters in Reporting API endpoints to filter data by last update date, entering dates in yyyy-MM-dd format. This approach improves API performance and enables efficient incremental data loading by retrieving only recently modified records. Be aware that the updatedDateTime field may update when related entities change even if the API response content remains unchanged, and that changes to industryTypes and isVendor fields in the Get Organization Details endpoint do not trigger updatedDateTime updates.

Was this article helpful?

0 out of 0 found this helpful

Add comment

Please sign in to leave a comment.