Update Dana Desa

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

Method : POST

URL : /dana-desa/(ID)

Body : JSON

{
"jenis": "1",
"tahun": "2022",
"uraian": "Pendapatan",
"anggaran": "1000000",
"realisasi": "500000"
}

Response : 200 OK

{
"message": "Success edit dana desa",
"status": 200
}

Response : 422 UNPROCESSABLE CONTENT

{
"error": {
"jenis": ["Jenis dana desa tidak boleh kosong"],
"uraian": ["Uraian dana desa tidak boleh kosong"],
"tahun": ["Tahun dana desa tidak boleh kosong"],
"anggaran": ["Anggaran dana desa tidak boleh kosong"],
"realisasi": ["Realisasi dana desa tidak boleh kosong"]
}
}

Response : 404 NOT FOUND

Not Found

Response : 500 ERROR

Internal Server Error