Request
Body Params application/json
{
"specialized_in": "Backend Development"
}
Request Code Samples
curl --location --request PUT 'http://127.0.0.1:80/api/accounts/instructors/3/' \
--header 'Content-Type: application/json' \
--data-raw '{
// "username": "instructor1",
// "email": "instructor1@gmail.com",
// "first_name": "instructor1",
// "second_name": "instructor1",
// "third_name": "instructor1",
// "fourth_name": "instructor1",
// "last_name": "instructor1",
// "gender": "m",
// "birth_date": "2002-02-02",
// "city": "Cairo",
// "address": "Address",
// "phone": "+201111111111",
// "is_active": true,
// "is_staff": false,
// "is_superuser": false,
// "date_joined": "2024-03-16T20:48:01.489539Z", => Can'\''t Update this Field
// "user_type": 2, => Can'\''t Update this Field
"specialized_in": "Backend Development"
}'
Responses
application/json {
"url": "http://127.0.0.1:80/api/accounts/instructors/3/",
"id": 3,
"username": "instructor1",
"email": "instructor1@gmail.com",
"first_name": "instructor1",
"second_name": "instructor1",
"third_name": "instructor1",
"fourth_name": "instructor1",
"last_name": "instructor1",
"gender": "m",
"birth_date": "2002-02-02",
"city": "Cairo",
"address": "Address",
"phone": "+201111111111",
"is_active": true,
"is_staff": false,
"is_superuser": false,
"date_joined": "2024-03-16T20:48:01.489539Z",
"user_type": 2,
"specialized_in": "Backend Development"
}
Modified at 2024-03-16 21:19:13