更新OrganisationUnits當我嘗試使用下面的代碼GoogleApiException用的StatusCode NOTFOUND使用Google.Apis.Admin.Directory服務
OrgunitsResource.ListRequest orgUnitListRequest = googleAppsOAuthService.Orgunits.List(超級管理員來更新OrganisationUnit。客戶ID); orgUnitListRequest.Type = OrgunitsResource.ListRequest.TypeEnum.All; orgUnitListRequest.OrgUnitPath = orgUnitName; OrgUnits unitsResult = orgUnitListRequest.Execute(); List orgUnitResults = unitsResult.OrganizationUnits.ToList(); OrgUnit unit = new OrgUnit(); unit.Description =「一些描述」; unit.ParentOrgUnitPath = unitsResult.OrganizationUnits [2] .ParentOrgUnitPath; unit.Name = unitsResult.OrganizationUnits [2] .Name; //更新orgunit List list = new List(); list.Add(unit.Name); googleAppsOAuthService.Orgunits.Update(unit,superadmin.customerId, list).Execute();
但它引發了一個GoogleApiException與statuscode.NotFound?誰能幫我這個?