---
title: "PATCH /ver2/TaskService.svc/tasks/{taskId}/occurrences/{dueDate}/{objectIdOrPath}"
method: PATCH
path: "/ver2/TaskService.svc/tasks/{taskId}/occurrences/{dueDate}/{objectIdOrPath}"
tags: ["Task"]
---

# PATCH /ver2/TaskService.svc/tasks/{taskId}/occurrences/{dueDate}/{objectIdOrPath}

`PATCH /ver2/TaskService.svc/tasks/{taskId}/occurrences/{dueDate}/{objectIdOrPath}`

## Request

- Base URL: `https://api.enviance.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enviance.com/ver2/TaskService.svc/tasks/{taskId}/occurrences/{dueDate}/{objectIdOrPath}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enviance/apis/restapi/docs/ver2/TaskService.svc/tasks/:taskId/occurrences/:dueDate/:objectIdOrPath/patch.ts> (a function with typed inputs; its response is checked against the schema)

["ad7b8413-812a-4e59-95f4-03205ca685f0", new Date(),null, [{   "objectIdOrPath": "/A Facility/A Unit/A POI/Check Valves",    "dismissed": "False",    "percentComplete": 100,    "statusChangeDate": "2012-12-10T08:00:00",    "hoursToComplete": 5.5,    "costToComplete": 0.0,    "comment": "Done!"} ], "onsuccess", "onerror"]

## Path parameters

- `taskId` string, required
- `dueDate` string, required
- `objectIdOrPath` string, required

## Headers

- `EnvApi-Systemid` string
- `EnvApi-Packageid` string
- `EnvApi-Udf-DateTime-Iso-In-CustomFields` string
- `EnvApi-Udf-DateTime-ReadInUserTz` string
- `EnvApi-Udf-Value-Invariant` string
- `EnvApi-Localization-All` string
- `x-client-request-id` string

## Request body

- CompleteTaskOccurrence
  - `taskOccurrenceInfos` EnvianceRestServicesVer2TasksTaskOccurrenceInfo[]
    - `statusChangeDate` string, date-time
    - `objectIdOrPath` string
    - `dismissed` boolean
    - `percentComplete` string, byte
    - `hoursToComplete` number, double
    - `costToComplete` number
    - `comment` string
    - `eventInstanceId` string, guid
    - `compliancePeriodStartDate` string, date-time
    - `compliancePeriodEndDate` string, date-time
    - `comply` string
    - `ObjectId` string, guid

## Response `default`

not available

---

[API](https://skmtc.dev/enviance/apis/restapi.md) - [All operations](https://skmtc.dev/enviance/apis/restapi/llms.txt) - [OpenAPI document](https://skmtc.dev/enviance/apis/restapi/revisions/45b2200a8cf2?raw)
