Skip to main content
Version: v1 (Current)

External App Version and Asset APIs

CI integrations can update an existing External App version asset with PUT or PATCH /api/v1/plugins/external-apps/{external_app}/versions/{version}/assets/{asset}. Both methods reach the same handler and accept the supplied mutable fields. This updates asset metadata, not an uploaded binary, an AppUI app's source files or a published release. External Apps are a separate backend/direct-workspace capability; they are not a current top-level Developer Hub rail entry.

Select the app, version and token​

Use the External App slug, its version number, and the asset's row ID. The version is resolved within that app; asset fetches are scoped to that version's assets. Do not substitute the version-row ID or a file name for these parameters. Missing app/version/asset returns not found rather than selecting a different release.

Authenticate with a Plugin API token through the supported Sanctum bearer flow. The plugin-token middleware requires the correct token type, active state and unexpired validity. Updating additionally requires the same team and explicit write access to this External App. A project/page/reader credential or ordinary administrator token is not a substitute. Middleware records token usage, so even an authenticated read is not a guaranteed zero-write probe. Keep the token in the CI secret store rather than a public site bundle.

The route group limits requests to 60 per minute; upload and publish have separate stricter limits. Metadata updates use the group limit. Honor rate-limit responses and avoid repeatedly submitting merely to refresh a UI.

Update draft version configuration​

Use PUT or PATCH /api/v1/plugins/external-apps/{external_app}/versions/{version}. Supply the External App slug and its version number explicitly, even though the underlying relation registrar permits an optional member placeholder. The number is neither a version-row ID nor the external_version display/release string. The version is resolved through this app's versions relation. The token requirements and 60-per-minute group limit above apply; version update requires same-team explicit write access.

The selected partial fields are external_version (nullable string, maximum 50), notes/readme/changelog (nullable strings), and settings, metadata, platform_requirements and download_page_settings (nullable arrays/objects). Omitted keys are preserved. The request overrides the model's filled external_version rule with nullable plus an app-scoped uniqueness rule excluding deleted rows and the selected version-row ID. A supplied null is accepted by that selected request; it does not rename the numeric version. The actual prepared app/version context and uniqueness query still need deployment verification.

For example, this synthetic body changes notes and replaces metadata:

{
"notes": "Documentation CI draft configuration example",
"metadata": {"release_channel": "partner-preview"}
}

Supplied JSON attributes replace their complete stored value. Preserve other desired metadata/settings keys deliberately rather than assuming a nested merge. The array rules do not certify compatibility, a valid download-page schema or runnable client settings. There is no selected update rule for version number, app ownership, is_published/published_at, current-version pointer, asset bytes or arbitrary build artifacts; an accepted response does not mean those changed.

The handler refuses modification when is_published is true, returning 422 before saving. That guard does not separately test a historical published_at value; do not treat a cleared flag as an authorized historical-release edit. Coordinate immutable releases through the supported draft/publish workflow. Updating configuration does not publish, create a new draft, advance the app's current pointer, update asset bytes or deliver an installed-client update. Publishing is a distinct endpoint/workflow with its own checks; do not call it merely to verify an update.

A successful update returns the data resource. Read back the same app/version through its authorized version GET and inspect persisted values. Optional includes are assets and pluginExternalApp; nested asset/app serialization and privacy are not certified by this update contract. No dedicated External App version resource exists in the reviewed source, so the reference keeps model-based output open. Token middleware records usage even on reads.

After an uncertain response, reconcile the original app/version and changed values before retrying. This updater adds no concurrency precondition, idempotent receipt or explicit service transaction; outer Orion transactions are disabled. A save can precede cache/refetch/serialization failure, and success does not confirm cache propagation or client delivery. Test actual token scope, foreign app/version, published refusal, null/whole-value replacement, uniqueness, competing CI writers and recovery in an authorized environment. No real version or token-usage operation was performed for this documentation check.

Update only intended metadata​

This synthetic JSON is not submitted:

{
"description": "Example desktop installer for partner testing",
"asset_class": "dist",
"metadata": {
"release_channel": "partner-demo"
}
}
FieldUpdate validation
descriptionOptional string or null; the update rules do not impose creation's 255-character maximum
asset_classOptional non-null string: dist, icon, readme, screenshot or other
metadataOptional PHP array-compatible JSON object/array or null

Omitted fields remain unchanged. PUT does not require a complete replacement document here. The update path fills the supplied attributes and saves; metadata is assigned as a value, not merged key by key. Preserve existing metadata in your intended payload if needed, coordinate concurrent writers and read back the result. Do not assume a metadata key controls release routing or installer behavior merely because it was stored.

The update whitelist does not contain file_name or a binary field. Use the separately supported upload workflow for a binary replacement, then verify the resulting asset and processing state. Changing asset_class is metadata validation, not a new MIME scan or proof that existing bytes suit the new class.

The handler refuses updates when the selected version's is_published flag is true, with 422. This reviewed mutation guard does not also test a historical published_at value. Coordinate release changes through the supported version workflow rather than assuming this endpoint supplies a universal historical-immutability guarantee.

Inspect and troubleshoot​

A successful update returns HTTP 200 with the updated resource representation. The reference retains a bounded object response; full asset serializer/upload-processing fields are not certified by this metadata-only review. Read back the same app/version/asset and inspect the intended values. A 200 does not upload a replacement, publish a version, advance a current-version pointer or prove an installed client receives it.

ResultCheck
401/403Sanctum authentication, Plugin API token type, active/expiry state, same team and write grant
404App slug, app-owned version number and asset ID in that version
422Published version, nullable versus required supplied types, supported class and metadata shape
429Group quota and concurrent CI processes
Unexpected metadataWhole-value assignment, omitted versus null values and concurrent writers
Binary unchangedThis endpoint updates metadata; inspect the separate upload operation and selected asset

In an authorized test environment, verify a writable token, read-only and foreign-team grants, a foreign-version asset, published-version refusal, omitted fields and explicit null/replacement behavior. These are durable metadata/token-usage operations and have not been executed for this documentation checkpoint. Structural example checks do not establish deployed token isolation, persistence, upload processing or release delivery.