---
title: "Partially update user profile"
method: PATCH
path: "/api/accounts/profile/"
tags: ["accounts"]
---

# Partially update user profile

`PATCH /api/accounts/profile/`

## 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/accounts/profile/`
- Auth: one of:
  - API key in cookie `sessionid`
  - HTTP basic
  - HTTP bearer
- TypeScript: <https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/docs/api/accounts/profile/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update one or more fields of the currently authenticated user's profile. This
does not replace the entire profile, it only updates the fields provided in
the request.

The response will be the updated profile object.

**On the command line:**

```bash
blind accounts profile partial-update --data profile-update.json
```

## Request body

- PatchedDefaultUserProfile: Default serializer used for user profile. It will use these: * User fields * :ref:`user-hidden-fields-setting` setting * :ref:`user-public-fields-setting` setting * :ref:`user-editable-fields-setting` setting to automagically generate the required serializer fields.
  - `email` string, email
  - `id` string
  - `first_name` string: First name (optional)
  - `last_name` string: Last name (optional)

## Response `200`

- DefaultUserProfile: Default serializer used for user profile. It will use these: * User fields * :ref:`user-hidden-fields-setting` setting * :ref:`user-public-fields-setting` setting * :ref:`user-editable-fields-setting` setting to automagically generate the required serializer fields.
  - `email` string, email, required
  - `id` string, required
  - `first_name` string: First name (optional)
  - `last_name` string: Last name (optional)

---

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