Update Hero Web Profile

To edit the data in the specified collection with the specified id or parameters. When a JSON object is saved, the object properties are automatically added to the collection you specified.

Method : POST

URL Hero 1 : /web/setting/hero/1?_method=PUT

URL Hero 2 : /web/setting/hero/2?_method=PUT

URL Hero 3 : /web/setting/hero/3?_method=PUT

Body : Form Data

FieldTypeRequired
titleString✔️
subtitleString✔️
imageJPG/PNG✔️

Response : 200 OK

{
"message": "success update web hero",
"status": 200
}

Response : 422 UNPROCESSABLE CONTENT

{
"error": {
"title": ["Judul Hero tidak boleh kosong"],
"subtitle": ["Sub Judul Hero tidak boleh kosong"],
"image": ["Image Hero tidak boleh kosong"]
}
}

Response : 404 NOT FOUND

Not Found

Response : 500 ERROR

Internal Server Error