Create Pembangunan Item
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 : /pembangunan/(ID)/item
Body : Form Data
| Field | Type | Required |
|---|---|---|
| deskripsi | String | ✔️ |
| progress | String | ✔️ |
| photos[] | JPG/PNG | ✔️ |
| photos[] | JPG/PNG | ✔️ |
Response : 200 OK
{ "message": "Success create pembangunan item", "status": 200}Response : 422 UNPROCESSABLE CONTENT
{ "error": { "deskripsi": ["Deskripsi tidak boleh kosong"], "progress": ["Progress tidak boleh kosong"], "photos": ["Photos tidak boleh kosong"] }}Response : 500 ERROR
Internal Server Error