manage:teacher permission.curl --location --request POST '/teachers/import' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": [
{
"name": "string",
"email": "user@example.com",
"password": "string",
"nik": "string",
"nip": "string",
"gender": "MALE",
"religion": "ISLAM",
"phone": "string",
"secondaryEmail": "user@example.com",
"role": "string"
}
],
"options": {
"assignRole": "string"
}
}'{
"success": true,
"message": "string",
"meta": {
"page": 0,
"limit": 0,
"total": 0
},
"errors": [
{
"code": "string",
"field": "string",
"message": "string"
}
],
"result": {
"success": [
{
"userId": "string",
"teacherId": "string",
"name": "string",
"email": "user@example.com",
"nik": "string",
"nip": "string",
"roleAssigned": "string"
}
],
"skipped": [
{
"data": {},
"reason": "duplicate_email",
"message": "string"
}
],
"failed": [
{
"data": {},
"reason": "server_error",
"message": "string"
}
],
"summary": {
"total": 0,
"successful": 0,
"skipped": 0,
"failed": 0
}
}
}