> ## Documentation Index
> Fetch the complete documentation index at: https://docs.frontic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upsert Record

Create or replace a record in your data feed. If a record with the same source ID exists, it will be completely replaced with the new data.

## Path Parameters

<ParamField path="integration-id" type="string" required>
  Your integration identifier. Found in the admin app under integration settings.
</ParamField>

<ParamField path="feed-id" type="string" required>
  The unique identifier for your data feed. Found in the admin app under your feed settings.
</ParamField>

## Request Body

<ParamField body="id" type="string" required>
  The unique source ID for this record. Used to identify the record for future updates and deletes.
</ParamField>

<ParamField body="...fields" type="any">
  Any additional fields for your record data. Structure depends on your data feed schema.
</ParamField>

## Response

<ResponseField name="correlation-id" type="string" required>
  Unique identifier to track this data change through Frontic's processing pipeline. Provide this ID when contacting support about specific data changes.
</ResponseField>

<RequestExample>
  ```json Request Body theme={"theme":"css-variables"}
  {
    "id": "product-123",
    "name": "Example Product",
    "price": 29.99,
    "category": "electronics",
    "stock": 150
  }
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={"theme":"css-variables"}
  {
    "correlation-id": "22c8f6f9-2a62-4e18-81a5-33c207dd967d"
  }
  ```
</ResponseExample>
