Skip to main content

Update User

PUT 

/v1/users/:id

Update a user’s supported profile, role, organization, or active state, subject to caller and organization permissions. Requires users.write.

Request and response fields at a glance
  • Path parameters: id (integer, required).
  • Request body (application/json): name (string), role (string), organizationId (number), isActive (boolean), nameAr (mixed), nameEn (mixed), phone (mixed), phoneCountry (mixed).
  • 200 response (application/json): id (number, required), email (string, required), name (string), nameAr (mixed), nameEn (mixed), phone (mixed), phoneCountry (mixed), role (string, required), organizationId (number), logoUrl (string), status (string, required), lastSignInAt (mixed, required), createdAt (string, required), updatedAt (string, required), organization (object), permissions (array).

Request​