Update Quote
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 : /api/quote
Body : JSON
{
"id": 276,
"author_id": 1,
"quote": "New Quote Edit",
"tags": [
{
"value": 1,
"label": "a Edit"
},
{
"value": 2,
"label": "b Edit"
}
]
}id*Required
number
Quote ID
quote*Required
string
Quote
author_id
number
Quote author ID
tags
array of object
Quote tags.
[
{
"value": "ID of Tag"
},
{
"value": "ID of Tag"
}
]Response : 200 - OK
{
"message": "Success update quote"
}Response : 422 - Unprocessable Content
{
"error": "Quote required"
}Response : 404 - Not Found
Not FoundResponse : 500 - Server Error
Internal Server Error