POST /v1/organization-units
TenantService_CreateOrganizationUnit
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
No path or query parameters.
Request body
attributes_jsonstringcodestringidempotency_keystringkindstringnamestringparent_idstring
cURL
curl --request POST 'https://nexus-api.rainlib.com/v1/organization-units' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"attributes_json": "<value>",
"code": "<value>",
"idempotency_key": "<value>",
"kind": "<value>",
"name": "<value>",
"parent_id": "<value>"
}'Response contract
200 · OK
attributes_jsonstringcodestringcreated_atstringidstringkindstringnamestringparent_idstringstatusstringupdated_atstringversionstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.