Accounts: insert

  • Inserts a new user account, requiring authorization with specified scope.

  • Utilizes a POST request to a designated endpoint with account name, type, and user ID.

  • The request body requires an Accounts resource and a successful response returns the same.

  • Authorization is necessary and details regarding authentication and authorization can be found in the provided documentation link.

Requires authorization

Inserts a new account for a user

Request

HTTP request

POST https://www.googleapis.com/mirror/v1/accounts/userToken/accountType/accountName

Parameters

Parameter name Value Description
Path parameters
accountName string The name of the account to be passed to the Android Account Manager.
accountType string Account type to be passed to Android Account Manager.
userToken string The ID for the user.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope

Request body

In the request body, supply an Accounts resource.

Response

If successful, this method returns an Accounts resource in the response body.