Move sub-organization
Move sub-organization
Moves a sub-organization to a different parent. Updates hierarchy paths and depths for the sub-org and all its descendants. Requires admin role in both the current and new parent orgs.
Authentication
AuthorizationBearer
JWT access token from POST /auth/login or POST /oauth/token
OR
x-api-keystring
Organization-scoped API key created via POST /orgs/:orgId/api-keys. Carries permission grants.
Path parameters
orgId
subOrgId
Request
This endpoint expects an object.
newParentId
Response
Response
id
name
status
created_at
updated_at
email
org_type
description
website
jurisdiction
logo_url
parent_id
hierarchy_path
depth
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error