appcrane_update_app
Patch fields on an existing app to fix missing configuration, update branch, rotate tokens, or adjust resource limits. Only modifies passed fields.
Instructions
Patch fields on an existing app. Use this to fix a missing github_url after the fact, change branch, rotate the github_token, retag with category/visibility, or adjust resource limits — anything you would otherwise need direct DB access for. Only includes fields you pass; omitted fields are left alone. To clear a string field pass an empty string. Returns the same shape as appcrane_get_app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| slug | Yes | App slug to update. | |
| branch | No | ||
| domain | No | ||
| category | No | ||
| github_url | No | github.com URL of the source repo. Pass empty string to clear. | |
| max_ram_mb | No | Per-container memory cap. | |
| visibility | No | ||
| description | No | ||
| source_type | No | ||
| github_token | No | PAT for private clones. Stored encrypted (AES-256-GCM). Omit to leave the existing token alone; pass empty string to clear it; pass a value to rotate. | |
| public_access | No | ||
| frame_ancestors | No | ||
| image_retention | No | ||
| max_cpu_percent | No | Per-container CPU cap (0-100). | |
| auth_bypass_paths | No | v2.7.27: array of path prefixes (e.g. ["/ws/local-runner"]) that bypass SSO forward_auth on this app. Requests under these prefixes reach the container with NO X-AppCrane-* identity headers — the app authenticates them itself (e.g. token in query string). Caddy suppresses access logging for these paths to prevent token leakage to log storage. Pass [] or null to clear. |