POST /api/tasks
Creates a new task owned by the authenticated user.
Rate limit: 50 requests per hour per user.
Authentication
Request Body
Send a JSON body with the following fields:Task title. Must be between 1 and 200 characters.
Optional task description. Maximum 5000 characters.
Initial task status. Allowed values:
pending, in_progress, completed, cancelled.Task priority. Allowed values:
low, medium, high, urgent.Due date in ISO 8601 format, e.g.
"2024-12-31T23:59:59". Timezone suffix (Z or offset) is accepted.List of existing tag IDs to associate with the task, e.g.
[1, 2, 3].Response
201 Created — Returns the newly created task object.Always
true for successful responses.Confirmation message:
"Tarea creada con exito".Error Responses
| Status | Description |
|---|---|
400 Bad Request | Missing required title field, a field failed length validation, or an invalid enum value was provided for status or priority. |