---
title: "Set Primary Api Account"
method: POST
path: "/v1/web/api-accounts/{account_id}/set-primary"
tags: ["Web API Accounts"]
---

# Set Primary Api Account

`POST /v1/web/api-accounts/{account_id}/set-primary`

## Request

- Base URL: `https://api.hydraai.ru` (the document declares no server; this is the origin it was published from)
- URL: `https://api.hydraai.ru/v1/web/api-accounts/{account_id}/set-primary`
- Auth: none declared

## Path parameters

- `account_id` integer, required

## Response `200`

Successful Response

- ApiAccountPublic
  - `id` integer, required
  - `user_balance_id` string, required
  - `label` string, required
  - `is_primary` boolean, required
  - `balance` string, required
  - `total_balance_added` string, required
  - `free_requests` integer, required
  - `user_type` string, required
  - `ban` boolean, required
  - `key_id` integer, nullable
  - `key_label` string, nullable
  - `key_masked` string, nullable
  - `key_active` boolean, nullable
  - `average_rpm` number, nullable
  - `requests_per_minute` integer, nullable
  - `total_cost_request_last_hour` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-03** `d93723ae9d1e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hydraai/apis/hydraai-api/changes/v1/web/api-accounts/:account_id/set-primary/post.md)

---

[API](https://skmtc.dev/hydraai/apis/hydraai-api.md) - [All operations](https://skmtc.dev/hydraai/apis/hydraai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hydraai/apis/hydraai-api/revisions/42d3d2735311?raw)
