Skip to main content
POST
Complete a Fluid OS widget package upload

Authorizations

Authorization
string
header
required

Bearer token authentication

Path Parameters

version
string
required

Non-empty, object-path-safe widget package version identifier to verify. 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._~-]+$

Body

application/json

Request payload

package_key
string | null

Optional non-empty, object-path-safe widget package key. When omitted, the company's widget package is used; . and .. are not accepted.

Minimum string length: 1
Pattern: ^(?!\.\.?$)[A-Za-z0-9._~-]+$
artifacts
(Widget script artifact · object | Widget manifest artifact · object | Stylesheet artifact · object | Source map artifact · object)[]

Optional artifact metadata to compare with the stored upload session. When supplied, the list must include exactly the stored upload-session artifact paths; omissions and extras are rejected.

Minimum array length: 1

Optional artifact metadata supplied when completing a widget package upload. Artifact paths must be unique top-level package artifact filenames within the request; 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. sha256/checksum, bytes/size, and contentType/content_type are accepted aliases and must match when both aliases are present; supplied artifact metadata is compared with the stored upload-session/package version artifact metadata during verification. If artifacts are supplied, they must include exactly the stored upload-session artifact paths. Manifest verification is separate and happens against uploaded artifact content.

Response

Success

Approved Fluid OS widget package version details.

status
string
required
packageId
string
required
version
string
required

Non-empty, object-path-safe widget package version identifier. 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._~-]+$
scriptUrl
string<uri>
required
cssUrls
string<uri>[]
required
manifestUrl
string<uri>
required