---
title: "Partially update a User"
method: PATCH
path: "/api/users/{id}/"
tags: ["users"]
---

# Partially update a User

`PATCH /api/users/{id}/`

## Request

- Base URL: `https://docs.blindinsight.io` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.blindinsight.io/api/users/{id}/`
- Auth: one of:
  - API key in cookie `sessionid`
  - HTTP basic
  - HTTP bearer
- TypeScript: <https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/docs/api/users/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update an existing user with only the specified fields.

The response will be the updated user object.

**On the command line:**

```bash
blind users partial-update --id "<user-id>" --data user-update.json
```

## Path parameters

- `id` string, required

## Request body

- PatchedUser: HyperlinkedModelSerializer with `id` as the first field.
  - `id` string
  - `url` string, uri
  - `last_login` string, date-time, nullable
  - `is_superuser` boolean: Designates that this user has all permissions without explicitly assigning them.
  - `email` string, email
  - `is_staff` boolean: Designates whether the user can log into this admin site.
  - `is_active` boolean: Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
  - `date_joined` string, date-time
  - `first_name` string: First name (optional)
  - `last_name` string: Last name (optional)
  - `settings` object

## Response `200`

- User: HyperlinkedModelSerializer with `id` as the first field.
  - `id` string, required
  - `url` string, uri, required
  - `last_login` string, date-time, nullable
  - `is_superuser` boolean: Designates that this user has all permissions without explicitly assigning them.
  - `email` string, email, required
  - `is_staff` boolean: Designates whether the user can log into this admin site.
  - `is_active` boolean: Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
  - `date_joined` string, date-time
  - `first_name` string: First name (optional)
  - `last_name` string: Last name (optional)
  - `settings` object

---

[API](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api.md) - [All operations](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/revisions/0ac902401cea?raw)
