Create RT

To create the data in the specified collection with the specified parameters. When a JSON object is saved, the object properties are automatically added to the collection you specified.

Method : POST

URL : /wiladm/dusun/(ID)/rw/(ID)/rt

Body : JSON

{
"rt_nama": "001",
"rt_ketua": "budi"
}

Response : 200 OK

{
"message": "Success create RT",
"status": 200
}

Response : 422 UNPROCESSABLE CONTENT

{
"error": {
"rt_nama": ["Nama RT Tidak boleh kosong"],
"rt_ketua": ["Nama Ketua RT Tidak boleh kosong"]
}
}

Response : 500 ERROR

Internal Server Error