worker

Upload an object

Changed on

Uploads an object to the Sia network.

put/worker/object/{key}

Request

  • The document declares no server URL.
  • Auth
    none declared

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

Request body application/octet-stream

string binary required

Response

Successfully uploaded object

Changes

    • breaking

      for the query request parameter minshards, default value 10 was added

    • breaking

      for the query request parameter totalshards, default value 30 was added

    • breaking

      for the query request parameter minshards, the format changed from uint32 to uint8

    • breaking

      for the query request parameter totalshards, the format changed from uint32 to uint8

    • warning

      for the query request parameter minshards, the min was set to 1.00

    • warning

      for the query request parameter totalshards, the min was set to 2.00

    • breaking

      removed the media type text/plain for the response with the status

    • breaking

      removed the media type text/plain for the response with the status

    • breaking

      removed the media type text/plain for the response with the status

    • info

      api tag worker added