account

Sets the current user's mugshot.

post/api/account/mugshot

Request

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

Response

idinteger required
usernamestring required

Required. 30 characters or fewer. Letters, numbers and @/./+/-/_ characters

emailstring email required
display_namestring

Full name, will be shown in some places instead of username

is_staffboolean required

Designates whether the user can log into this admin site.

is_activeboolean required

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

Changes

    • breaking

      the request property format changed from uri to binary (media type: multipart/form-data)

    • breaking

      the request property format changed from uri to binary (media type: application/x-www-form-urlencoded)