Add New ToDo Item
POST/api/todos
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| title | string | Mandatory ToDo title |
| description | string | optional Optional ToDo description |
| status | string | optional Optional Status (to_do, done) default: to_do |
| start_date | string | optional Optional Start date (Y-m-d) |
| created_by | number | optional Optional RISE user ID. Default: 1. Use for proper attribution. |
curl -X POST "https://yoursite.com/api/todos" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "title": "..." }' Success-Response:
HTTP/1.1 201 Created
{
"status": 200,
"messages": {"success": "ToDo add success"},
"id": 1
}