---
title: "Edit Sub-Account API Key"
method: POST
path: "/api/v4/sub-account/api-key/edit"
tags: ["Sub-Account API Keys"]
---

# Edit Sub-Account API Key

`POST /api/v4/sub-account/api-key/edit`

The endpoint updates an existing [sub-account](/glossary#sub-account) API key.

<Warning>
Rate limit: 1000 requests/10 sec.
</Warning>

<Note>
The API does not cache the response.
</Note>

## Request body

- object
  - `apiKeyId` string, required — ID of the API key to update
  - `title` string, required — New title for the API key
  - `urls` object[], required — Array of URL objects for API key restrictions
    - `url` string
    - `enable` boolean

## Response `200`

API key updated successfully

- object

## Other responses

- `400` — Request validation failed

---

[API](https://skmtc.net/whitebit/apis/whitebit-private-http-api-v4.md) · [All operations](https://skmtc.net/whitebit/apis/whitebit-private-http-api-v4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/whitebit/whitebit-private-http-api-v4/revisions/76c9def9942f/schema)
