feat(api): add update app endpoint#6501
Draft
ogzhanolguncu wants to merge 1 commit into
Draft
Conversation
19 tasks
This was referenced Jun 19, 2026
Collaborator
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Jun 19, 2026
2d983d3 to
41476b1
Compare
9d44a2b to
3d02c8b
Compare
3d02c8b to
747ad92
Compare
41476b1 to
2cb7c32
Compare
2cb7c32 to
dbc46ae
Compare
747ad92 to
25609ab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Important
Unkey is not accepting external pull requests at this time. Pull requests from people outside the Unkey team will not be reviewed or merged.
What does this PR do?
Adds the
POST /v2/apps.updateAppendpoint, which allows callers to update an existing app'sname,slug,defaultBranch, anddeleteProtectionfields. All fields exceptappIdare optional — omitted fields are left unchanged. Changing the slug will affect deployment domains generated for the app, and a duplicate slug within the same project returns a 409 conflict.This PR also introduces the
update_appRBAC action and theapp.updateaudit log event, wires up the new route, and exposes the permission in the dashboard root-key dialog for both workspace-wide and per-project scopes.Type of change
How should this be tested?
project.*.update_app) and verify each field can be updated independently, all fields together, and that omitted fields retain their current values (including non-default values set in a prior request).appId, anappIdthat is too short or contains invalid characters, aslugthat is uppercase / contains underscores / has leading or consecutive hyphens / exceeds 256 characters, an empty or overly longname, and malformed JSON — all should return 400.project.*.update_appandproject.<project_id>.update_appgrant access, while unrelated permissions (read_app,create_app, etc.) and no permissions return 403.app_already_existserror type.app.updateaudit log entry scoped to the correct workspace.Checklist
Required
pnpm buildpnpm fmtmise run fmtconsole.logsgit pull origin mainAppreciated