/staff setting the required attributes.result. The value will be an object containing the standard attributes for your new Staff. The response code will be 201 if the Staff 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/staff' \
--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": "OK.",
"meta": {},
"errors": [],
"result": {
"address": null,
"father": null,
"mother": null,
"id": "695c6c90efe01024da1e01c2",
"userId": "695c6c90efe01024da1e01c0",
"nik": "1234567890654321",
"nip": "1234567890654321",
"taxNumber": null,
"taxName": null,
"familyCardNumber": null,
"religion": null,
"birthDate": null,
"birthPlace": null,
"phone": null,
"gender": "MALE",
"employmentStatus": null,
"nationality": null,
"maritalStatus": null,
"spouseName": null,
"spouseNip": null,
"spouseOccupation": null,
"specialNeeds": [],
"user": {
"name": "aleldul"
}
}
}