Create Quote

Create Quote

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 : /api/quote

Body : JSON

{
	"author_id": 1,
	"quote": "New Quote",
	"tags": [
		{
			"value": 1,
			"label": "a"
		},
		{
			"value": 2,
			"label": "b"
		}
	]
}
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 add quote"
}

Response : 422 - Unprocessable Content

{
	"error": "Quote required"
}

Response : 500 - Server Error

Internal Server Error