---
title: "Update a workflow rule"
method: PATCH
path: "/v1/issuance/tokens/{tokenId}/workflows/{workflowId}"
tags: ["Issuance"]
---

# Update a workflow rule

`PATCH /v1/issuance/tokens/{tokenId}/workflows/{workflowId}`

Updates a rule's condition, action params, review mode, retry policy, or enabled flag.

## Path parameters

- `tokenId` string, required — Token identifier.
- `workflowId` string, required

## Headers

- `x-project-id` string — Selects the active project for this request. Required for session/dashboard callers. Ignored when authenticating with an API key, whose scope is fixed to the key's project.

## Request body

- UpdateWorkflowRequest
  - `condition` WorkflowCondition, nullable
    - `all` object[], required
      - `field` string, required
      - `op` 'eq' | 'neq' | 'in', required
      - `value` union, required
        - string
        - number
        - union[]
          - union
            - string
            - number
  - `actionParams` object
  - `reviewMode` 'auto' | 'manual'
  - `retryPolicy` object
    - `maxAttempts` integer, required
    - `retryAfterMinutes` integer, required
  - `enabled` boolean

## Response `200`

Workflow updated

- WorkflowResponse
  - `data` object, required
    - `workflow` object, required
      - `id` string, required
      - `token_id` string, required
      - `trigger_type` string, required
      - `action_type` string, required
      - `enabled` boolean, required
      - `review_mode` 'auto' | 'manual', required
      - `created_at` string, required
  - `meta` object

## Other responses

- `400` — Error
- `401` — Error
- `403` — Error
- `404` — Error
- `500` — Error

---

[API](https://skmtc.net/solana/apis/solana-developer-platform-api.md) · [All operations](https://skmtc.net/solana/apis/solana-developer-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/solana/solana-developer-platform-api/revisions/672b1916ba61/schema)
