Create Bumdes
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 : /bumdes/produk
Body : Form Data
Field | Type | Required |
---|---|---|
nama_produk | String | ✔️ |
deskripsi | String | ✔️ |
harga | String | ✔️ |
photo[] | JPG/PNG | |
photo[] | JPG/PNG |
Response : 200 OK
{ "message": "Success create produk bumdes", "status": 200}
Response : 422 UNPROCESSABLE CONTENT
{ "error": { "nama_produk": ["The nama produk field is required."], "deskripsi": ["The deskripsi field is required."], "harga": ["The harga field is required."] }}
Response : 500 ERROR
Internal Server Error