Skip to main content
POST
Create a Fluid OS widget package version

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json

Request payload

package_key
string
required

Non-empty, object-path-safe company-owned widget package key. Use URL-safe characters only; . and .. are not accepted.

Minimum string length: 1
Pattern: ^(?!\.\.?$)[A-Za-z0-9._~-]+$
version
string
required

Non-empty, object-path-safe widget package version identifier accepted in the URL and upload path. Dotted versions such as 1.0.0 are accepted; only exact . or .. path segments and characters outside [A-Za-z0-9._~-] are rejected.

Minimum string length: 1
Pattern: ^(?!\.\.?$)[A-Za-z0-9._~-]+$
builder_version
string
required

Fluid OS builder version that produced this package.

Minimum string length: 1
cli_version
string
required

Fluid OS CLI version that published this package.

Minimum string length: 1
runtime_version
string
required

Fluid OS runtime version targeted by this package.

Minimum string length: 1
manifest_hash
string
required

SHA256 checksum of the serialized manifest JSON.

Minimum string length: 1
manifest
object
required

Widget package manifest JSON. It must use the supported widget manifest structure, contain at least one extractable widget type, and every widget type in that structure must use the company-owned prefix company.<package_key>..

artifacts
(Widget script artifact · object | Widget manifest artifact · object | Stylesheet artifact · object | Source map artifact · object)[]
required

Top-level package artifacts to upload. The list must include widget.js and manifest.json.

Minimum array length: 2

Artifact metadata required before Fluid OS widget package upload URLs can be issued. Artifact paths must be unique within the request, and the artifact list must include widget.js and manifest.json before upload URLs are issued. Artifact paths are top-level package artifact filenames only; accepted names are widget.js, manifest.json, *.css, and *.js.map with no slash paths. Accepted content types are application/javascript for widget.js, application/json for manifest.json and *.js.map, and text/css for *.css. Byte sizes are non-negative and checked against configured per-artifact and bundle limits; defaults are 5 MiB per artifact and 10 MiB per bundle unless environment config changes them.

build_metadata
object

Optional publisher metadata stored with the package version.

Response

Created

Upload session details for a pending Fluid OS widget package version.

version_id
integer
required
artifact_base_url
string<uri>
required
uploads
object[]
required
warnings
object[]

Present when a best-effort side effect of the publish failed — currently only the widget's Git repo provisioning (scope git_sync). The publish itself succeeded, but fluid widget clone will not work until a later publish re-provisions the repo.