Set
is_daily_routine to true for tasks that repeat every day as part of your regular habits (e.g., “Drink 2L of water”). Leave it false for one-off tasks (e.g., “Read a book this week”). The flag does not enforce any scheduling logic — it is a label that helps you and the app distinguish recurring habits from standalone goals.Request body
Display name for the task. Cannot be empty.
Points awarded to the user each time this task is completed. Must be greater than zero. Defaults to
10 when not provided.Optional longer description of the task.
Whether this task is part of the user’s daily routine. Defaults to
false.Associate this task with a challenge template. When provided, the user must currently have an active challenge that matches this template ID, otherwise the request returns
400.Response
201 Created — Returns the newly created task object.Auto-incremented unique identifier for the task.
UUID of the user who owns the task.
ID of the associated challenge template, or
null if not linked to a challenge.Display name of the task.
Optional description, or
null if not provided.Points awarded per completion.
Whether the task is flagged as a daily routine.
ISO 8601 timestamp of when the task was created.
ISO 8601 timestamp of when the task was last updated.
Errors
| Status | Condition |
|---|---|
400 | points is zero or negative. |
400 | challenge_template_id is provided but the user does not have an active challenge matching that template. |
404 | challenge_template_id is provided but the template does not exist. |
401 | Missing or invalid authentication token. |