admin

Staff viewset for managing users.

put/api/v2/admin/users/{id}/

Request

  • The document declares no server URL.
  • Auth: one of:
    • API key in header Authorization
    • API key in cookie sessionid

Path parameters

idinteger required

A unique integer value identifying this user.

Request body

usernamestring required

Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.

first_namestring
last_namestring
is_activeboolean

Designates whether this user should be treated as active. Unselect this instead of deleting accounts.

Response

idinteger required
usernamestring required

Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.

first_namestring
last_namestring
emailstring email required
user_permissionsstring[] required
is_superuserboolean required

Designates that this user has all permissions without explicitly assigning them.

date_joinedstring date-time required
is_activeboolean

Designates whether this user should be treated as active. Unselect this instead of deleting accounts.

is_staffboolean required

Designates whether the user can log into this admin site.

is_systemboolean required

Changes

    • warning

      removed the request property (media type: application/json)

    • warning

      removed the request property (media type: application/x-www-form-urlencoded)

    • warning

      removed the request property (media type: multipart/form-data)

    • breaking

      the response property's maxLength was unset from 254 for the response status

    • warning

      removed the request property (media type: application/json)

    • warning

      removed the request property (media type: application/x-www-form-urlencoded)

    • warning

      removed the request property (media type: multipart/form-data)

    • info

      the response optional property became read-only for the status

    • info

      the response property became required for the status