Set a method as the account's primary
Changed onPromotes the given method to the account's primary sign-in method. The account's canonical email is re-derived from the promoted method's identity. Refused for password stubs and converted anonymous methods, and for an identity whose domain is outside the project's allowed_email_domains.
Request
- Base URLhttps://api.volcano.dev
- AuthHTTP bearer
Path parameters
The method ID to promote
Response
The promoted method
A single sign-in method the account owns (password, an OAuth provider, or an active anonymous method). is_primary reflects the account's primary_method_id.
Unique method identifier
The kind of sign-in method
OAuth provider name; present only when type is oauth
The identity this method signs in to — a UUID for password/oauth methods, empty for anonymous methods.
The email of the method's identity (empty for anonymous)
Whether this is the account's primary sign-in method
When this method was last used to sign in, if ever
Example response
{
"provider": "google"
}Changes
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status
19 more changes in this revision
- breaking