2015-12-19 60 views
0

我拥有一个具有一个主域名和一个二级域名的Google Apps免费帐户。Google Apps Directory API - 更改具有二级域名的主域名

最近我遇到了Google Admin SDK Directory API,其中通过API提供了切换主域的选项。

Directory API - Customer Update

我用了 “立即试用” 部分使用API​​,我没有登录并授权我用适当的范围,并提供以下性能,

customerKey - my_customer

in 请求正文

{ “customerDomain”: “domainB.com”}

,但得到如下回应,

{ 
"error": { 
    "errors": [ 
    { 
    "domain": "global", 
    "reason": "invalid", 
    "message": "Invalid Input" 
    } 
    ], 
    "code": 400, 
    "message": "Invalid Input" 
} 
} 

对此有何想法?

回答

1

Google Apps免费版/标准版does not support secondary domains因此不支持更改主/辅域。

此外,如果您使用Google注册域名,主域名更改不起作用,您需要先转移到其他域名注册商。

请参阅Google's help article了解其他注意事项。

+0

这个二级域名是在最初的几天里增加的,而且我已经尝试了与另一个账号相同的功能,并且工作正常。但是这个API并不知道实际的问题 –

+0

这个API不适用于标准版本。 –

+0

我们升级到Google Apps for Work并尝试使用,仍然没有差异同样的错误。 –