Create a value in auxiliary task catalogs (type, classification 1 and 2)

Creates a new value in one of the three auxiliary Task catalogs — Task Type, Classification 1, or Classification 2 — based on the sub-catalog indicated in the type parameter. Acts as a single dispatcher endpoint that routes the creation to the existing logic of each sub-catalog.

General use — no specific add-on required.

POST https://app.fracttal.com/api/tasks_types_catalog

Input parameters

ParameterTypeRequiredDescription
typetextYesTarget sub-catalog. Valid values: TYPE_TASK (Task Type), GROUP_1 (Classification 1), GROUP_2 (Classification 2).
descriptiontextYesValue to create in the sub-catalog indicated by type. Maximum length: 200 characters for GROUP_1; 50 characters for TYPE_TASK and GROUP_2.

Rules for type and description

  • Valid values for type: TYPE_TASK (Task Type), GROUP_1 (Classification 1), GROUP_2 (Classification 2). Any other value returns an error (see Errors).
  • The maximum length of description depends on the target sub-catalog: 200 characters for GROUP_1, 50 characters for TYPE_TASK and GROUP_2.
  • Duplicate validation is per sub-catalog: the same description can exist under different type values without being considered a duplicate (for example, "Corrective" can exist simultaneously as TYPE_TASK and as GROUP_1).

Output parameters

ParameterTypeDescription
successbooleanIndicates whether the operation was successful.
messagetextDescriptive result message.
totalintegerNumber of records affected (1 on successful creation).
dataobjectContains the created record.
data.idintegerUnique identifier of the new record.

Errors

CodeCause
400type is missing, empty, or different from TYPE_TASK, GROUP_1, or GROUP_2.
400description is missing, empty, or made up only of spaces.
400description exceeds the maximum length allowed for the target sub-catalog (200 for GROUP_1, 50 for TYPE_TASK/GROUP_2).
401Invalid, expired, or missing authentication token.
403The authenticated account does not have permission over the Configuration > Catalogs module.
404A description equal (case-insensitive) already exists within the same sub-catalog (type) for the company.
500Unhandled internal error.

Note on the 404 code

This endpoint uses 404 to indicate that the value already exists in the sub-catalog, following the dominant convention of other endpoints in the same module — it is not a standard "resource not found" 404.


Example

Request body

{
  "type": "TYPE_TASK",
  "description": "Preventive"
}

Response 200

{
  "success": true,
  "message": "Registro creado exitosamente",
  "total": 1,
  "data": {
    "id": 145
  }
}

Response — invalid type (400)

{
  "success": false,
  "message": "type no es válido. Valores permitidos: TYPE_TASK, GROUP_1, GROUP_2",
  "total": 0,
  "data": null
}

Response — description exceeds maximum length (400)

{
  "success": false,
  "message": "description exceeds maximum length of 50 characters",
  "total": 0,
  "data": null
}

Response — duplicate description within the same sub-catalog (404)

{
  "success": false,
  "message": "404",
  "total": 0,
  "data": null
}

OpenAPI definition

{
  "openapi": "3.1.0",
  "info": {
    "title": "tareas",
    "version": "1-Es"
  },
  "servers": [
    { "url": "https://app.fracttal.com/api/tasks_types_catalog" }
  ],
  "security": [{}],
  "paths": {
    "/": {
      "post": {
        "summary": "Crear un valor en catálogos auxiliares de tareas (tipo, clasificación 1 y 2)",
        "description": "",
        "operationId": "crear-un-valor-en-catalogos-auxiliares-de-tareas",
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
Response
200
Language
LoadingLoading…