---
title: "Modify the signing keyId"
method: PATCH
path: "/key_link/signing_keys/{keyId}"
tags: ["Key Link"]
---

# Modify the signing keyId

`PATCH /key_link/signing_keys/{keyId}`

## Request

- Base URL: `https://api.fireblocks.io/v1`
- URL: `https://api.fireblocks.io/v1/key_link/signing_keys/{keyId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/fireblocks/apis/fireblocks-api/docs/key_link/signing_keys/:keyId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Allows assigning the signing key to a vault account, if it hasn't been assigned to any other vault accounts yet.

## Path parameters

- `keyId` string, required

## Request body

- ModifySigningKeyDto
  - `vaultAccountId` number, required

## Response `200`

Modified signing key data

- SigningKeyDto
  - `keyId` string, required: External signing key id set by Fireblocks.
  - `signingDeviceKeyId` string, required: The ID, name or label of the key specified on the customer's signing device.
  - `publicKeyPem` string, required: PEM encoded public key
  - `algorithm` string, required: Algorithm and curve used for the signature. Can be: ECDSA_SECP256K1 or EDDSA_ED25519
  - `enabled` boolean, required: True if the signing key is enabled
  - `vaultAccountId` number, nullable, required: Id of the vault account which this key is linked to
  - `agentUserId` string, required: Id of user that represent agent servers that can sign with the key
  - `createdAt` number, required: Creation date (timestamp) in milliseconds.

## Other responses

- `default`: Error Response

---

[API](https://skmtc.dev/fireblocks/apis/fireblocks-api.md) - [All operations](https://skmtc.dev/fireblocks/apis/fireblocks-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireblocks/apis/fireblocks-api/revisions/4eba9965659a?raw)
