poornima Venkatesha
07/16/2024, 8:35 AMkapa.ai
07/16/2024, 8:36 AMcreated[gte]
and created[lte]
, then the component can specify the request parameters as: yaml incremental_sync: type: DatetimeBasedCursor <...> start_time_option: type: RequestOption field_name: "created[gte]" inject_into: "request_parameter" end_time_option: type: RequestOption field_name: "created[lte]" inject_into: "request_parameter"
In this example, inject_into
is set to "request_parameter"
, which means the start and end time will be added as a query parameter in the HTTP request. For more details, you can refer to the [Airbyte documentation](https://docs.airbyte.com/connector-development/connector-builder-ui/incremental-sync#configuration).poornima Venkatesha
07/16/2024, 8:40 AMkapa.ai
07/16/2024, 8:42 AMkapa.ai
07/16/2024, 8:42 AMupdated_at
timestamp or an id
that increments with each new record. For example, if the structure of a stream is { value: 2, metadata: { updated_at: 2020-11-01 } }
, the default_cursor_field
might be ["metadata", "updated_at"]
. This means that the updated_at
field in the metadata
object is used as the cursor field ([source](https://docs.airbyte.com/understanding-airbyte/airbyte-protocol#cursor)). The parameter name in the "Inject start/end time into outgoing HTTP request" section should correspond to the parameter name that the API expects for filtering records based on time. This will depend on the specific API you are working with. For example, some APIs might expect parameters like start_time
and end_time
, while others might use different parameter names. You should refer to the API documentation to find out the correct parameter names to use. Here's an example of how you might specify these in the connector builder: yaml incremental_sync: type: DatetimeBasedCursor <...> start_time_option: type: RequestOption field_name: "start_time" # replace with the correct parameter name for the API inject_into: "request_parameter" end_time_option: type: RequestOption field_name: "end_time" # replace with the correct parameter name for the API inject_into: "request_parameter"
In this example, start_time
and end_time
are the parameter names that the API expects for filtering records based on time. These should be replaced with the correct parameter names for the API you are working with ([source](https://docs.airbyte.com/connector-development/connector-builder-ui/incremental-sync#configuration)).