TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Taykl12/Classify/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/tasks endpoint creates a new task and attaches it to the specified project. Under the hood it calls the Supabase RPC function create_tarea_grupo, which validates project membership and inserts the task row atomically. The title is trimmed of leading and trailing whitespace before storage. If no priority is supplied the task is created with a default priority of Media.
Authentication
All requests must include a valid Bearer token in theAuthorization header.
Request
Request body
The ID of the project to which the new task will be added. Accepts both
numeric and UUID string formats.
Title of the task. Must be non-empty after trimming whitespace.
Optional longer description providing additional context for the task.
Priority level for the task. Must be one of
"Alta", "Media", or "Baja".
Defaults to "Media" when omitted.Optional deadline as an ISO 8601 datetime string (e.g.
"2024-09-01T00:00:00.000Z"). Stored in the database as fecha_limite.Example request body
Underlying RPC call
The endpoint invokes the following Supabase RPC:Response
Returns HTTP 201 Created with the newly created task row as returned by Supabase.Example response
Code examples
Error responses
| Status | Meaning |
|---|---|
400 | projectId or title is missing or title is empty after trim. |
401 | Missing or invalid Authorization header / token. |
500 | Unexpected server error or RPC failure. |