---
title: "Updates the status of an existing automation workflow rule."
url: "https://earlyaccess.developers.bynder.com/apis/automation-workflow-api-1/versions/428d2b99-ec99-455a-8d22-c0d61a9bb810/operations/patchRulesRuleidStatus"
---

> Full API specification: https://earlyaccess.developers.bynder.com/apis/automation-workflow-api-1/versions/428d2b99-ec99-455a-8d22-c0d61a9bb810.md

# Updates the status of an existing automation workflow rule.

`PATCH` `/rules/{ruleId}/status`

Operation ID: `patchRulesRuleidStatus`

Updates the status of an existing automation workflow rule. The status must be one of the following: `PUBLISHED` or `PAUSED`.

## Path parameters

- `ruleId` (string, required)

## Request body (required)

Content types: `application/json`

## Responses

- `204`
- `400`
- `401`
- `404`
- `409`

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Automation Workflow API
  version: 1.0.0
servers:
  - url: https://{your-bynder-domain}/api/1/automation-workflow/
paths:
  /rules/{ruleId}/status:
    patch:
      description: "Updates the status of an existing automation workflow rule. The
        status must be one of the following: `PUBLISHED` or `PAUSED`."
      operationId: patchRulesRuleidStatus
      parameters:
        - in: path
          name: ruleId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateStatusAutomationWorkflowRuleBody"
        required: true
      responses:
        "204":
          description: ""
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: ""
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorAuthorizationResponse"
          description: ""
        "404":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponseNotFound"
          description: ""
        "409":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponseRuleAlreadyPaused"
          description: ""
      security:
        - {}
        - httpAuth: []
      summary: Updates the status of an existing automation workflow rule.
      tags:
        - Automation Workflow Rules
security:
  - {}
  - httpAuth: []
components:
  schemas:
    UpdateStatusAutomationWorkflowRuleBody:
      properties:
        status:
          type: string
      required:
        - status
      title: UpdateStatusAutomationWorkflowRuleBody
      type: object
    ErrorResponse:
      properties:
        message:
          type: string
      required:
        - message
      title: ErrorResponse
      type: object
    ErrorAuthorizationResponse:
      properties:
        message:
          type: string
      required:
        - message
      title: ErrorAuthorizationResponse
      type: object
    ErrorResponseNotFound:
      properties:
        message:
          type: string
      required:
        - message
      title: ErrorResponseNotFound
      type: object
    ErrorResponseRuleAlreadyPaused:
      properties:
        message:
          type: string
      required:
        - message
      title: ErrorResponseRuleAlreadyPaused
      type: object
  securitySchemes:
    httpAuth:
      scheme: bearer
      type: http
```
