user_info
PATCH /api/v2/user_info/
Changed onRetrieve and update the current authenticated user's profile and permissions.
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or API key in cookie sessionid
Request body
Patched User Info Request required
Serializer for the authenticated user's own profile and permissions.
first_name, string
last_name, string
language, union
otherinfo, string
notify_vote_code_requests, boolean
notify_program_events, boolean
notify_compo_starts, boolean
notify_competition_starts, boolean
Response
User Info required
Serializer for the authenticated user's own profile and permissions.
id, integer required
username, string required
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
first_name, string
last_name, string
email, string email required
user_permissions, string[] required
is_staff, boolean required
Designates whether the user can log into this admin site.
is_superuser, boolean required
Designates that this user has all permissions without explicitly assigning them.
date_joined, string date-time required
language, union
otherinfo, string
notify_vote_code_requests, boolean
notify_program_events, boolean
notify_compo_starts, boolean
notify_competition_starts, boolean
Changes
- info
added the new optional request property
otherinfo(media type: application/json) - info
added the new optional request property
otherinfo(media type: application/x-www-form-urlencoded) - info
added the new optional request property
otherinfo(media type: multipart/form-data)
1 more change in this revision
- info