---
title: "Set agent user id"
method: PATCH
path: "/key_link/signing_keys/{keyId}/agent_user_id"
tags: ["Key Link"]
---

# Set agent user id

`PATCH /key_link/signing_keys/{keyId}/agent_user_id`

## Request

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

Can modify existing signing key id if the key is not enabled. The change done in background and will be visible once applied. If key is already enabled (after proof of ownership) the user cannot be changed.

## Path parameters

- `keyId` string, required

## Request body

- ModifySigningKeyAgentIdDto
  - `agentUserId` string, required: Id of user that represent agent servers which signs with the key

## Response `204`

Agent user id modification process has started in background.

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