# UpdateTreeFieldNodeInput

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/types/inputs/update-tree-field-node-input


Input for updating a tree field node — selectability, translations, and/or renaming the last segment of its path.

```graphql
input UpdateTreeFieldNodeInput {
  fieldDefinitionId: ID!
  currentNodePath: String!
  newNodePath: String
  isSelectable: Boolean
  translations: [TranslationStringInput!]
}
```

### Fields

#### [<code style={{ fontWeight: 'normal' }}>UpdateTreeFieldNodeInput.<b>fieldDefinitionId</b></code>](#field-definition-id)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>ID!</b></code>](/organizer/content-api/graphql-event-api-schema/types/scalars/id.mdx) <Badge class="badge badge--secondary badge--non_null" text="non-null"/> <Badge class="badge badge--secondary " text="scalar"/> {/* #field-definition-id */} 
The ID of the FieldDefinition of type tree.

#### [<code style={{ fontWeight: 'normal' }}>UpdateTreeFieldNodeInput.<b>currentNodePath</b></code>](#current-node-path)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>String!</b></code>](/organizer/content-api/graphql-event-api-schema/types/scalars/string.mdx) <Badge class="badge badge--secondary badge--non_null" text="non-null"/> <Badge class="badge badge--secondary " text="scalar"/> {/* #current-node-path */} 
The path of the node to update, as a separator-joined string (e.g. "31126623|~^31126628").

#### [<code style={{ fontWeight: 'normal' }}>UpdateTreeFieldNodeInput.<b>newNodePath</b></code>](#new-node-path)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>String</b></code>](/organizer/content-api/graphql-event-api-schema/types/scalars/string.mdx) <Badge class="badge badge--secondary " text="scalar"/> {/* #new-node-path */} 
The new full path of the node (e.g. "ROOT|~^CATEGORY-X"). Only the last segment may differ from `currentNodePath`; the parent prefix must match. Use `moveTreeFieldNode` to change parent or order.

#### [<code style={{ fontWeight: 'normal' }}>UpdateTreeFieldNodeInput.<b>isSelectable</b></code>](#is-selectable)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>Boolean</b></code>](/organizer/content-api/graphql-event-api-schema/types/scalars/boolean.mdx) <Badge class="badge badge--secondary " text="scalar"/> {/* #is-selectable */} 
Whether this node should be selectable (present in treeOptions).

#### [<code style={{ fontWeight: 'normal' }}>UpdateTreeFieldNodeInput.<b>translations</b></code>](#translations)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>[TranslationStringInput!]</b></code>](/organizer/content-api/graphql-event-api-schema/types/inputs/translation-string-input.mdx) <Badge class="badge badge--secondary " text="list"/> <Badge class="badge badge--secondary " text="input"/> {/* #translations */} 
Labels for the node in various languages. Replaces all existing translations.

### Member Of

[`updateTreeFieldNode`](/organizer/content-api/graphql-event-api-schema/operations/mutations/update-tree-field-node.mdx)  <Badge class="badge badge--secondary badge--relation" text="mutation"/>
