- Accounts
- Authentication
- Exams
- Levels
Update
PUT
/api/accounts/admins/8/
Request
Body Params application/json
address
string
required
gender
string
required
Example
{
"address": "Maadi",
"gender": "f" // 'f'=Female, 'm':Male
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://127.0.0.1:80/api/accounts/admins/8/' \
--header 'Content-Type: application/json' \
--data-raw '{
"address": "Maadi",
"gender": "f" // '\''f'\''=Female, '\''m'\'':Male
}'
Responses
🟢200Update_Ex01
application/json
Body
url
string
required
id
integer
required
username
string
required
email
string
required
first_name
string
required
second_name
string
required
third_name
string
required
fourth_name
string
required
last_name
string
required
gender
string
required
birth_date
string
required
city
string
required
address
string
required
phone
string
required
is_active
boolean
required
is_staff
boolean
required
is_superuser
boolean
required
date_joined
string
required
user_type
integer
required
Example
{
"url": "http://127.0.0.1:80/api/accounts/admins/2/",
"id": 2,
"username": "admin1",
"email": "admin1@gmail.com",
"first_name": "admin1",
"second_name": "admin1",
"third_name": "admin1",
"fourth_name": "admin1",
"last_name": "admin1",
"gender": "m",
"birth_date": "2002-02-02",
"city": "Cairo",
"address": "Maadi",
"phone": "+201111111111",
"is_active": true,
"is_staff": true,
"is_superuser": true,
"date_joined": "2024-03-16T19:34:08.449723Z",
"user_type": 1
}
🟠404Update_Ex02
🟢200Update_Ex03
Modified at 2024-03-16 21:19:13