Update Organization
| Description | Update an existing sub-org related to a given root org id |
| HTTP Method | /v1/identity/organizations/{organization_id}/orgunits/{orgunit_id} |
| HTTP Path | PUT |
| Associated Scope(s) | identity.organizations |
Request Path Parameters (If Any)
| Name | Type | Description |
|---|---|---|
| organization_id | string | Root Org UUID. |
| orgunit_id | string | ID of sub-org to be updated |
Request Query/Body Parameters (If Any)
| Name | Type | Description |
|---|---|---|
| organization | entities.OrgUnit | Sub-organization to be updated. Note: it doesn’t allow you to update parentID in place. You can delete/recreate nodes at the right hierarchy level. |
Response Fields (If Any)
| Name | Type | Description |
|---|---|---|
| organization | entities.OrgUnit | Sub-organization that got updated |
Endpoint Specific Errors (Standard API Errors are defined here)
| Http Status Code | Code | Message |
|---|---|---|
| 400 | bad_request | A bad request like “non-existent orgID” |
| 401 | unauthorized | No authentication provided, or invalid auth credentials, or missing scopes, etc. |