Docs
Update Put

Update Put

To edit 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 : PUT

URL : /url/(id)

Body : JSON

{
  "title": "title",
  "description": "description",
}

Response : 200 - OK

{
  "message": "success edit data",
  "status": 200
}

Response : 422 - Unprocessable Content

{
  "error": {
    "title": ["title can't be empty"],
    "description": ["description can't be empty"]
  }
}

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error