Create Post Category

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 : /web/setting/post/category

Body : JSON

{
"kategori": "Informasi"
}

Response : 200 OK

{
"message": "success create post category",
"status": 200
}

Response : 422 UNPROCESSABLE CONTENT

{
"error": {
"kategori": ["Kategori Tidak boleh kosong"]
}
}

Response : 500 ERROR

Internal Server Error