Accounts: insert
Stay organized with collections
Save and categorize content based on your preferences.
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).
Request body
In the request body, supply an Accounts resource.
Response
If successful, this method returns an Accounts resource in the response body.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["Inserts a new user account, requiring authorization with specific scope."],["The request utilizes the POST method and includes path parameters for account name, type, and user ID."],["An \"Accounts resource\" is provided in the request body and returned in the response if successful."]]],[]]