v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1455233317.4 KB

Creates an organizational unit (OU) within a root or parent OU. An OU is a container for accounts that enables you to organize your accounts to apply policies according to your business requirements. The number of levels deep that you can nest OUs is dependent upon the policy types enabled for that root. For service control policies, the limit is five.

For more information about OUs, see Managing Organizational Units in the Organizations User Guide.

If the request includes tags, then the requester must have the organizations:TagResource permission.

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

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

Headers

X-Amz-Target'AWSOrganizationsV20161128.CreateOrganizationalUnit' required

Request body

ParentIdstring required
<p>The unique identifier (ID) of the parent root or OU that you want to create the new OU in.</p> <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for a parent ID string requires one of the following:</p> <ul> <li> <p> <b>Root</b> - A string that begins with "r-" followed by from 4 to 32 lowercase letters or digits.</p> </li> <li> <p> <b>Organizational unit (OU)</b> - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.</p> </li> </ul>
Namestring required

The friendly name to assign to the new OU.

Response

Success

Example response

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