Skip to main content
PUT
/
categories
/
update
Update category
curl --request PUT \
  --url https://api.octaviatech.app/cms/categories/update \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "id": "{{objectId}}",
  "name": {
    "en": "Surgery (updated)",
    "es": "Cirugía (actualizado)"
  },
  "order": 2
}'
{
  "success": true,
  "statusCode": 201,
  "message": "Category updated",
  "data": {
    "id": "{{objectId}}"
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
id
string
required
Example:

"{{objectId}}"

name
object
slug
string
description
object
icon
string<uri>
banner
string<uri>
order
integer
Required range: x >= 0
isActive
boolean

Response

Updated

The response is of type any.