Skip to main content
POST
/
categories
Create Category
curl --request POST \
  --url https://api.example.com/categories \
  --header 'Content-Type: application/json' \
  --data '
{
  "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.

Creates a new category in the system. Categories are used to classify and organize reports.

Authentication

Requires admin authentication via Bearer token.

Body Parameters

name
string
required
The name of the category
description
string
required
A detailed description of what this category represents
curl -X POST https://api.falconalert.com/categories \
  -H "Authorization: Bearer YOUR_ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Electronics",
    "description": "Devices and gadgets"
  }'

Response

id
number
Unique identifier for the newly created category
name
string
Name of the category
description
string
Description of the category
{
  "id": 1,
  "name": "Electrodomésticos",
  "description": "Aparatos para el hogar que facilitan las tareas diarias, como refrigeradores, lavadoras o microondas."
}

Build docs developers (and LLMs) love