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
Field | Type | Required |
---|---|---|
umkm_id | String | ✔️ |
nama_produk | String | ✔️ |
deskripsi | String | ✔️ |
harga | String | ✔️ |
link_pembelian | String | ✔️ |
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