Skip to main content
PUT
/
categories
Update Category
curl --request PUT \
  --url https://api.example.com/categories \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 123,
  "name": "<string>",
  "description": "<string>"
}
'
{
  "id": 1,
  "name": "Electrodomésticos",
  "description": "Aparatos para el hogar que facilitan las tareas diarias, como refrigeradores, lavadoras o microondas."
}

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/4rt21/backend-proyecto/llms.txt

Use this file to discover all available pages before exploring further.

Updates an existing category’s information. You can modify the name, description, or both.

Authentication

Requires admin authentication via Bearer token.

Body Parameters

id
number
required
The unique identifier of the category to update
name
string
New name for the category
description
string
New description for the category
curl -X PUT https://api.falconalert.com/categories \
  -H "Authorization: Bearer YOUR_ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "id": 1,
    "name": "Electrodomésticos",
    "description": "Aparatos para el hogar que facilitan las tareas diarias, como refrigeradores, lavadoras o microondas."
  }'

Response

id
number
The category’s unique identifier
name
string
Updated name of the category
description
string
Updated description of the category
{
  "id": 1,
  "name": "Electrodomésticos",
  "description": "Aparatos para el hogar que facilitan las tareas diarias, como refrigeradores, lavadoras o microondas."
}