Hi, I'm working on a ColdFusion project that will create user accounts and org units that match our AD structure. I am able to read data from the Provisioning API but now I'm trying to create an OU but get the error invalidInput="orgUnitParentOrgUnit". I have made sure that I'm POST'ing the request (below) to the URL https://apps-apis.google.com/a/feeds/orgunit/2.0/CustID and that the parent OU "Staff" does exist. (Same thing trying to create a root OU, like "Staff") >From their doc's it looks like I'm doing everything right but it doesn't work. http://code.google.com/googleapps/domain/gdata_provisioning_api_v2.0_developers_protocol.html#Creating_an_Organization_UnitAny ideas / help would be great, thanks!!
*ColdFusion Code:* <cfhttp url="https://apps-apis.google.com/a/feeds/orgunit/2.0/#VARIABLES.CustID#" method="POST" timeout="20"> <cfhttpparam type="header" name="Content-Type" value="application/atom+xml" /> <cfhttpparam type="header" name="Authorization" value="GoogleLogin auth=#VARIABLES.AuthToken#" /> <cfhttpparam type="body" value="#AtomRequest#" /> </cfhttp> *Atom Request:* <?xml version="1.0" encoding="UTF-8"?> <atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:apps="http://schemas.google.com/apps/2006"> <id>https://apps-apis.google.com/a/feeds/customer/2.0/CustID</id> <apps:property name="name" value="DO" /> <apps:property name="parentOrgUnitPath" value="Staff/DO" /> </atom:entry> *Request Result:* 400 Bad Request <?xml version="1.0" encoding="UTF-8"?> <AppsForYourDomainErrors> <error errorCode="1301" invalidInput="orgUnitParentOrgUnit" reason="EntityDoesNotExist" /> </AppsForYourDomainErrors> -- You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
