Update Produk Hukum
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 : /produk-hukum/(ID)
Body : Form Data
| Field | Type | Required |
|---|---|---|
| produk | String | ✔️ |
| tahun | String | ✔️ |
| attachment | File/PDF | ✔️ |
Response : 200 OK
{ "message": "Success edit produk hukum", "status": 200}Response : 422 UNPROCESSABLE CONTENT
{ "error": { "produk": ["Nama produk hukum tidak boleh kosong"], "tahun": ["Tahun produk hukum tidak boleh kosong"], "attachment": ["Attachment tidak boleh kosong"] }}Response : 404 NOT FOUND
Not FoundResponse : 500 ERROR
Internal Server Error