Update a user

How to update your user's reference.

Use the following endpoint to update the reference of a user by their userId.

Request Endpoint: reference

PUT /api/users/{userId}
ParameterParam TypeDescriptionData TypeMandatory
userIdPathThe ID of the user whose reference you want to updateString
referenceBodyThe new reference textString

Request Body:

{ "reference": "Updated reference" }

Response Body:

{ "success": true, "result": { "id": "07cc0aa5-0f98-4a4e-9c55-686124e0f0e4", "reference": "Updated reference", "createdAt": "2023-12-06T14:53:13.985862" } }

Did this page help you?