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

# PUT /agentcc/api-keys/{id}/

`PUT /agentcc/api-keys/{id}/`

## Request

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

## Request body

- AgentccAPIKey
  - `id` string, uuid
  - `project` string, uuid, nullable
  - `user` string, uuid, nullable
  - `gateway_key_id` string
  - `key_prefix` string
  - `name` string, required
  - `owner` string
  - `status` 'active' | 'revoked' | 'expired'
  - `allowed_models` object
  - `allowed_providers` object
  - `metadata` object
  - `last_used_at` string, date-time, nullable
  - `expires_at` string, date-time, nullable
  - `organization` string, uuid
  - `workspace` string, uuid, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Response `200`

OK

- AgentccAPIKey
  - `id` string, uuid
  - `project` string, uuid, nullable
  - `user` string, uuid, nullable
  - `gateway_key_id` string
  - `key_prefix` string
  - `name` string, required
  - `owner` string
  - `status` 'active' | 'revoked' | 'expired'
  - `allowed_models` object
  - `allowed_providers` object
  - `metadata` object
  - `last_used_at` string, date-time, nullable
  - `expires_at` string, date-time, nullable
  - `organization` string, uuid
  - `workspace` string, uuid, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `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)
