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

# upsertSourceEntries

> Creates or updates entries of one data source from typed values. Properties left out stay unchanged. Before any write it runs the shared import checks, and nothing is written if any check fails, if a property isn't configured on the data source, or if a value doesn't match its data type. The import is stamped with the server's clock. Returns once the source entries are stored and readable; related entries and destinations update asynchronously. The payload has no `errors` list; a failure comes back as a top-level GraphQL error whose `extensions.code` is one of: `BAD_USER_INPUT` for type and property failures (per-property failures under `extensions.validation`), restricted characters or lengths in entry ids, property ids or language codes, entry ids that are duplicates ignoring case, `occtoosys*` system properties, or a payload over the tenant's import ceilings; `NOT_FOUND` for an unknown data source; `CONFLICT` while the data source is being purged; or `WRITE_FAILED` when the configuration lookup or the write fails.



**mutation** `upsertSourceEntries(input: UpsertSourceEntriesInput!): UpsertSourceEntriesPayload!`

## Arguments

**`input`**: `UpsertSourceEntriesInput!` (required)

## Returns

`UpsertSourceEntriesPayload!`

**`receipt`**: `ImportReceipt`

## Examples

```graphql Mutation
mutation UpsertSourceEntries($input: UpsertSourceEntriesInput!) {
  upsertSourceEntries(input: $input) {
    receipt {
      id
    }
  }
}
```

```json Variables
{
  "input": {
    "entries": [
      {
        "entryId": "string",
        "properties": [
          {
            "propertyId": "string",
            "value": {}
          }
        ]
      }
    ],
    "sourceId": "string"
  }
}
```

```json Response
{
  "data": {
    "upsertSourceEntries": {
      "receipt": {
        "id": "value"
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.