dashboard

Update user information

Changed on

Updates specific fields of a user. Mentors can only update users from the same itinerary, can only update registered users, and cannot modify the role or status fields. Mentors can update their own information except for the role and status fields.

patch/api/v1/dashboard/users/{id}

Request

  • The document declares no server URL.
  • Auth: API key in cookie authToken

Path parameters

idstring required
Example:b6z2od3ut12qs0ilem6njgjp

Request body

dnistring
emailstring email
namestring
passwordstring
role'ADMIN' | 'MENTOR' | 'REGISTERED'
status'ACTIVE' | 'PENDING' | 'BLOCKED'
deletedAtstring date-time nullable
itineraryIdstring

Example request

{
  "email": "user@example.cat",
  "name": "John Doe"
}

Response

User has been updated

Changes