Skip to main content

Update a category

Update a category.

Authorizations:Token, JWT
Query Parameters
category_id
required
stringResource identifier
Request Body Schema:
The updated 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

200Category resource updated
Response schema:
Category resource updated
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
401Unauthorized
Response schema:
Unauthorized
typestring
titlestring
detailstring or null
instancestring or null
404Resource not found
Response schema:
Resource not found
typestring
titlestring
detailstring or null
instancestring or null
422Unprocessable entity
500Internal error
Response schema:
Internal error
typestring
titlestring
detailstring or null
instancestring or null