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}}"
  }
}
When updating a category, only the fields you include in the request will be modified — all other fields remain unchanged.
The only required field is id, which identifies the category to update.
You can update one or more fields, including multilingual ones such as name or description.

Example Request

{
  "id": "68641ff3fa6f5ba988d00bcb",
  "description": {
    "en": "Updated description for technology-related content.",
    "es": "Descripción actualizada para el contenido relacionado con la tecnología."
  }
}

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