teachers setting the required attributes.result. The value will be an object containing the standard attributes for your new Teacher. The response code will be 201 if the Teacher was successfully created.{
"id": "488151fee5b697c36a6799e1",
"userId": "9a732f51318d0b8082e94ad5",
"address": {
"street": "Psr. Nasyidah no 17",
"rt": "do cupidatat veniam dolor",
"rw": null,
"subDistrict": "Herefordshire",
"district": "Wiltshire",
"city": "Polewali",
"province": "Kepulauan Riau",
"country": "Portugal",
"postalCode": "54902",
"location": null
},
"assignmentDate": "2024-03-29",
"birthDate": "2024-09-03",
"bloodType": "A",
"familyCardNumber": "Passenger Van",
"gender": "male",
"landline": null,
"nik": null,
"npwp": "fugiat enim",
"nuptk": null,
"phoneNumber": "(0296) 228447",
"ptkPosition": null,
"ptkStatus": null,
"ptkType": null,
"religion": "CHRISTIAN"
}curl --location --request POST 'https://sims.sman1samarinda.sch.id/api/teachers' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "488151fee5b697c36a6799e1",
"userId": "9a732f51318d0b8082e94ad5",
"address": {
"street": "Psr. Nasyidah no 17",
"rt": "do cupidatat veniam dolor",
"rw": null,
"subDistrict": "Herefordshire",
"district": "Wiltshire",
"city": "Polewali",
"province": "Kepulauan Riau",
"country": "Portugal",
"postalCode": "54902",
"location": null
},
"assignmentDate": "2024-03-29",
"birthDate": "2024-09-03",
"bloodType": "A",
"familyCardNumber": "Passenger Van",
"gender": "male",
"landline": null,
"nik": null,
"npwp": "fugiat enim",
"nuptk": null,
"phoneNumber": "(0296) 228447",
"ptkPosition": null,
"ptkStatus": null,
"ptkType": null,
"religion": "CHRISTIAN"
}'{
"success": true,
"message": "Success create a new teacher.",
"meta": {},
"errors": [],
"result": {
"id": "b3c08ec6aeefbfcac9beccb1",
"userId": "ab7c6f7f1981d2c0ae8a8c5f",
"address": {
"street": "Jl. Beruang",
"rt": "093",
"rw": "077",
"subDistrict": "Sempaja Utara",
"district": "Samarinda Utara",
"city": "Samarinda",
"province": "Kalimantan Timur",
"country": "ID",
"postalCode": "75124",
"location": [
"0.9426",
"126.7358"
]
},
"assignmentDate": "2025-03-20T07:53:35.241Z",
"birthDate": "2025-03-20T07:53:35.241Z",
"bloodType": "O",
"familyCardNumber": "7053140440592368",
"gender": "FEMALE",
"landline": "0541123456",
"nik": "7260973314817525",
"npwp": "3780264988305966",
"nuptk": "7305017638208550",
"phoneNumber": "6281234567890",
"ptkPosition": "Guru Matematika",
"ptkStatus": "PPPK",
"ptkType": "Guru",
"religion": "ISLAM"
}
}