Update Student Details
Update the students's gender and date of birth
Path parameters
-
userId
string(uuid) Required User UUID.
Body
Required
-
gender
string The gender of the user.
Values are
male
,female
,other
, orunknown
. Default value isunknown
. -
dateOfBirth
string(date) The date of birth of the user.
PATCH
/students/{userId}/details
curl \
--request PATCH 'https://connect.century.tech/api/v1/students/68f06c66-702a-4c26-b8c5-b6dc4f81f25d/details' \
--header "x-api-key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"gender":"male","dateOfBirth":"2010-07-01"}'
Request examples
{
"gender": "male",
"dateOfBirth": "2010-07-01"
}
Response examples (200)
{
"user": {
"upn": "Y89421121401A",
"roles": [
"student"
],
"emails": [
"john.doe@email.com"
],
"gender": "male",
"userId": "68f06c66-702a-4c26-b8c5-b6dc4f81f25d",
"fullName": "John Doe",
"lastName": "Doe",
"username": "john_doe",
"createdAt": "2024-01-01T12:00:00Z",
"firstName": "John",
"updatedAt": "2024-01-01T12:00:00Z",
"externalId": "External_ID_123",
"dateOfBirth": "2010-07-01"
}
}