---
title: "Update firm user mapping"
method: PUT
path: "/firmusers/{id}"
tags: ["Firm"]
---

# Update firm user mapping

`PUT /firmusers/{id}`

Updates a user mapping in the firm associated with the authenticated client.

## Path parameters

- `id` string, required

## Request body

- FirmUserDto — Represents a mapping between a user and a staff member in a firm.
  - `userId` string, nullable — Unique identifier of the associated user.
  - `staffId` string, nullable — Unique identifier of the associated staff member..

## Response `202`

When request is accepted. Returns a hypermedia 'Link' object of the user to be updated.

- Link
  - `id` string, nullable
  - `href` string, nullable
  - `relation` string, nullable
  - `method` string, nullable

## Other responses

- `400` — When staff or user has not been provided.
- `403` — When staff does not belong to the firm.
- `404` — When 'FirmUser' does not exist.

---

[API](https://skmtc.net/smokeball/apis/api.md) · [All operations](https://skmtc.net/smokeball/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smokeball/api/revisions/197984da9b42/schema)
