Create and update tasks with the API
Create tasks with or without a customer, give them a place, keep them personal, put them on the Schedule, and turn one into a work order.
Tasks live at /v1/tasks. Every task is addressed by its task_… uid
(How records are identified); the routes check work.tasks.read,
work.tasks.create and work.tasks.update.
Create a task
Only title is required. A task does not need a customer.
curl -s -X POST "https://app.novabmp.com/v1/tasks" \
-H "Authorization: Bearer $NOVA_KEY" -H "Content-Type: application/json" \
-d '{"title": "Pick up fittings", "location_address": "1100 Pembroke St E, Pembroke ON",
"location_lat": 45.8167, "location_lng": -77.1}'
| Field | Meaning |
|---|---|
account_uid |
The customer (acct_…), optional. A task under a work order or project takes that record's customer when you leave it out. It is the only customer field a task write takes: account_id is refused with a 422 that names account_uid. A number is a 422 too; a uid of another record type is a 404. |
purpose |
business (default) or personal. |
location_uid |
One of the task's customer's sites (loc_…). A site of another customer is refused. |
location_address, location_lat, location_lng |
A typed place and, when you know it, its point. Without a point Nova looks the address up once, through the organization's address-lookup budget. |
assignee_user_id |
Who does it (a user scoping id). |
Send "account_uid": null in a PATCH /v1/tasks/{task_uid} to remove the
customer; send an acct_… uid to add or change it.
Every other record a task names is a uid too: project_id (proj_…),
work_order_id, task_group_id, parent_task_id, recurrence_parent_id, the
dependency task ids and the id of a reminder you keep, in a body and in the
GET /v1/tasks filters. A number, or a number written as text, is refused with
422 and the code uid_required, naming the field in error.details.field. A
uid nobody has, or a uid of another record type, answers 404, the same as a
record that does not exist.
A task you read back names each related record one way, by uid:
account_uid, project_uid, work_order_uid, task_group_uid,
parent_task_uid and recurrence_parent_uid. Its dependencies carry
blocking_task_uid and blocked_task_uid, its comments and reminders carry
task_uid, and time_summary.running_time_entry_uid names a running timer.
There are no _id copies of these on a task you read.
Start a task from a template
POST /v1/tasks/from-template takes template_id (wtt_…), an optional
template_version_id, and the same optional account_uid, project_id,
work_order_id, task_group_id and parent_task_id uids as a task. Left out,
the customer is the project's or work order's, or none. account_id is
refused with a 422 that names account_uid.
Log time on a task
POST /v1/time-entries with task_id (the task's uid), user_id,
started_at and ended_at. The entry takes the task's customer and branch.
Time on a task without a customer is your business's own time: it answers
account_uid: null, is never billable, and still counts on the person's
timesheet and in payroll exports.
Personal tasks
A personal task is its creator's own. It cannot have a customer, a work order,
a project or a customer site, and nobody else can be its assignee; any of those
answers 422 with detail.code = "personal_task_rule" and a sentence that
says which. Changing a personal task back to business is always allowed.
Everyone except the creator receives masked: true, the title
Personal — busy, and no note, place or customer: lists, search and the
Schedule's queues leave it out, and a write answers 404. Only
GET /v1/tasks/{task_uid} and the record card answer, masked. Everything
hung off the task (comments, call insights, checklists, notes, files, time
entries, activity, tags and custom fields) answers the same 404 as a task
that does not exist. The Schedule and the daily route still show the busy
time. Its events are not sent to webhooks.
A personal task is never in an export, for anyone (the creator and owners included, on every scope): not the task, not its place on the Schedule, not its notes, tags, notifications or audit trail.
Put it on the Schedule
PUT /api/schedule/tasks/{task_uid}/timing with schedule_state set to
scheduled (with start_at_utc and end_at_utc), date_only (with
scheduled_date_local) or unscheduled. resource_ids takes user uids.
A personal task can only go on its creator's own lane: naming anyone else
here, dragging it to another lane or bulk-assigning it answers 422
(personal_task_rule) and saves nothing.
Turn a task into a work order
POST /v1/tasks/{task_uid}/convert-to-work-order needs work_orders.create
and work.tasks.update. The body is {"work_order": {…}}, the same fields
POST /v1/work-orders takes. In one transaction Nova creates the work order,
links the task to it, marks the task done, stamps converted_at, and takes
the task off the Schedule (its visit and assignments) so the work order's visit
can take its slot. The task stays where it was: a task in a project keeps its
project, and its work order is created in that same project. The answer (201)
is work_order_uid, work_order_number and the task.
- A personal task answers
422(personal_task_rule). - For a task in a project, a work order for another customer answers
422(task_project_customer) and one in another project answers422(task_in_another_project); nothing is saved. - A task already in a work order answers
409withdetail.code = "task_already_in_work_order"and that work order's uid, so a retry after a lost answer can carry on with it.
Search a business by name
GET /v1/geo/places?q=Home%20Depot%20Pembroke (optional near_lat /
near_lng) returns up to five {label, address, latitude, longitude}. It
needs work.tasks.create, work.tasks.update or schedule.edit (the Daily
route's "Somewhere else today" uses it too), allows 60 searches a minute
per organization (the 61st answers 429 rate_limit_exceeded with
Retry-After), and each search counts against the organization's own daily
place-search budget, separate from address lookups; when that is spent for the
day the answer is 429 with detail.code = "address_search_paused".
List filters
GET /v1/tasks?no_customer=true lists only tasks without a customer.