我已按照 API 文档插入组织单位,但收到“错误请求”错误。这是我的代码片段。
function orgUnitCreate() {
var resource = {
name: first+' '+init,
parentOrgUnitPath: '/Students/'+unit,
blockInheritance: false
};
AdminDirectory.Orgunits.insert(resource, "myCustomerID redacted for privacy");//This is the line throwing the error
}
谢谢您的帮助
编辑:我的客户 ID 确实有错误,谢谢