Create RW

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

Body : JSON

{
"rw_nama": "001",
"rw_ketua": "budi"
}

Response : 200 OK

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

Response : 422 UNPROCESSABLE CONTENT

{
"error": {
"rw_nama": ["Nama RW Tidak boleh kosong"],
"rw_ketua": ["Nama Ketua RW Tidak boleh kosong"]
}
}

Response : 500 ERROR

Internal Server Error