---
title: "PUT /model-hub/api-keys/{id}/"
method: PUT
path: "/model-hub/api-keys/{id}/"
tags: ["model-hub"]
---

# PUT /model-hub/api-keys/{id}/

`PUT /model-hub/api-keys/{id}/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/api-keys/{id}/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- ApiKeyRequest
  - `provider` string, required
  - `key` string, nullable
  - `config_json` object, nullable

## Response `200`

OK

- ApiKeyResponse
  - `id` string, uuid
  - `provider` string, required
  - `organization` string, uuid, nullable
  - `masked_actual_key` object, nullable

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
