---
title: "Update User Details"
method: POST
path: "/v2/users/{userId}/userDetailsUpdate"
tags: ["Users"]
---

# Update User Details

`POST /v2/users/{userId}/userDetailsUpdate`

Update the profile details for the given user

When updating Payor users with the role of payor.master\_admin a verificationCode is required

## Path parameters

- `userId` string, uuid, required

## Request body

- UserDetailsUpdateRequest — <p>All properties are optional</p> <p>Only provided properties will be updated</p> <p>Use null to null out a property that is allowed to be nullable</p>
  - `primaryContactNumber` string, nullable — The main contact number for the user
  - `secondaryContactNumber` string, nullable — The secondary contact number for the user
  - `firstName` string, nullable
  - `lastName` string, nullable
  - `email` string, email, nullable — the email address of the user
  - `smsNumber` string, nullable — The phone number of a device that the user can receive sms messages on
  - `mfaType` 'SMS' | 'YUBIKEY' | 'TOTP', nullable — The type of the MFA device
  - `verificationCode` string, nullable — <p>Optional property that MUST be suppied when manually verifying a user</p> <p>The user's smsNumber is registered via a separate endpoint and an OTP sent to them</p>

## Response `204`

request completed okay

## Other responses

- `400` — Invalid request. See Error message payload for details of failure
- `401` — Invalid access token. May be expired or invalid
- `403` — The authentication does not have permissions to access the resource This usually occurs when there is a valid authentication instance (client or user) but they do not have the required permissions
- `404` — The resource was not found or is no longer available
- `409` — The request contained data that would result in a duplicate value

---

[API](https://skmtc.net/velopaymentsapi/apis/velo-payments-apis.md) · [All operations](https://skmtc.net/velopaymentsapi/apis/velo-payments-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/velopaymentsapi/velo-payments-apis/versions/05c3f09fc50a/schema)
