Update Produk UMKM

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 : /umkm/(ID)/produk/(ID)?_method=PUT

Body : JSON

{
"umkm_id": 1,
"nama_produk": "Nama Produk A UMKM B",
"deskripsi": "Deskripsi Produk A UMKM B",
"harga": 10000,
"link_pembelian": "https://www.google.com",
}

Response : 200 OK

{
"message": "Success update produk UMKM",
"status": 200
}

Response : 422 UNPROCESSABLE CONTENT

{
"error": {
"umkm_id": ["The umkm id field is required."],
"nama_produk": ["The nama produk field is required."],
"deskripsi": ["The deskripsi field is required."],
"harga": ["The harga field is required."],
"link_pembelian": ["The link pembelian field is required."]
}
}

Response : 500 ERROR

Internal Server Error