PATCH
/api/v1/parents/{id}
curl \
-X PATCH http://127.0.0.1:3000//api/v1/parents/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"parent":{"nama_ayah":"Budi","nama_ibu":"Siti","nik_ayah":1234567890123456,"nik_ibu":1234567890123456,"pendidikan_ayah":"Sarjana","pendidikan_ibu":"Sarjana","tanggal_lahir_ayah":"1990-01-01","tanggal_lahir_ibu":"1990-01-01","pekerjaan_ayah":"PNS","pekerjaan_ibu":"PNS"}}'
Request example
{
"parent": {
"nama_ayah": "Budi",
"nama_ibu": "Siti",
"nik_ayah": 1234567890123456,
"nik_ibu": 1234567890123456,
"pendidikan_ayah": "Sarjana",
"pendidikan_ibu": "Sarjana",
"tanggal_lahir_ayah": "1990-01-01",
"tanggal_lahir_ibu": "1990-01-01",
"pekerjaan_ayah": "PNS",
"pekerjaan_ibu": "PNS"
}
}