Objects
Upload an object
PUT
/storage/buckets/{bucketName}/objects/{key}Upload object bytes directly.
Parameters
UploadObjectParamsbucketNamestring- Bucket name.
keystring- Object key inside the bucket.
bodyUploadBody- Object bytes.
cacheControl?string- Cache-Control value stored with the object.
contentLength?number- Size of the object body in bytes. Use `0` for empty objects or folder markers.
contentType?string- MIME type for the uploaded object. Defaults to `application/octet-stream`.
attributes?StorageAttributes- User-defined object attributes encoded into the `X-Jupiter-Object-Metadata` header.
signal?AbortSignal- Abort signal for cancelling the upload request.
Returns
objectStorageObject- Uploaded object metadata.
uploadedboolean- Whether the object bytes were uploaded.