Example
In this first example, the task has the default fieldstitle
, url
, and custom fields claim_id
and country
.
Fields
The task stores information about the task in thefields
key.
All tasks include two default fields:
title
- A human-readable title for the taskurl
- An optional URL that provides additional context or links to related resources. The Fragment player will open this URL when the task is opened in the chrome extension.
Create a task
You can create a task by sending aPOST
request to the tasks
endpoint. When a task is created, unless otherwise specified, it will be created with the TODO
status and its due date will be set to the current date and time.
example.py
Schema
Task schema, same as Task Model.