Skip to content

CRD-2.4: Workflow Update Command #27

@charleslbryant

Description

@charleslbryant

User Story

As an operator, I can update existing workflows from JSON

Command

forge-dotnet update-workflow <id> <file.json>

Input

Workflow ID + JSON file with updated definition

API Integration

PUT/PATCH /workflows/{id} endpoint

Acceptance Criteria

  • Validates workflow exists before update
  • Validates JSON file and schema
  • Updates workflow definition via API
  • Confirms successful update
  • Handles version conflicts gracefully

Tasks Breakdown

  • Extend IWorkflowService with UpdateWorkflowAsync method
  • Extend N8nWorkflowClient with update endpoint
  • Implement UpdateWorkflowCommand with validation
  • Add version conflict handling
  • Add comprehensive error handling and user feedback
  • Write unit tests for all components including conflict scenarios
  • Update documentation

Parent Issues

Priority

Medium - Most complex - combines get/create functionality

Metadata

Metadata

Assignees

No one assigned

    Labels

    crdChange Request Document - User StoryfutureLower priority - backlog

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions