Murilo Belarmino
08/12/2025, 8:44 AMkapa.ai
08/12/2025, 8:44 AMstart_date) into a nested field inside your JSON body in an Airbyte low-code connector, you should use the body_json injection type with the field_path property. This allows you to specify the path to the nested key where the value should be injected. For example, if your API expects a request body like: json { "inserted_time": { "since": "2023-01-14T14:39:01Z", "until": "2023-05-14T14:44:01Z" } } You should configure your request option like this in your YAML: yaml start_time_option: type: RequestOption inject_into: body_json field_path: - inserted_time - since end_time_option: type: RequestOption inject_into: body_json field_path: - inserted_time - until This will ensure that the since and until values are injected into the correct nested fields within the inserted_time object in your JSON body. Note that nested key injection is only available for body_json injection, not for other injection types like query parameters or headers. The field_name property is only for top-level keys, while field_path is for nested keys and is the recommended approach for your use case [Request Options Provider](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider). If you are using the Airbyte UI, look for the option to inject into a nested JSON field and specify the path as shown above. If you do not see this option, you may need to edit the YAML directly. This approach is confirmed to work for cases like yours, where both since and until reside under a nested object in the JSON body [Request Options Provider](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider).Murilo Belarmino
08/12/2025, 8:56 AMkapa.ai
08/12/2025, 8:56 AMkapa.ai
08/12/2025, 8:56 AMbody_json injection. You must use the field_path property to specify the path to the nested key. This is supported for body_json but not for other injection types (like query parameters or form data). Example from the docs: yaml start_time_option: type: RequestOption inject_into: body_json field_path: - inserted_time - since This should inject the value into { "inserted_time": { "since": value } } in your request body. - If you try to use dot notation (e.g., inserted_time.since) in the field name, it will not work. The documentation and user reports confirm that only field_path (as an array) is supported for nested injection, and only for body_json injection, not for other types like body_data or request_parameters ([Request Options Provider](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider)). - If you are using the UI and it does not allow you to specify a nested path, you may need to edit the YAML directly. There are user reports confirming that the UI may not support this directly, and attempting to use dot notation or similar workarounds will not work ([Forum Post](https://discuss.airbyte.io/t/4503)). If you have followed these steps and it is still not inserting correctly, it may be a limitation or bug in the current version of the connector builder UI. In that case, editing the YAML directly as shown above is the recommended approach. If you need to inject into a nested field for something other than body_json, the knowledge sources do not provide a supported method for this scenario. If you are still experiencing issues, please provide more details about your configuration and the exact problem you are seeing.Murilo Belarmino
08/12/2025, 9:01 AMkapa.ai
08/12/2025, 9:01 AMkapa.ai
08/12/2025, 9:01 AMstart_date (for example, from your connector's config) into a nested field in the JSON body using the field_path property with inject_into: body_json. The value can be dynamically set using Jinja expressions referencing available variables such as config.start_date. For example, your YAML could look like: yaml start_time_option: type: RequestOption inject_into: body_json field_path: - inserted_time - since value: "{{ config['start_date'] }}" This will inject the value of start_date from your config into the nested since field inside inserted_time in the JSON body. The documentation confirms that available variables like config can be used in these injections ([RequestOption reference](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/RequestOption)). So, as long as you use the correct field_path and reference the variable properly, it will work.Murilo Belarmino
08/12/2025, 9:02 AMkapa.ai
08/12/2025, 9:02 AMkapa.ai
08/12/2025, 9:02 AMvalue field is needed in a RequestOption when you want to specify what value should be injected into the request at the location defined by inject_into and field_path (or field_name). This is especially important when you want to inject a dynamic value, such as one from your connector's configuration (e.g., config.start_date), or a variable from the stream context. However, in the official Airbyte documentation for low-code connectors, the RequestOption schema does not explicitly show a value property in the examples or schema definitions. Instead, the value to be injected is typically determined by the context in which the RequestOption is used (for example, as part of an incremental sync, the value might be the current cursor value) [Request Options Provider](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider). If you are configuring a custom parameter or need to inject a specific value, you would use the generic parameter section or Jinja expressions in the stream configuration, not directly in the RequestOption. The documentation suggests using Jinja expressions and available variables in the generic parameter section for more complex cases [Custom parameter injection](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/incremental-sync#custom-parameter-injection). In summary: - The value field is not a standard property of RequestOption in the documented schema. - The value to be injected is usually determined by the context (e.g., incremental sync cursor). - For custom values, use the generic parameter section with Jinja expressions. If you need to inject a specific value, refer to the generic parameter section and use Jinja templating as described in the documentation. If you are unsure how to set a value in your use case, please provide more details about your configuration.Murilo Belarmino
08/12/2025, 9:28 AMkapa.ai
08/12/2025, 9:28 AMkapa.ai
08/12/2025, 9:28 AMRequestOption object with inject_into: body_json and specify the nested path using field_path. The value to be injected (such as the start or end date) will be determined by the context in which the RequestOption is used (for example, as part of an incremental sync). Here’s how you would define the RequestOption for both start and end date, assuming you want to inject them into a structure like: json { "inserted_time": { "since": "<start_date>", "until": "<end_date>" } } YAML Example: yaml start_time_option: type: RequestOption inject_into: body_json field_path: - inserted_time - since end_time_option: type: RequestOption inject_into: body_json field_path: - inserted_time - until This configuration will ensure that the start and end date values are injected into the correct nested fields within the inserted_time object in your JSON body. The actual values injected (e.g., the current sync window's start and end times) are handled by the incremental sync logic and do not need to be specified directly in the RequestOption object ([Request Options Provider](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider)). If you need to use custom logic or variables, you can use Jinja expressions in the generic parameter section as described in the documentation ([Custom parameter injection](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/incremental-sync#custom-parameter-injection)). However, for standard incremental syncs, the above approach is correct and supported.Murilo Belarmino
08/12/2025, 9:28 AMkapa.ai
08/12/2025, 9:29 AMkapa.ai
08/12/2025, 9:29 AMRequestOption and field_path properties. The documentation explains how to configure this in a generic way, but does not reference a real-world connector that implements it. If you need a template or guidance on how to set this up, the YAML example in the documentation is the closest available reference, but there is no connector example explicitly shown in the sources above [Request Options Provider](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider).Murilo Belarmino
08/12/2025, 9:29 AMkapa.ai
08/12/2025, 9:29 AMkapa.ai
08/12/2025, 9:29 AMrequest_body_json in your connector configuration and then add a RequestOption with inject_into: body_json and a field_path, Airbyte will inject the specified value into the nested path within the existing JSON body. This means the new value will be merged into the existing structure at the specified location, rather than replacing the entire body. The documentation states that for body_json injections, the field_path property is used to provide a list of strings representing a path to a nested key to inject. This allows you to add or update a nested field in the existing JSON body, particularly useful for cases like GraphQL variables or other nested structures. The rest of your JSON body will remain intact, and only the specified nested field will be added or updated ([Request Options Provider](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider)). If you have, for example: yaml request_body_json: other_field: some_value and you add: yaml start_time_option: type: RequestOption inject_into: body_json field_path: - inserted_time - since The resulting body will include both other_field and the new nested inserted_time.since field. If there is a conflict (e.g., the same field is defined both in request_body_json and via a RequestOption), the documentation does not specify the exact behavior, so you may need to test or consult further documentation for conflict resolution details.Murilo Belarmino
08/12/2025, 9:38 AMkapa.ai
08/12/2025, 9:38 AMkapa.ai
08/12/2025, 9:38 AMinserted_time.since) to specify nested fields for injection in the JSON body. According to the official Airbyte documentation, you must use the field_path property, which is an array of strings representing the path to the nested key. Dot notation is not supported for this purpose—only the array format is recognized for nested injection in body_json ([Request Options Provider](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider); [Forum Post](https://discuss.airbyte.io/t/4503)). Example (correct usage): yaml field_path: - inserted_time - since Incorrect (dot notation, will not work): yaml field_name: inserted_time.since Always use the array format with field_path for nested JSON injection.Murilo Belarmino
08/12/2025, 9:40 AMstreams:
daily_costs:
type: DeclarativeStream
name: daily_costs
primary_key: []
schema:
$schema: http://json-schema.org/schema#
schema_loader:
type: JsonFileSchemaLoader
file_path: "./source_azure_costs/schemas/daily_costs.json"
retriever:
type: SimpleRetriever
requester:
$ref: "#/definitions/base_requester"
path: /subscriptions/{{ config['tenant_id'] }}/providers/Microsoft.CostManagement/query?api-version=2023-03-01
http_method: POST
request_headers:
Content-Type: application/json
request_body_json:
type: "ActualCost"
timeframe: "Custom"
timePeriod: {}
dataset:
granularity: "Daily"
aggregation:
totalCost:
name: "PreTaxCost"
function: "Sum"
grouping:
- type: "Dimension"
name: "ResourceGroupName"
- type: "Dimension"
name: "ResourceLocation"
- type: "Dimension"
name: "ServiceTier"
- type: "Dimension"
name: "ResourceType"
record_selector:
type: RecordSelector
extractor:
type: CustomRecordExtractor
class_name: source_azure_costs.components.AzureCostsRecordExtractor
incremental_sync:
type: DatetimeBasedCursor
cursor_field: UsageDate
lookback_window: P1D
cursor_datetime_formats:
- '%Y%m%d'
datetime_format: '%Y%m%d'
start_datetime:
type: MinMaxDatetime
datetime: "{{ config[\"start_date\"] }}"
datetime_format: '%Y-%m-%dT%H:%M:%SZ'
start_time_option:
type: RequestOption
inject_into: body_json
field_path:
- timePeriod
- from
end_datetime:
type: MinMaxDatetime
datetime: "{{ day_delta(-1, format='%Y-%m-%dT%H:%M:%SZ') }}"
datetime_format: '%Y-%m-%dT%H:%M:%SZ'
end_time_option:
type: RequestOption
inject_into: body_json
field_path:
- timePeriod
- to
step: P1D
cursor_granularity: P1Dkapa.ai
08/12/2025, 9:40 AMkapa.ai
08/12/2025, 9:40 AMtimePeriod in `request_body_json`: You have defined timePeriod: {} in your static request_body_json, but you want to inject from and to fields into this object using incremental sync. According to the documentation, this is the correct approach: define the parent object (timePeriod) as an empty object, and then use field_path in your RequestOption to inject the nested fields ([Request Options Provider](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider)). 2. Correct use of `field_path`: You are using field_path as an array for both start_time_option and end_time_option, which is the correct way to inject into nested JSON fields. Dot notation is not supported. 3. No need for dot notation or `field_name`: You are not using dot notation or field_name for nested fields, which is correct. 4. No explicit value field in `RequestOption`: The value to be injected is determined by the incremental sync logic, so you do not need to specify a value property in the RequestOption. ### Fixed and Annotated Example Your configuration is already correct for injecting start and end dates into a nested timePeriod object in the JSON body. Here’s your snippet with minor formatting for clarity and comments for explanation: yaml streams: daily_costs: type: DeclarativeStream name: daily_costs primary_key: [] schema: $schema: http://json-schema.org/schema# schema_loader: type: JsonFileSchemaLoader file_path: "./source_azure_costs/schemas/daily_costs.json" retriever: type: SimpleRetriever requester: $ref: "#/definitions/base_requester" path: /subscriptions/{{ config['tenant_id'] }}/providers/Microsoft.CostManagement/query?api-version=2023-03-01 http_method: POST request_headers: Content-Type: application/json request_body_json: type: "ActualCost" timeframe: "Custom" timePeriod: {} # <-- Leave empty, fields will be injected below dataset: granularity: "Daily" aggregation: totalCost: name: "PreTaxCost" function: "Sum" grouping: - type: "Dimension" name: "ResourceGroupName" - type: "Dimension" name: "ResourceLocation" - type: "Dimension" name: "ServiceTier" - type: "Dimension" name: "ResourceType" record_selector: type: RecordSelector extractor: type: CustomRecordExtractor class_name: source_azure_costs.components.AzureCostsRecordExtractor incremental_sync: type: DatetimeBasedCursor cursor_field: UsageDate lookback_window: P1D cursor_datetime_formats: - '%Y%m%d' datetime_format: '%Y%m%d' start_datetime: type: MinMaxDatetime datetime: "{{ config['start_date'] }}" datetime_format: '%Y-%m-%dT%H:%M:%SZ' start_time_option: type: RequestOption inject_into: body_json field_path: - timePeriod - from # <-- Correct: injects into timePeriod.from end_datetime: type: MinMaxDatetime datetime: "{{ day_delta(-1, format='%Y-%m-%dT%H:%M:%SZ') }}" datetime_format: '%Y-%m-%dT%H:%M:%SZ' end_time_option: type: RequestOption inject_into: body_json field_path: - timePeriod - to # <-- Correct: injects into timePeriod.to step: P1D cursor_granularity: P1D ### Summary of Changes - No changes needed to your injection logic: Your use of field_path for nested injection is correct and follows the official documentation. - No dot notation or field_name for nested fields: You are not using these, which is correct. - No value property in `RequestOption`: The value is handled by the incremental sync logic. In conclusion: Your configuration is correct for injecting start and end dates into a nested field in the JSON body using Airbyte’s low-code connector framework ([Request Options Provider](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider)). No further changes are needed. If you encounter issues, ensure you are using a recent version of Airbyte that supports this feature, as described in the documentation.Murilo Belarmino
08/12/2025, 9:41 AMkapa.ai
08/12/2025, 9:41 AMkapa.ai
08/12/2025, 9:42 AMfield_path for nested JSON injection is correct. - You correctly leave timePeriod: {} empty in the static request_body_json, allowing the incremental sync logic to inject the from and to fields dynamically. - You do not use dot notation or a value property in your RequestOption, which is correct according to the documentation. No changes are needed to your configuration. Your approach matches the documented method for injecting start and end dates into a nested field in the JSON body using the low-code connector framework. The incremental sync logic will handle the value injection for the specified time window, and the nested fields will be merged into the existing timePeriod object as intended. This is explicitly supported and described in the documentation, which states that for body_json injections, the field_path property is used to provide a list of strings representing a path to a nested key to inject, and that this is the correct approach for nested JSON fields ([Request Options Provider](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider)). Summary: - Your configuration is correct and follows Airbyte's official guidance. - No further changes are required for the nested injection of start and end dates in your JSON body. If you are experiencing issues, they may be related to Airbyte version compatibility or other factors not covered in the provided documentation. If so, please provide more details about the error or unexpected behavior.Murilo Belarmino
08/12/2025, 9:42 AMkapa.ai
08/12/2025, 9:43 AMkapa.ai
08/12/2025, 9:43 AMstart_time and end_time (or from and to) directly into timePeriod: {} in your static request_body_json, those values will be hardcoded and will not be dynamically updated by the incremental sync logic. The incremental sync feature in Airbyte relies on injecting the current sync window's start and end times into the request at runtime using the RequestOption with field_path. The documentation specifies that you should leave the nested object (e.g., timePeriod: {}) empty in your static body, and let the incremental sync inject the correct values for each sync window. If you pre-populate these fields, the injected values may not overwrite them, and the sync may not work as intended ([Request Options Provider](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider)). In summary: - You should not add start_time and end_time (or from and to) directly into timePeriod in the static body. - Leave timePeriod: {} empty and use the RequestOption with field_path to inject these values dynamically. This ensures the incremental sync works as designed and the correct date range is used for each sync run.Murilo Belarmino
08/12/2025, 9:43 AMkapa.ai
08/12/2025, 9:43 AMkapa.ai
08/12/2025, 9:44 AM{{ stream_partition.start_time }} (or a similar Jinja expression) directly into your static request_body_json (for example, as timePeriod: { from: "{{ stream_partition.start_time }}" }), it will only work if the connector builder and the Airbyte runtime support Jinja templating in that section and the variable is available in that context. However, the official documentation does not explicitly state that you can use {{ stream_partition.start_time }} directly in the static request_body_json for incremental syncs. Instead, it recommends leaving the nested object empty and using the RequestOption with field_path to inject the dynamic values for each sync window. This approach is documented as the supported and reliable method for injecting dynamic values into nested JSON fields for incremental syncs ([Request Options Provider](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider)). In summary: - The documentation does not confirm that using {{ stream_partition.start_time }} directly in request_body_json is supported for incremental syncs. - The recommended and documented approach is to use RequestOption with field_path for dynamic injection. If you need dynamic values for each sync window, follow the documented method and do not rely on direct Jinja templating in the static body unless explicitly supported in the documentation.Murilo Belarmino
08/12/2025, 9:47 AMkapa.ai
08/12/2025, 9:47 AMkapa.ai
08/12/2025, 9:47 AMRequestOption with field_path, but it does not mention a way to access or use the entire request body as a single variable within the manifest. If you need to manipulate or reference the whole request body, you may need to handle this outside of the current low-code manifest capabilities, as per the available documentation.Murilo Belarmino
08/12/2025, 10:03 AMkapa.ai
08/12/2025, 10:03 AMkapa.ai
08/12/2025, 10:03 AMTimePeriod with both a from and to field in the request body, but these fields are not being included, resulting in a 400 error: > "Invalid query definition: Valid TimePeriod with range not exceeding one year must be present." Based on the official Airbyte documentation, the correct way to inject dynamic start and end dates into a nested field (like timePeriod.from and timePeriod.to) in the JSON body is to: 1. Leave the timePeriod object empty in your static `request_body_json`: yaml request_body_json: type: "ActualCost" timeframe: "Custom" timePeriod: {} # ... other fields ... 2. Use RequestOption with inject_into: body_json and field_path for both start and end time: yaml start_time_option: type: RequestOption inject_into: body_json field_path: - timePeriod - from end_time_option: type: RequestOption inject_into: body_json field_path: - timePeriod - to This setup ensures that Airbyte will inject the correct start and end dates into the nested timePeriod object for each sync window. If you do not configure it this way, the fields will not be present in the request body, and the API will return the error you are seeing ([Request Options Provider](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider)). If you have already configured it this way and still see the error: - Double-check that you are not hardcoding or pre-filling from and to in request_body_json. - Make sure you are not using dot notation or field_name for nested fields—only field_path as an array is supported. - Ensure you are using a recent version of Airbyte that supports this feature. If you follow the documented approach and the error persists, there may be an issue with the Airbyte version or a bug, but the knowledge sources do not provide further troubleshooting steps for this scenario.Murilo Belarmino
08/12/2025, 10:06 AMkapa.ai
08/12/2025, 10:06 AMkapa.ai
08/12/2025, 10:06 AMtimePeriod object empty in request_body_json and using RequestOption with field_path for injecting from and to is the officially documented method for nested JSON injection in Airbyte low-code connectors. However, there are no concrete examples in the documentation or knowledge sources that confirm this works specifically for the Azure Cost Management API or that it will always result in records being returned. The documentation does not provide troubleshooting steps for the scenario where the request is correctly formed but the API still returns 0 records. It also does not provide a real-world connector example using this exact pattern. There could be other factors at play, such as: - The API may require additional fields or a specific format for the from and to values. - The date range provided may not match any available data. - There may be a misconfiguration elsewhere in the connector or in the Airbyte platform version being used. In summary: The knowledge sources confirm the configuration method but do not explain why it would return 0 records in your specific case. There is not enough information in the provided documentation to diagnose or resolve the issue of 0 records being returned when using the documented approach for nested field injection in the request body. If you need further troubleshooting, you may need to consult Airbyte community forums or support channels, as the knowledge sources do not contain enough detail to address this specific outcome.