---
title: "Updates an existing automation workflow rule."
method: PUT
path: "/rules/{ruleId}"
tags: ["Automation Workflow Rules"]
---

# Updates an existing automation workflow rule.

`PUT /rules/{ruleId}`

## Request

- Base URL: `https://{your-bynder-domain}/api/1/automation-workflow`
- URL: `https://{your-bynder-domain}/api/1/automation-workflow/rules/{ruleId}`
- Auth: one of:
  - none
  - HTTP bearer

Updates an existing automation workflow rule.

## Path parameters

- `ruleId` string, required

## Request body

- EditAutomationWorkflowRuleBody
  - `name` string
  - `triggers` string[]
  - `steps` AutomationWorkflowStep[]
    - `step_triggers` string[]
    - `actions` AutomationWorkflowStepActionBase[]
      - union
        - AutomationWorkflowStepActionAgent
          - `action_type` string, required
          - `data` StepActionAgentData, required
            - `agent_id` string, required
            - `run_name` string
          - `is_valid` boolean
        - AutomationWorkflowStepAddToCollectionAction
          - `action_type` string, required
          - `data` StepAddToCollectionActionData, required
            - `collection_id` string, required
          - `is_valid` boolean
    - `conditions` AndCondition[]
      - `and` LeafCondition[]
        - `condition_type` string, required
        - `expression` ExpressionCondition, required
          - `term` Term[]
            - union
              - …
          - `operator` string, required
        - `is_valid` boolean

## Response `200`

- SingleRuleAutomationWorkflowResponse
  - `id` string, required
  - `status` string, required
  - `name` string, required
  - `date_created` string, required
  - `created_by_id` string, required
  - `date_modified` string, required
  - `edited_by_id` string
  - `date_removed` string
  - `triggers` string[]
  - `steps` AutomationWorkflowStep[]
    - `step_triggers` string[]
    - `actions` AutomationWorkflowStepActionBase[]
      - union
        - AutomationWorkflowStepActionAgent
          - `action_type` string, required
          - `data` StepActionAgentData, required
            - `agent_id` string, required
            - `run_name` string
          - `is_valid` boolean
        - AutomationWorkflowStepAddToCollectionAction
          - `action_type` string, required
          - `data` StepAddToCollectionActionData, required
            - `collection_id` string, required
          - `is_valid` boolean
    - `conditions` AndCondition[]
      - `and` LeafCondition[]
        - `condition_type` string, required
        - `expression` ExpressionCondition, required
          - `term` Term[]
            - union
              - …
          - `operator` string, required
        - `is_valid` boolean
  - `is_valid` boolean, required

## Other responses

- `400`
- `401`
- `404`

---

[API](https://skmtc.dev/bynder/apis/automation-workflow-api.md) - [All operations](https://skmtc.dev/bynder/apis/automation-workflow-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bynder/apis/automation-workflow-api/revisions/319a1f8547d0?raw)
