# CreateTreeFieldNodeInput

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


Input for creating a new tree field node at a specific position.

```graphql
input CreateTreeFieldNodeInput {
  fieldDefinitionId: ID!
  targetNode: String!
  position: TreeNodePosition!
  nodeId: String!
  translations: [TranslationStringInput!]!
  isSelectable: Boolean!
}
```

### Fields

#### [<code style={{ fontWeight: 'normal' }}>CreateTreeFieldNodeInput.<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 tree FieldDefinition to add a node to.

#### [<code style={{ fontWeight: 'normal' }}>CreateTreeFieldNodeInput.<b>targetNode</b></code>](#target-node)<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"/> {/* #target-node */} 
The full path of the reference node for positioning (e.g. "ROOT|~^CATEGORY-1").

#### [<code style={{ fontWeight: 'normal' }}>CreateTreeFieldNodeInput.<b>position</b></code>](#position)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>TreeNodePosition!</b></code>](/organizer/content-api/graphql-event-api-schema/types/enums/tree-node-position.mdx) <Badge class="badge badge--secondary badge--non_null" text="non-null"/> <Badge class="badge badge--secondary " text="enum"/> {/* #position */} 
Whether to place the new node ABOVE, BELOW, or INSIDE the target node.

#### [<code style={{ fontWeight: 'normal' }}>CreateTreeFieldNodeInput.<b>nodeId</b></code>](#node-id)<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"/> {/* #node-id */} 
The identifier for the new node (e.g. "SUB-CATE-3").

#### [<code style={{ fontWeight: 'normal' }}>CreateTreeFieldNodeInput.<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 badge--non_null" text="non-null"/> <Badge class="badge badge--secondary " text="input"/> {/* #translations */} 
Labels for the new node in various languages.

#### [<code style={{ fontWeight: 'normal' }}>CreateTreeFieldNodeInput.<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 badge--non_null" text="non-null"/> <Badge class="badge badge--secondary " text="scalar"/> {/* #is-selectable */} 
Whether this node should be selectable (added to treeOptions).

### Member Of

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