Complete upload
POST /assets/{assetId}/complete
POST /assets/{assetId}/complete
Marks the asset as readable. Returns a 422 error if the associated file has not been uploaded or if the checksum, content type, or size do not match the expected values.
This operation must be called within 60 minutes of asset creation. After that deadline, the asset is considered expired and will be automatically deleted.
assetIdstring✻appIdstringThe app the asset is expected to belong to. Only used (and required) when authenticating with thetrustedServiceWithUser security scheme, which has no app of its own — used to keep the operation
app-scoped for that scheme, the same as it already is for accessToken. Ignored when authenticating
with accessToken, whose own app is used instead.
idstring✻appIdstring✻userIdstring✻storageKeystring✻checksumstring✻The base64 encoded, 256-bit SHA256 digest of the asset file.
44..44 characters"PMn3M4bMd4BMeNhBEDZNQLYxOa6l0luM+IrDA3pZlpY="contentTypestring✻filenamestring✻sizeinteger✻The size of the asset file in bytes. Must be a positive integer not exceeding 20 MiB.
10245242880statusstring✻downloadUrlstring✻A presigned URL for upload or download operations expiring after 60 minutes.
"https://object-storage.hedia.com/bucket/key?X-Amz-Expires=3600&X-Amz-Signature=signature"createdobject✻Information about the creation of an entity.
atstring✻byobject✻id✻typestring✻"app""system""user"updatedobjectInformation about the update of an entity.
atstring✻byobject✻id✻typestring✻"app""system""user"