Skip to main content
PATCH
Error

Autorizaciones

Authorization
string
header
requerido

Bearer authentication. Send Authorization: Bearer .

Parámetros de ruta

id
string
requerido

User ID

Cuerpo

application/json

User Update Input

UserUpdateInput payload

email
string
requerido

User's email address.

Ejemplo:

"john@example.com"

firstName
string
requerido

User's first name.

Ejemplo:

"John"

lastName
string
requerido

User's last name.

Ejemplo:

"Doe"

countryCode
string

User's ISO 3166-1 alpha-2 country code. Optional; omit to leave the stored value unchanged, but it must accompany a phone in the same payload — Casdoor validates the number against it and rejects an unresolvable pair with an opaque upstream error.

Ejemplo:

"BR"

groups
string[]

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

Ejemplo:
phone
string

User's phone number in E.164 format. Optional; omit to leave the stored phone unchanged. Must be accompanied by countryCode in the same payload.

Ejemplo:

5511998888777

Respuesta