> ## 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.

# enrichCardEntries

> Sets or clears property values on card entries of one card definition. A card has no values of its own: each value is written to the source property behind its card property, with one import per data source. Properties left out stay unchanged, and an id with no source entry behind it creates one in each data source of the patched properties. Nothing is written unless every property exists on the card definition, isn't bound to a system source property, is editable, matches the card property's data type and holds no duplicate list values. 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` (per-property failures under `extensions.validation`), `NOT_FOUND` for an unknown card definition, `CONFLICT` while a data source is being purged, or `WRITE_FAILED`. To retry after `WRITE_FAILED`, see `id`; the retry also completes a request where one data source was written and another failed.



**mutation** `enrichCardEntries(input: EnrichCardEntriesInput!): EnrichCardEntriesPayload!`

## Arguments

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

## Returns

`EnrichCardEntriesPayload!`

**`result`**: `EnrichCardEntriesResult`

## Examples

```graphql Mutation
mutation EnrichCardEntries($input: EnrichCardEntriesInput!) {
  enrichCardEntries(input: $input) {
    result {
      accepted
      affectedCards
      affectedSourceEntries
      receipts {
        id
        sourceId
      }
    }
  }
}
```

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

```json Response
{
  "data": {
    "enrichCardEntries": {
      "result": {
        "accepted": true,
        "affectedCards": 1,
        "affectedSourceEntries": 1,
        "receipts": [
          {
            "id": "value",
            "sourceId": "string"
          }
        ]
      }
    }
  }
}
```


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