---
title: "Api Key Update Route"
method: PUT
path: "/api_keys/{id}"
tags: ["api_keys"]
---

# Api Key Update Route

`PUT /api_keys/{id}`

## Request

- Base URL: `https://api.robopost.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.robopost.app/api_keys/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- APIKeyUpdate
  - `name` string

## Response `200`

Successful Response

- APIKeyRead
  - `_id` string
  - `team_id` string
  - `user_id` string
  - `name` string, required
  - `key` string
  - `is_deleted` boolean
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `404`: API key not found
- `422`: Validation Error

---

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