---
title: "Update user Details."
method: PUT
path: "/v1/kratos/user"
tags: ["User"]
---

# Update user Details.

`PUT /v1/kratos/user`

## Request

- Base URL: `https://127.0.0.1/api`
- URL: `https://127.0.0.1/api/v1/kratos/user`
- Auth: none declared

## Request body

- object
  - `first_name` string
  - `last_name` string

## Response `200`

- object
  - `data` object
    - `created_at` string
    - `email` string
    - `first_name` string
    - `id` string
    - `img_key` string
    - `kratos_id` NullString: var s NullString err := db.QueryRow("SELECT name FROM foo WHERE id=?", id).Scan(&s) ... if s.Valid { use s.String } else { NULL value }
      - `String` string
      - `Valid` boolean
    - `last_name` string
    - `roles` string
    - `updated_at` string
    - `username` string
  - `status` string

## Other responses

- `400`: Fail due to resource not exists
- `401`: Server understand request but refuse to authorize it
- `500`: Unexpected error occurred

## Changes

- **2024-10-07** `bd5d63501342`: 1 info
  - endpoint added
- **2024-02-08** `a2179d15ad2f`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/improwised/apis/improwised-technologies-pvt-ltd-jovvix-api/changes/v1/kratos/user/put.md)

---

[API](https://skmtc.dev/improwised/apis/improwised-technologies-pvt-ltd-jovvix-api.md) - [All operations](https://skmtc.dev/improwised/apis/improwised-technologies-pvt-ltd-jovvix-api/llms.txt) - [OpenAPI document](https://skmtc.dev/improwised/apis/improwised-technologies-pvt-ltd-jovvix-api/revisions/15ae2821b57b?raw)
