---
title: "Update task assignment rules"
method: PUT
path: "/workflows/{workflowId}/revisions/{revisionId}/tasks/{taskId}/assignment-rules"
tags: ["Workflow Task Assignment Rules"]
---

# Update task assignment rules

`PUT /workflows/{workflowId}/revisions/{revisionId}/tasks/{taskId}/assignment-rules`

Replaces the assignment rules for a task on a draft workflow revision. PUT semantics: send the full list of desired rules to replace all existing ones; send an empty array to remove all assignments. Each rule has a `type` discriminator: `Static` requires an `email`; `Dynamic` requires a `sourceType` (one of `ChecklistInitiator`, `FormField`, `DocumentOwner`, `DocumentAuthor`), and when `sourceType` is `FormField`, also a `sourceWidgetId` pointing to a Members or Email form field widget in the same revision. Returns the resulting assignment rules.

## Path parameters

- `workflowId` string, required
- `revisionId` string, required
- `taskId` string, required

## Request body

- UpdateTaskAssignmentRuleRequest[]
  - union — An assignment rule. The `type` discriminator field selects the variant: `Static` — assigns a specific named user (requires `email`). `Dynamic` — derives the assignee at runtime from a source like the workflow run initiator or a form field (requires `sourceType`).
    - object
      - `sourceType` 'ChecklistInitiator' | 'FormField' | 'DocumentOwner' | 'DocumentAuthor', required — How assignees are derived. `ChecklistInitiator` assigns the user who started the workflow run; `FormField` pulls assignees from a Members or Email form field (requires `sourceWidgetId`); `DocumentOwner` and `DocumentAuthor` pull from the source document.
      - `sourceWidgetId` string — For `sourceType=FormField`: the ID of the Members form field whose value drives the rule's assignees at runtime. Absent for `sourceType=ChecklistInitiator`.
      - `type` 'Dynamic', required — Discriminator value for this variant. See the parent oneOf for the full set of values.
    - object
      - `email` string, required — Email address.
      - `type` 'Static', required — Discriminator value for this variant. See the parent oneOf for the full set of values.

## Response `200`

- PublicApiAssignmentRuleListResponse
  - `data` union[] — The list of resources returned by this request.
    - union — An assignment rule. The `type` discriminator field selects the variant: `Static` — assigns a specific named user (requires `email`). `Dynamic` — derives the assignee at runtime from a source like the workflow run initiator or a form field (requires `sourceType`).
      - object
        - `sourceType` 'ChecklistInitiator' | 'FormField' | 'DocumentOwner' | 'DocumentAuthor', required — How assignees are derived. `ChecklistInitiator` assigns the user who started the workflow run; `FormField` pulls assignees from a Members or Email form field (requires `sourceWidgetId`); `DocumentOwner` and `DocumentAuthor` pull from the source document.
        - `sourceWidgetId` string — For `sourceType=FormField`: the ID of the Members form field whose value drives the rule's assignees at runtime. Absent for `sourceType=ChecklistInitiator`.
        - `type` 'Dynamic', required — Discriminator value for this variant. See the parent oneOf for the full set of values.
      - object
        - `email` string, required — Email address.
        - `type` 'Static', required — Discriminator value for this variant. See the parent oneOf for the full set of values.
  - `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)
