v1
latestOpenAPI 3.0.02026-07-17120114186.8 KBworker
Upload an object
Uploads an object to the Sia network.
put/worker/object/{key}
Path parameters
keystring required
Example:folder/file
The key of the file to upload
Query parameters
bucketstring required
The name of the bucket.
Example:default
The name of the bucket the object belongs to
minshardsinteger
The number of data shards a piece of an object gets erasure-coded into
Used to override the minimum number of shards the object should be split into.
totalshardsinteger
The number of total data shards a piece of an object gets erasure-coded into
Used to override the total number of shards the object should be split into.
mimetypestring
The MIME type of the object
Example:text/plain
The MIME type of the object
Response
Successfully uploaded object