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

# cardChangelog

> Lists the changes to one card entry, newest first by default: value changes in the card definition's sources, shown through its current property mappings, and the entry's publish and segment changes. A property filter also limits `changedProperties`.



**query** `cardChangelog(after: String, definitionId: String!, entryId: String!, first: Int, sort: [ChangelogSortInput!], where: ChangelogFilterInput): CardChangelogConnection`

## Arguments

**`after`**: `String`

Returns the elements in the list that come after the specified cursor.

---

**`definitionId`**: `String!` (required)

Raw id of the card definition (e.g. `products`), not the global `CardDefinition.id`.

---

**`entryId`**: `String!` (required)

Raw id of the card entry (`CardEntry.entryId`). The entry doesn't have to exist any more.

---

**`first`**: `Int`

Returns the first _n_ elements from the list.

---

**`sort`**: `[ChangelogSortInput!]`

Sort keys: `TIMESTAMP`, `VERSION` or both, each once. Null or empty sorts by `TIMESTAMP` descending.

---

**`where`**: `ChangelogFilterInput`

Filters the changes, as a `ChangelogFilterInput`; all its constraints apply. Null returns every change.

## Returns

`CardChangelogConnection`

**`edges`**: `[CardChangelogEdge!]`

A list of edges.

---

**`nodes`**: `[ChangelogEntry]`

A flattened list of the nodes.

---

**`pageInfo`**: `PageInfo!`

Information to aid in pagination.

---

**`totalCount`**: `Long!`

## Examples

```graphql Query
query CardChangelog($definitionId: String!, $entryId: String!) {
  cardChangelog(definitionId: $definitionId, entryId: $entryId) {
    edges {
      cursor
      node {
        apiVersion {
          __typename
        }
        changedProperties {
          __typename
        }
        changeType
        contributor
        endpoint {
          __typename
        }
        endpointId
      }
    }
    nodes {
      apiVersion {
        allowedOrigins
        applications {
          __typename
        }
        authentication
        cardDefinitions {
          __typename
        }
        clusters {
          __typename
        }
        createdAt
      }
      changedProperties {
        current {
          __typename
          ... on TextValue {
            __typename
          }
        }
        previous {
          __typename
          ... on TextValue {
            __typename
          }
        }
        propertyId
      }
      changeType
      contributor
      endpoint {
        activeContent
        apiVersion {
          __typename
        }
        apiVersionId
        cardDefinitions {
          __typename
        }
        description
        displayName
      }
      endpointId
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Variables
{
  "definitionId": "string",
  "entryId": "string"
}
```

```json Response
{
  "data": {
    "cardChangelog": {
      "edges": [
        {
          "cursor": "string",
          "node": {
            "apiVersion": {
              "__typename": "ApiVersion"
            },
            "changedProperties": [
              {
                "__typename": "PropertyChange"
              }
            ],
            "changeType": "CREATED",
            "contributor": "value",
            "endpoint": {
              "__typename": "Endpoint"
            },
            "endpointId": "value"
          }
        }
      ],
      "nodes": [
        {
          "apiVersion": {
            "allowedOrigins": [
              "value"
            ],
            "applications": {
              "__typename": "ApplicationsConnection"
            },
            "authentication": "PROTECTED",
            "cardDefinitions": {
              "__typename": "CardDefinitionsConnection"
            },
            "clusters": {
              "__typename": "ClustersConnection"
            },
            "createdAt": "value"
          },
          "changedProperties": [
            {
              "current": {
                "__typename": "TextValue"
              },
              "previous": {
                "__typename": "TextValue"
              },
              "propertyId": "string"
            }
          ],
          "changeType": "CREATED",
          "contributor": "value",
          "endpoint": {
            "activeContent": "value",
            "apiVersion": {
              "__typename": "ApiVersion"
            },
            "apiVersionId": "id",
            "cardDefinitions": {
              "__typename": "CardDefinitionsConnection"
            },
            "description": "string",
            "displayName": "string"
          },
          "endpointId": "value"
        }
      ],
      "pageInfo": {
        "endCursor": "string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "string"
      },
      "totalCount": "value"
    }
  }
}
```


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