> ## Documentation Index
> Fetch the complete documentation index at: https://kaneo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Upsert workflow rule

> Create a workflow rule, or update the target column of the existing rule for the same integration and event.



## OpenAPI

````yaml /openapi.json put /workflow-rule/{projectId}
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /workflow-rule/{projectId}:
    put:
      tags:
        - Workflow Rules
      summary: Upsert workflow rule
      description: >-
        Create a workflow rule, or update the target column of the existing rule
        for the same integration and event.
      operationId: upsertWorkflowRule
      parameters:
        - schema:
            type: string
          required: true
          name: projectId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                integrationType:
                  type: string
                eventType:
                  type: string
                columnId:
                  type: string
              required:
                - integrationType
                - eventType
                - columnId
      responses:
        '200':
          description: The created or updated rule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowRuleRow'
        '400':
          description: Invalid body, or unknown project
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing project:update permission
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    WorkflowRuleRow:
      type: object
      properties:
        id:
          type: string
        projectId:
          type: string
        integrationType:
          type: string
        eventType:
          type: string
        columnId:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - projectId
        - integrationType
        - eventType
        - columnId
        - createdAt
        - updatedAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````