Skip to main content
PATCH
/
v1
/
users
/
{id}
Update a User
curl --request PATCH \
  --url https://identity.sandbox.midaz.io/v1/users/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "john@example.com",
  "firstName": "John",
  "groups": [
    "admin-group",
    "midaz-viewer-group",
    "midaz-contributor-group"
  ],
  "lastName": "Doe"
}'
[
{
"email": "<string>",
"firstName": "<string>",
"groups": [
"<string>"
],
"lastName": "<string>"
}
]

Path Parameters

id
string
required

The unique identifier of the user you want to retrieve.

Body

application/json

Information used to update a user's information.

email
string
required

User's email address.

firstName
string
required

User's first name.

lastName
string
required

User's last name.

groups
string[]

Array of user role groups IDs. Role groups IDs can be retrieved through the List Groups endpoint.

Response

Indicates that the resource was successfully updated and the operation was completed as expected.

email
string
required

User's email address.

firstName
string
required

User's first name.

lastName
string
required

User's last name.

groups
string[]

Array of user role groups IDs. Role groups IDs can be retrieved through the List Groups endpoint.

I