Skip to content
This repository was archived by the owner on Aug 23, 2026. It is now read-only.

feat(prompt-categories): add rename endpoint - #3

Merged
jeff-nasseri merged 2 commits into
masterfrom
feature/prompt-category-rename
May 16, 2026
Merged

feat(prompt-categories): add rename endpoint#3
jeff-nasseri merged 2 commits into
masterfrom
feature/prompt-category-rename

Conversation

@jeff-nasseri

Copy link
Copy Markdown
Member

Summary

  • Adds PATCH /prompt-categories/:id endpoint to rename a prompt category
  • New command: UpdatePromptCategoryRequest, UpdatePromptCategoryDto, UpdatePromptCategoryRequestErrorCodes, UpdatePromptCategoryRequestHandler
  • Added UpdatePromptCategory = 224_999 to HandlerCode enum
  • Name uniqueness check excludes the category being renamed (self-rename is a no-op, not a 409)

Test plan

  • Rename a category — verify new name appears in the list
  • Rename to an existing name — verify 4xx error
  • Rename to the same name — verify succeeds without error
  • Rename a non-existent category id — verify 4xx

POST /organizations/:orgId/card-types/:id/clone duplicates a card type
and all its custom fields. The name defaults to "{original}_Copy" with
auto-incrementing suffix to avoid conflicts.
…s/:id)

Adds UpdatePromptCategoryRequest, handler, DTO, and error codes.
Name uniqueness is enforced with a self-excluding check so renaming
a category to its current name succeeds without a 409.
@jeff-nasseri
jeff-nasseri merged commit eb2dc6b into master May 16, 2026
1 check passed
@jeff-nasseri
jeff-nasseri deleted the feature/prompt-category-rename branch May 31, 2026 12:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant