Upload an assets manifest
The manifest JSON (see AssetManifest), at most 4 MiB, 20,000 files and 512 MiB in total, uploaded after every
blob it names. sha256 is the digest of the manifest’s exact bytes; the app then references it as
assets_manifest_ref: "assets/<sha256>". If a blob is missing the answer is 409 blobs-missing with up to 100
digests in missing (and the full count in missing_count); only blobs the team uploaded itself count as present.
Idempotent.
/v1/assets/manifests/{sha256}AuthorizationBearer token · headerrequiredA team API key, sbk_..., from Settings, API keys.
x-api-keyAPI key · headerrequiredThe same key, in a header of its own.
sha256Sha256requiredLowercase hex SHA-256 of the exact bytes of the body.
application/jsonnotFoundstringrequiredWhat a path that is no file answers.
nonesingle-page-application404-pagerunSproutFirstboolean | string[]requiredtrue, false, or a list of /-anchored globs that go to the app before an asset of the same path.
Show propertiesHide properties
booleanstringstringfilesobjectrequiredRequest path (absolute, normalized, for example /index.html) to file.
headersobject[]Show propertiesHide properties
objectpatternstringrequiredsetany[][]requiredunsetstring[]requiredredirectsobject[]Show propertiesHide properties
objectfromstringrequiredtostringrequiredstatusintegerrequiredStored.
sha256Sha256requiredrefstringrequiredfilesintegerrequiredbytesintegerrequiredstoredbooleanrequiredThe request is malformed. path names the field when one is at fault; some refusals (a digest mismatch, a body that is not JSON) carry a message only.
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredinvaliderrorstringrequiredA message for people. Do not parse it.
reasonstringA stable, machine-readable cause, when there is one.
pathstringThe request field at fault.
needstringThe grant a 403 asks for, app:write for example.
retry_after_sintegerNo key, or an invalid, expired or revoked key (unknown or missing API token, invalid, expired or revoked API key). No reason.
errorstringrequiredA message for people. Do not parse it.
reasonstringA stable, machine-readable cause, when there is one.
pathstringThe request field at fault.
needstringThe grant a 403 asks for, app:write for example.
retry_after_sintegerThe key lacks a grant (reason: forbidden, need: "<resource>:<action>").
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredforbiddenneedstringrequiredThe grant, as <resource>:<action>, for example app:write.
Blobs the manifest names are not uploaded (reason: blobs-missing, missing, missing_count).
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredblobs-missingmissingSha256[]requiredUp to 100 of the missing digests.
missing_countintegerrequiredHow many are missing in all.
The body is over the limit for this route (reason: too-large; some refusals carry a message only).
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredtoo-largeerrorstringrequiredA message for people. Do not parse it.
reasonstringA stable, machine-readable cause, when there is one.
pathstringThe request field at fault.
needstringThe grant a 403 asks for, app:write for example.
retry_after_sintegerThe key is rate-limited (key-rate-limited) or the team uploads too fast (upload-rate). Honor Retry-After.
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredkey-rate-limitedretry_after_sintegerrequiredSeconds to wait; also the Retry-After header.
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredupload-rateretry_afterintegerrequiredSeconds to wait; also the Retry-After header.