---
title: "PUT /users/{id}"
method: PUT
path: "/users/{id}"
---

# PUT /users/{id}

`PUT /users/{id}`

## Request

- Base URL: `https://www.rcac.purdue.edu/api`
- URL: `https://www.rcac.purdue.edu/api/users/{id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/purdue/apis/rcac-api/docs/users/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Update an entry

## Path parameters

- `id` integer, required

## Request body `*/*`

- object
  - `name` string: User name
  - `api_token` string: API token
  - `puid` integer: Organization ID
  - `username` string: Username
  - `unixid` integer: Unix user ID
  - `datelastseen` string: Last time the user logged in
  - `roles` unknown[]: A list of Role IDs to apply to the user
    - unknown

## Response `202`

Successful entry modification

## Other responses

- `404`: Record not found
- `409`: Invalid data

---

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