---
title: "Update Eka User"
method: PATCH
path: "/cdr/v1/ekauser/{user_id}/"
tags: ["HIP Users API"]
---

# Update Eka User

`PATCH /cdr/v1/ekauser/{user_id}/`

### Overview
Update an existing Eka User. Only the fields included in the request body will be updated; all fields are optional.

**Endpoint:** `{{HOST}}/cdr/v1/ekauser/{user_id}/`

**Method:** `PATCH`

### Path Parameters

| Parameter | Type   | Description       | Required |
| --------- | ------ | ----------------- | -------- |
| user_id   | string | Eka User's Eka ID | Yes      |

## Path parameters

- `user_id` string, required

## Headers

- `auth` string, required

## Request body

- object
  - `firstname` string
  - `lastname` string
  - `mobile` string
  - `email` string, email
  - `auth_userid` string
  - `gender` 'M' | 'F' | 'O'
  - `dob` string, date
  - `is_admin` boolean
  - `seat_type` 'b' | 'p'
  - `persona` 'S' | 'D'
  - `doctor_ids` string[]
  - `partner_doctor_ids` string[]
  - `clinic_ids` string[]
  - `partner_clinic_ids` string[]
  - `partner_id` string

## Response `200`

OK - Eka User updated successfully

- object
  - `status` string
  - `ekaid` string

## Other responses

- `400` — Bad Request - Validation failed or user_id missing
- `404` — Eka User not found

---

[API](https://skmtc.net/eka/apis/eka-developer-apis.md) · [All operations](https://skmtc.net/eka/apis/eka-developer-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eka/eka-developer-apis/revisions/9ea23456f722/schema)
