Method: orgunits.insert

使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。

添加单位部门。

HTTP 请求

POST https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/orgunits

网址采用 gRPC 转码语法。

路径参数

参数
customerId

string

客户的 Google Workspace 帐号的唯一 ID。作为帐号管理员,您还可以使用 my_customer 别名代表您帐号的 customerIdcustomerId 也会作为用户资源的一部分返回。

请求正文

请求正文包含一个 OrgUnit 实例。

响应正文

如果成功,响应正文将包含一个新创建的 OrgUnit 实例。

授权范围

需要以下 OAuth 范围之一:

  • https://apps-apis.google.com/a/feeds/policies/
  • https://www.googleapis.com/auth/admin.directory.orgunit

如需了解详情,请参阅 OAuth 2.0 概览