Skip to content

Create division under an organization node

Start from the script setup block, then add the snippet code below.

Create a division under the organization node. Requires write:hierarchy.

# ... script setup ...
division = api_post(
f"/v1/nodes/{ORGANIZATION_ID}/division",
{"name": "My Division"},
)
print(json.dumps(division, indent=2))