Create (Form Data)
To create the data in the specified collection with the specified parameters. When a Form Data object is saved, the object properties are automatically added to the collection you specified.
Method : POST
URL : /url
Body : Form Data
| Field | Type | Required |
|---|---|---|
| title | string | ✅ |
| description | string | ✅ |
| category[] | string | ✅ |
| category[] | string | ✅ |
Response : 200 - OK
{
"message": "success add data",
"status": 200
}Response : 422 - Unprocessable Content
{
"error": {
"title": ["title can't be empty"],
"description": ["description can't be empty"],
"category": ["category can't be empty"]
}
}Response : 500 - Server Error
Internal Server Error