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

# Update user Details.

`PUT /v1/kratos/user`

## Request body

- object
  - `email` string
  - `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

---

[API](https://skmtc.net/improwised/apis/untitled-api.md) · [All operations](https://skmtc.net/improwised/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/improwised/untitled-api/revisions/01dc7eb2e8bc/schema)
