---
schema_version: "1"
id: e7bbc9c89df73741297afd4fc277454cf1bd45ed4b3546f7f418d99e17d4ae36
title: Upsert Records
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-int/references/ingestionapi/c360-a-api-insert-records.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-int/references/data-cloud-ingestionapi-ref/c360-a-api-insert-records.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: a11067490c5f117fb8cb511e1d05a7c21e5f7a5d513cba66be8d09cdce297f0c
products:
  - Data 360 Integration Guide
  - Data 360 Developer Documentation
---
# Upsert Records

Load new objects and update existing objects into your Data 360 data lake table.

- URI

  - : /api/v1/ingest/sources/{name}/{object-name}

- Available since release

  - : Data 360 v1.0, Salesforce v51.0

- Formats

  - : JSON

- HTTP methods

  - : POST

- Authentication

  - : `Authorization: Bearer {access_token}`

**Request body**

**note:** You can perform partial updates on records. To update a previously ingested record using streaming Ingestion API, include the record’s Primary Key in your request, provide a value for the Record Modified field, and specify the fields that need updating. Data 360 updates only the fields included in the payload and leaves the other fields unchanged as long as the value of the Record Modified field is more recent than the current value.
To enable Partial Record Updates for a data stream, select Partial from the Refresh Mode menu available when creating a Data Stream of type Profile or Other.

```nolang
curl --location --request POST
'https://{instance_url}/api/v1/ingest/sources/ntotest/exercises_734a9fa2' \
--header 'Authorization: Bearer {access_token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": [
{"maid":1,"first_name":"Rachel","last_name":"Rodriquez","email":"rachel@nto.com","gender":"Female","city":"New York City","state":"NY","created":"2020-04-27T02:48:33Z"}
]
}
'
```

- Request parameters

  - :
    |Parameter|Description|
    |---------|-----------|
    |Content-Type|application/json|
    |name|Name of the Ingest API data connector.|
    |object-name|Name of the object configured in Ingest API data connector for payload.|

- Response body

  - :

    ```nolang
    {
    "accepted": true
    }

    ```

    Returns a status code of 202 (Accepted), which indicates that the request is accepted and gets processed asynchronously.

**note:** For more information on status codes, refer to **Status Codes and Error Responses** section in [Get Started with Ingestion API](https://developer.salesforce.com/docs/data/data-cloud-int/references/data-cloud-ingestionapi-ref/c360-a-api-get-started.md).
