Skip to main content

Create a category

Create a category.

Authorizations:Token
Request Body Schema:
The new Category resource
og_meta_tags_typestringDefault: "A"Enum: "A""C"Example: "A"
og_meta_tagsstring
enabledbooleanDefault: trueExample: true
show_titlebooleanDefault: trueExample: true
positioninteger
membershipsArray of strings
parentinteger or nullExample: "null"
clean_urlstring
namestring[1 .. 255] charactersExample: "Category name"
descriptionstringExample: "Description"
meta_tagsstring
meta_description_typestringDefault: "A"Enum: "A""C"Example: "A"
meta_descriptionstring
meta_titlestring

Responses

201Category resource created
Response schema:
Category resource created
og_meta_tagsstring
idinteger
enabledboolean
show_titleboolean
positioninteger
membershipsArray of objects
Array
idinteger
namestring
enabledboolean
parentinteger or null
clean_urlstring
namestring
descriptionstring
meta_tagsstring
meta_descriptionstring
meta_titlestring
iconobject or null
  • object
idinteger
altstring
urlstring
widthinteger
heightinteger
bannerobject or null
  • object
idinteger
altstring
urlstring
widthinteger
heightinteger
400Invalid input
422Unprocessable entity