API Docs / Operations / Tasks / Bulk Restore Occurrences

Bulk Restore Occurrences

POST /tenants/{tenant}/tasks/restore

Undoes a delete of one or more recurring task occurrences, by the same projected codes
(proj-{recurringTaskCode}-{clientCode}-{yyyyMMdd}) that deleted them. The Occurrences list
puts that code on every deleted row.

This restores the OCCURRENCE, not the task. Deleting a created task deletes it along with its
notes, workflow steps and logged time; restoring only lets the schedule produce the date
again, and what appears is a fresh task built from the schedule as it stands now. Who deleted
the occurrence and who restored it are both kept, and the Occurrences list reports them.

Real task codes are ignored, as are codes naming an occurrence that is not currently deleted,
so the count returned can be lower than the number of codes submitted.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

Request Body*

{
  "codes": [
    "string"
  ]
}

Responses

400 Bad Request
401 Unauthorized – Invalid or missing API key