Update a User
put
/api/v2/users/{id}/
Make a PUT or PATCH request to this resource to update this user. The following fields may be modified:
username: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. (string, required)first_name: (string, default="")last_name: (string, default="")email: (string, default="")is_superuser: Designates that this user has all permissions without explicitly assigning them. (boolean, default=False)is_system_auditor: (boolean, default=False)password: Write-only field used to change the password. (string, default="")
For a PUT request, include all fields in the request.
Request
Supported Media Types
- application/json
Path Parameters
Query Parameters
-
search(optional): string
A search term.
Root Schema : schema
Type:
Show Source
object-
email(optional):
string
-
first_name(optional):
string
-
is_superuser(optional):
boolean
Designates that this user has all permissions without explicitly assigning them.
-
is_system_auditor(optional):
boolean
-
last_name(optional):
string
-
password(optional):
string
Write-only field used to change the password.
-
username:
string
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.