---
title: "Update an existing Key"
method: PUT
path: "/apiops/projects/{projectName}/keys/{keyName}/"
tags: ["Key"]
---

# Update an existing Key

`PUT /apiops/projects/{projectName}/keys/{keyName}/`

## Request

- Base URL: `http://167.86.118.166:32080`
- URL: `http://167.86.118.166:32080/apiops/projects/{projectName}/keys/{keyName}/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apinizer/apis/apinizer-management-apis/docs/apiops/projects/:projectName/keys/:keyName/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates an existing Key and deploys it to environments.

## Path parameters

- `projectName` string, required
- `keyName` string, required

## Query parameters

- `jwkUpdateAction` 'NULLIFY' | 'UPDATE'
- `updateScope` 'SAME_PROJECT' | 'ALL_PROJECTS'

## Request body

- KeyUpdateDTO
  - `name` string
  - `description` string
  - `keyType` 'SECRET_KEY' | 'PRIVATE_KEY' | 'PUBLIC_KEY'
  - `algorithm` 'AES' | 'DES' | 'DESede' | 'RSA'
  - `cryptoKeyInfoEnvironmentList` KeyEnvironmentDTO[]
    - `environmentName` string
    - `alias` string
    - `source` string

## Response `200`

successful operation!

- ApiOpsResponseKey
  - `status` 'SUCCESS' | 'FAILURE'
  - `resultMessage` string
  - `resultList` KeyManagementDTO[]
    - `id` string
    - `name` string
    - `description` string
    - `projectId` string
    - `keyType` 'SECRET_KEY' | 'PRIVATE_KEY' | 'PUBLIC_KEY'
    - `algorithm` 'AES' | 'DES' | 'DESede' | 'RSA'
    - `cryptoKeyInfoEnvironmentList` KeyEnvironmentDTO[]
      - `environmentName` string
      - `alias` string
      - `source` string
  - `resultCount` integer

## Other responses

- `401`: not authorized for this operation!
- `500`: internal error!

## Changes

- **2026-10-20** `d1a546deccf0`: 5 breaking
  - added the new path request parameter `keyName`
  - request property `algorithm` was restricted to a list of enum values
  - request property `keyType` was restricted to a list of enum values
  - the `algorithm` request property type changed from `object` to `string`
  - …1 more
  - …this revision’s changelog is incomplete
- **2026-08-11** `9ae232e55479`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/apinizer/apis/apinizer-management-apis/changes/apiops/projects/:projectName/keys/:keyName/put.md)

---

[API](https://skmtc.dev/apinizer/apis/apinizer-management-apis.md) - [All operations](https://skmtc.dev/apinizer/apis/apinizer-management-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/apinizer/apis/apinizer-management-apis/revisions/e083046b24cd?raw)
