---
title: "Update EMR user profile"
method: PATCH
path: "/profiles/v1/emr-user/{oid}"
tags: ["Patient"]
---

# Update EMR user profile

`PATCH /profiles/v1/emr-user/{oid}`

Updates an EMR user profile with validated and normalized data.

**Authorization Rules**:
  - Users can update their own profile.
  - Admins can update any profile within their workspace.

**Name Handling**:
  - If `fln` is provided, it will be split into `fn`, `mn`, `ln`.
  - If updating name, ensure either `fn` or `fln` is provided.

## Path parameters

- `oid` string, required

## Headers

- `client-id` string, required

## Request body

- object
  - `mobile` string — Mobile number in E.164 format
  - `email` string, email
  - `gen` 'M' | 'F' | 'O' — Gender
  - `dob` string, date
  - `fn` string — First name
  - `mn` string — Middle name
  - `ln` string — Last name
  - `fln` string — Full name
  - `bg` 'A+' | 'A-' | 'B+' | 'B-' | 'AB+' | 'AB-' | 'O+' | 'O-' — Blood group
  - `s` string — Salutation
  - `extras` object — Additional arbitrary data as JSON

## Response `200`

Profile updated successfully

- object
  - `message` string

## Other responses

- `400` — Validation or request error

---

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