---
title: "Set a method as the account's primary"
method: POST
path: "/auth/user/methods/{methodId}/promote"
tags: ["Authentication"]
---

# Set a method as the account's primary

`POST /auth/user/methods/{methodId}/promote`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/auth/user/methods/{methodId}/promote`
- Auth: HTTP bearer

Promotes 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`.

## Path parameters

- `methodId` string, uuid, required

## Response `200`

The promoted method

- AuthMethodSummary: 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.
  - `id` string, uuid, required: Unique method identifier
  - `type` 'password' | 'oauth' | 'anonymous', required: The kind of sign-in method
  - `provider` string: OAuth provider name; present only when type is oauth
  - `identity_id` string, required: The identity this method signs in to — a UUID for password/oauth methods, empty for anonymous methods.
  - `email` string, required: The email of the method's identity (empty for anonymous)
  - `is_primary` boolean, required: Whether this is the account's primary sign-in method
  - `last_used_at` string, date-time: When this method was last used to sign in, if ever
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: This method cannot be set as primary (password stub, converted anonymous method, or unverified email), or the method id is malformed
- `401`: Not authenticated
- `403`: The promoted identity's email domain is not in the project's allowed_email_domains
- `404`: Method not found

## Changes

- **2026-09-19** `3a6f365f3f35`: 5 breaking, 17 info
  - the response's body type changed from no type to `object` for status `200`
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `401`
  - the response's body type changed from no type to `object` for status `403`
  - …18 more
- **2026-08-27** `bb44e98aba2e`: 14 breaking, 5 warning, 1 info
  - the response's body type changed from `object` to no type for status `200`
  - the response's body type changed from `object` to no type for status `400`
  - the response's body type changed from `object` to no type for status `401`
  - the response's body type changed from `object` to no type for status `404`
  - …16 more
- **2026-07-27** `bb52784e098a`: 3 info
  - added the optional property `code` to the response with the `400` status
  - added the optional property `code` to the response with the `401` status
  - added the optional property `code` to the response with the `404` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/auth/user/methods/:methodId/promote/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
