---
title: "Update API Key"
method: PUT
path: "/v1/user/api-keys/{api_key_id}"
tags: ["User"]
---

# Update API Key

`PUT /v1/user/api-keys/{api_key_id}`

## Request

- Base URL: `https://api.robosystems.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.robosystems.ai/v1/user/api-keys/{api_key_id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

## Path parameters

- `api_key_id` string, required

## Request body

- UpdateAPIKeyRequest: Request model for updating an API key.
  - `name` string, nullable: New name for the API key
  - `description` string, nullable: New description

## Response `200`

Successful Response

- APIKeyInfo: API key information response model.
  - `id` string, required: API key ID
  - `name` string, required: API key name
  - `description` string, nullable: API key description
  - `prefix` string, required: API key prefix for identification
  - `is_active` boolean, required: Whether the key is active
  - `last_used_at` string, nullable: Last used timestamp
  - `expires_at` string, nullable: Expiration timestamp
  - `created_at` string, required: Creation timestamp
  - `graph_id` string, nullable: Graph scope; null means account-wide

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Access denied
- `404`: Resource not found
- `422`: Validation Error
- `429`: Rate limit exceeded
- `500`: Internal server error

---

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