---
title: "Replace a user"
method: PUT
path: "/Users/{id}"
---

# Replace a user

`PUT /Users/{id}`

## Request

- Base URL: `https://app.perk.com/api/v2/scim`
- URL: `https://app.perk.com/api/v2/scim/Users/{id}`
- Auth: API key in header `Authorization`

Replaces all of a user's attributes.

## Path parameters

- `id` integer, required

## Response `201`

Returns `201 Created` and the user resource.

## Other responses

- `400`: Returns `400 Bad request` and a SCIM error describing the invalid attribute.
- `404`: Returns `404 Not found` and a SCIM error when no user matches the ID.

---

[API](https://skmtc.dev/perk/apis/scim-server.md) - [All operations](https://skmtc.dev/perk/apis/scim-server/llms.txt) - [OpenAPI document](https://skmtc.dev/perk/apis/scim-server/revisions/cd90f1acd9e2?raw)
