---
title: "Update a workflow condition"
method: PUT
path: "/workflows/{workflowId}/conditions/{workflowConditionId}"
tags: ["Workflows"]
---

# Update a workflow condition

`PUT /workflows/{workflowId}/conditions/{workflowConditionId}`

## Request

- Base URL: `https://{prefix}.api.sandbox.checkout.com`
- URL: `https://{prefix}.api.sandbox.checkout.com/workflows/{workflowId}/conditions/{workflowConditionId}`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `string` scopes: `flow`, `flow:workflows`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/checkout/apis/checkout-com-api-reference/docs/workflows/:workflowId/conditions/:workflowConditionId/put.ts> (a function with typed inputs; its response is checked against the schema)

Update a workflow condition.

## Path parameters

- `workflowId` string, required
- `workflowConditionId` string, required

## Request body

- AddUpdateWorkflowConditionRequest: The workflow condition
  - `type` string, required

## Response `200`

Workflow condition updated successfully

## Other responses

- `401`: Unauthorized
- `404`: Workflow or workflow condition not found
- `422`: Invalid data was sent
- `500`: Internal Error

---

[API](https://skmtc.dev/checkout/apis/checkout-com-api-reference.md) - [All operations](https://skmtc.dev/checkout/apis/checkout-com-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/checkout/apis/checkout-com-api-reference/revisions/0f1abdb1c3e9?raw)
