Create Photo 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)/photo
Body : Form Data
Field | Type | Required |
---|---|---|
umkm_produk_id | String | ✔️ |
photo | JPG/PNG | ✔️ |
Response : 200 OK
{ "status": 201, "message": "success add photo produk umkm"}
Response : 422 UNPROCESSABLE CONTENT
{ "error": { "umkm_produk_id": ["The umkm produk id field is required."] }}
Response : 500 ERROR
Internal Server Error