I have a Google Apps Free Account with one primary domain and an secondary domain.
Recently I came across Google Admin SDK Directory API, where the option to switch the primary domains is available through the API.
Directory API - Customer Update
I used the "Try Now" section to use the API, I did log in and I authorized with appropriate scopes and provided following properties,
customerKey - my_customer
in Request Body
{"customerDomain":"domainB.com"}
but got following response,
{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalid",
"message": "Invalid Input"
}
],
"code": 400,
"message": "Invalid Input"
}
}
Any idea on this ?