---
title: "Update User Details"
method: PUT
path: "/api/Users"
tags: ["Users"]
---

# Update User Details

`PUT /api/Users`

## Request

- Base URL: `https://apidocs.cflowapps.com` (the document declares no server; this is the origin it was published from)
- URL: `https://apidocs.cflowapps.com/api/Users`
- Auth: API key in header `X-Api-Key` and API key in header `X-User-Key`
- TypeScript: <https://skmtc.dev/cflowapps/apis/cflow-public-api/docs/api/Users/put.ts> (a function with typed inputs; its response is checked against the schema)

Sample request:
            
    PUT 
    {
         "LoginId":"john",
         "Name":"John D",
         "Email":"abc@xyz.com",
         "Roles":["user","Admin"],
         "EmployeeNo":"A1002",
         "Department":"Finance",
         "PhoneNumber":"9876543210",
         "MobileAppAccess":true
    }

## Request body

- UpdateUserReqDto
  - `loginId` string, required: Username of the user
  - `name` string, required: User full name
  - `email` string, email, required: User email id
  - `roles` string[], required: Role of the user
  - `employeeNo` string, required: Employee number of the user. Should be unique
  - `department` string, nullable: Department of the user
  - `phoneNumber` string, nullable: Phone number of the user
  - `mobileAppAccess` boolean: The user requires access to the mobile app

## Response `200`

Request Successful

- StatusResDto
  - `status` string, nullable

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Unable to Update user
- `500`: Internal Server Error

---

[API](https://skmtc.dev/cflowapps/apis/cflow-public-api.md) - [All operations](https://skmtc.dev/cflowapps/apis/cflow-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cflowapps/apis/cflow-public-api/revisions/af0dadd0ad10?raw)
