---
title: "Update API Key using API Key ID"
method: PUT
path: "/api_keys/{api_key_id}"
tags: ["API Management"]
---

# Update API Key using API Key ID

`PUT /api_keys/{api_key_id}`

This endpoint allows you to update the allowed scopes and IP address associated with an API key using the API key id (api_key_id)

## Path parameters

- `api_key_id` string, required

## Headers

- `on-behalf-of` string, required

## Request body

- object
  - `name` string
  - `scopes` string[]
  - `ip_address` string[]

## Response `200`

OK

- object
  - `api_key_id` integer
  - `name` string
  - `scopes` string[]
  - `ip_address` string[]

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/netcorecloud/apis/email-api-v6.md) · [All operations](https://skmtc.dev/netcorecloud/apis/email-api-v6/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netcorecloud/email-api-v6/revisions/73f83bc2eff8/schema)
