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

# upsertSourceProperties

> Creates or changes source properties of a source. Changing `type`, `delimiter` or capabilities reindexes the values: the source property stays `UPDATING` until done. Fails with `ConflictError` on a source property that isn't `ACTIVE`.



**mutation** `upsertSourceProperties(input: UpsertSourcePropertiesInput!): UpsertSourcePropertiesPayload!`

## Arguments

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

## Returns

`UpsertSourcePropertiesPayload!`

**`dataSourceProperty`**: `[DataSourceProperty!]`

---

**`errors`**: `[UpsertSourcePropertiesError!]`

## Examples

```graphql Mutation
mutation UpsertSourceProperties($input: UpsertSourcePropertiesInput!) {
  upsertSourceProperties(input: $input) {
    dataSourceProperty {
      capabilities {
        applicableTo
        description
        kind
        requiresReindexingOnUpdate
      }
      cardDefinitionProperties {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
        totalCount
      }
      cardPropertyIdSuggestions {
        camelCase
        kebabCase
        pascalCase
      }
      createdAt
      createdBy
      dataSourceId
    }
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "dataSourceId": "id",
    "properties": [
      {
        "displayName": "string",
        "propertyId": "string"
      }
    ]
  }
}
```

```json Response
{
  "data": {
    "upsertSourceProperties": {
      "dataSourceProperty": [
        {
          "capabilities": [
            {
              "applicableTo": [
                "TEXT"
              ],
              "description": "string",
              "kind": "string",
              "requiresReindexingOnUpdate": true
            }
          ],
          "cardDefinitionProperties": {
            "edges": [
              {
                "__typename": "CardDefinitionPropertiesEdge"
              }
            ],
            "nodes": [
              {
                "__typename": "CardDefinitionProperty"
              }
            ],
            "pageInfo": {
              "__typename": "PageInfo"
            },
            "totalCount": 1
          },
          "cardPropertyIdSuggestions": {
            "camelCase": "string",
            "kebabCase": "string",
            "pascalCase": "string"
          },
          "createdAt": "value",
          "createdBy": "string",
          "dataSourceId": "string"
        }
      ],
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ]
    }
  }
}
```


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