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

# UpdateRelationDefinitionInput

> Changes a relation definition. Fields left null keep their value.



**Kind**: `input`

## Fields

**`description`**: `String`

New free-text note. Null = unchanged.

---

**`displayCategory`**: `RelationDisplayCategory`

New display hint. Null = unchanged.

---

**`id`**: `ID!` (required)

Global id of the relation definition (`RelationDefinition.id`).

---

**`name`**: `String`

New name. Null or empty = unchanged.

---

**`sourceCriteria`**: `JSON`

Replaces `sourceCriteria`. Same shape as on create, but with PascalCase keys, e.g. `{"Operator":"equals","PropertyId":"status","Values":["Active"],"Invert":false}`. Null = unchanged.

---

**`sourceRelationDisplayName`**: `String`

New label for the relation on that side, up to 255 characters. Null or empty = unchanged.

---

**`tags`**: `[String!]`

New labels, replacing the old ones. Null = unchanged.

---

**`targetCriteria`**: `JSON`

Replaces `targetCriteria`. Same shape as on create, but with PascalCase keys, e.g. `{"Operator":"equals","PropertyId":"status","Values":["Active"],"Invert":false}`. Null = unchanged.

---

**`targetRelationDisplayName`**: `String`

New label for the relation on that side, up to 255 characters. Null or empty = unchanged.

---

**`targetRelationOrderByProperty`**: `String`

Older way to set the order: a target card property id, used as `BASED_ON_TARGET_PROPERTY` sorting. Ignored when `targetRelationSortingConfiguration` is set. Null or empty = unchanged.

---

**`targetRelationSortingConfiguration`**: `RelationDefinitionSortingConfigurationInput`

New order of the target cards. Null = unchanged, unless `targetRelationOrderByProperty` is set.



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