Create 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

Body : Form Data

FieldTypeRequired
umkm_idString✔️
nama_produkString✔️
deskripsiString✔️
hargaString✔️
link_pembelianString✔️
photo[]JPG/PNG
photo[]JPG/PNG

Response : 200 OK

{
"message": "Success create 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