v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1455233317.4 KB

Renames the specified organizational unit (OU). The ID and ARN don't change. The child OUs and accounts remain in place, and any attached policies of the OU remain attached.

This operation can be called only from the organization's management account.

post/#X-Amz-Target=AWSOrganizationsV20161128.UpdateOrganizationalUnit

Headers

X-Amz-Target'AWSOrganizationsV20161128.UpdateOrganizationalUnit' required

Request body

OrganizationalUnitIdstring required
<p>The unique identifier (ID) of the OU that you want to rename. You can get the ID from the <a>ListOrganizationalUnitsForParent</a> operation.</p> <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for an organizational unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.</p>
Namestring
<p>The new name that you want to assign to the OU.</p> <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> that is used to validate this parameter is a string of any of the characters in the ASCII character range.</p>

Response

Success

Example response

{
  "OrganizationalUnit": {
    "Arn": "arn:aws:organizations::111111111111:ou/o-exampleorgid/ou-examplerootid111-exampleouid111",
    "Id": "ou-examplerootid111-exampleouid111",
    "Name": "AccountingOU"
  }
}