---
title: "Update a one-off task"
method: PUT
path: "/work/tasks/{taskId}"
tags: ["One-Off Tasks"]
---

# Update a one-off task

`PUT /work/tasks/{taskId}`

Updates a one-off task. PUT semantics: all fields must be provided. Returns the updated task.

## Path parameters

- `taskId` string, required

## Request body

- UpdateOneOffTaskRequest
  - `name` string, required — Display name.
  - `description` string — Optional long-form description.
  - `dueDate` string, date-time — Due date. ISO-8601 UTC.
  - `required` boolean, required — When `true`, the form field must have a value before its task can be completed.
  - `linkedWorkflowRunId` string
  - `assigneeEmails` string[]
  - `subtasks` object[]
    - `id` string — The resource's ID.
    - `name` string, required — Display name.
    - `status` 'Completed' | 'NotCompleted', required — Whether this subtask has been checked off. - `Completed` — the subtask is checked. - `NotCompleted` — the subtask is unchecked.

## Response `200`

- PublicApiOneOffTaskResponse
  - `data` object, required — The resource returned by this request.
    - `id` string, required — The ID of the One-Off Task
    - `createdDate` string, date-time, required — When the resource was first created. ISO-8601 UTC.
    - `createdBy` object, required — User who created the resource.
      - `id` string, required — The resource's ID.
      - `email` string, required — The user's email address (also their login identifier).
      - `username` string, required — The user's display name (e.g. `Jane Doe`).
    - `updatedDate` string, date-time, required — When the resource was last modified. ISO-8601 UTC.
    - `updatedBy` object, required — User who last modified the resource.
      - `id` string, required — The resource's ID.
      - `email` string, required — The user's email address (also their login identifier).
      - `username` string, required — The user's display name (e.g. `Jane Doe`).
    - `organizationId` string, required — The ID of the organization this resource belongs to.
    - `name` string, required — Display name of the one-off task.
    - `description` string — Optional long-form description of the one-off task.
    - `status` 'NotCompleted' | 'Completed', required
    - `dueDate` string, date-time — Optional due date. ISO-8601 UTC.
    - `required` boolean, required — When `true`, the task must be completed before the linked workflow run can be completed.
    - `visibility` 'Private' | 'Public', required — Who can see this one-off task. `Private` — only the creator and assignees. `Public` — visible to anyone in the organization.
    - `assignments` object[]
      - `id` string, required — The resource's ID.
      - `user` object, required — User this entry refers to.
        - `id` string, required — The resource's ID.
        - `email` string, required — The user's email address (also their login identifier).
        - `username` string, required — The user's display name (e.g. `Jane Doe`).
    - `linkedWorkflowRun` object
      - `id` string, required — The ID of the Workflow Run
      - `name` string, required — Display name.
      - `templateId` string, required — The ID of the Workflow
      - `templateName` string, required
    - `subtasks` object[]
      - `id` string, required — The resource's ID.
      - `name` string, required — Display name.
      - `status` 'Completed' | 'NotCompleted', required — Whether this subtask is complete. `Completed` — the subtask has been checked off. `NotCompleted` — the subtask has not yet been checked off.
    - `links` object[] — Navigable HATEOAS links to related resources. Each entry has a `name` (RFC-5988 link relation like `self`, `edit`, `related`), an `href` URL, and a `type` (`Api` for callable endpoints, `App` for browser-facing URLs). Prefer following these `href` values over constructing URLs by hand.
      - `name` string, required — Standard link relation name (RFC 5988) indicating this link's role. Common values include `self`, `edit`, `related`, `previous`, `next`.
      - `href` string, required — URL of the linked resource.
      - `rel` 'Approval Task' | 'Approvals' | 'Assignees' | 'Comment' | 'Data Set Records' | 'Data Sets' | 'Form Field Values' | 'Subject Task' | 'Task' | 'Tasks' | 'Users' | 'Webhook' | 'Workflow' | 'Workflow Run' — Optional. The kind of resource this link points to (e.g. `Workflow`, `Task`, `Comment`).
      - `type` 'Api' | 'App', required — Whether this link targets an API endpoint or a Process Street app URL. `Api` — a callable API endpoint you can fetch directly. `App` — a browser-facing URL in the Process Street UI.
  - `links` object[] — Pagination links. When the result has more pages, look for an entry with `name: "next"` — its `href` is the URL to fetch the next page. Absence of `next` means there are no more pages. For single-resource responses this array is typically empty.
    - `name` string, required — Standard link relation name (RFC 5988) indicating this link's role. Common values include `self`, `edit`, `related`, `previous`, `next`.
    - `href` string, required — URL of the linked resource.
    - `rel` 'Approval Task' | 'Approvals' | 'Assignees' | 'Comment' | 'Data Set Records' | 'Data Sets' | 'Form Field Values' | 'Subject Task' | 'Task' | 'Tasks' | 'Users' | 'Webhook' | 'Workflow' | 'Workflow Run' — Optional. The kind of resource this link points to (e.g. `Workflow`, `Task`, `Comment`).
    - `type` 'Api' | 'App', required — Whether this link targets an API endpoint or a Process Street app URL. `Api` — a callable API endpoint you can fetch directly. `App` — a browser-facing URL in the Process Street UI.

## Other responses

- `400` — Invalid value for: body
- `default`

---

[API](https://skmtc.net/process/apis/process-street-public-api.md) · [All operations](https://skmtc.net/process/apis/process-street-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/process/process-street-public-api/revisions/6199a9464227/schema)
