---
title: "Update user profile"
method: PUT
path: "/api/accounts/profile/"
tags: ["accounts"]
---

# Update user profile

`PUT /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/put.ts> (a function with typed inputs; its response is checked against the schema)

Replace the currently authenticated user's profile with the data provided in
the request. Fields not specified in the request will be dropped.

The response will be the updated profile object.

**On the command line:**

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

## Request body

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

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