POST
/v1/tools/save_taskfreeSave a task
Saves a task, free, about a person (pe_…), a company (co_…) or a deal (de_…). A new task needs its title, what it is; give task (ta_…) to change one, and only the fields given change. due is a day, YYYY-MM-DD, or empty for none; done ticks it or unticks it.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
task | string | None | Its id, ta_…, to change it |
title | string | None | What it is |
due | string | None | YYYY-MM-DD; empty for none |
done | boolean | None | |
about | string | None | The record's id: pe_…, co_… or de_… |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/save_task \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.