-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
crdChange Request Document - User StoryChange Request Document - User StoryfutureLower priority - backlogLower priority - backlog
Description
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
- Part of PRD PRD: Workflow Management Commands #2: Workflow Management Commands
- Depends on CRD-2.1, CRD-2.2, and CRD-2.3
Priority
Medium - Most complex - combines get/create functionality
Metadata
Metadata
Assignees
Labels
crdChange Request Document - User StoryChange Request Document - User StoryfutureLower priority - backlogLower priority - backlog