Request
Body Params application/json
{
"address": "Maadi",
"gender": "f"
}
Request Code Samples
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
application/json {
"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
}
Modified at 2024-03-16 21:19:13