PUT
/
{objectKey}
curl -X PUT "https://mybucket.storage.nami.cloud/example.jpg" \
  -H "Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20231028/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-date, Signature=fe5f80f77d5fa3beca038a248ff027d0445342fe2855ddc963176630326f1024" \
  -H "Content-Type: image/jpeg" \
  -H "Content-Length: 11434" \
  --data-binary "@example.jpg"

Make sure you have WRITE permission on the bucket.

Put Object

Adds an object to a bucket. The object data is sent in the request body.

Base URL

https://${bucketname}.storage.nami.cloud

Parameters

objectKey
required

The key of the object to create

Headers

Content-Length
required

Size of the object in bytes

Content-Type

A standard MIME type describing the format of the object data

x-amz-storage-class

Storage class to use for storing the object

Request Examples

curl -X PUT "https://mybucket.storage.nami.cloud/example.jpg" \
  -H "Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20231028/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-date, Signature=fe5f80f77d5fa3beca038a248ff027d0445342fe2855ddc963176630326f1024" \
  -H "Content-Type: image/jpeg" \
  -H "Content-Length: 11434" \
  --data-binary "@example.jpg"

Response Example

HTTP/1.1 200 OK
x-amz-id-2: YgIPIfBiKa2bj0KMgUAdQkf3ShJTOOpXUueF6QKo
x-amz-request-id: 236A8905248E5A01
Date: Wed, 28 Oct 2023 22:32:00 GMT
ETag: "6805f2cfc46c0f04559748bb039d69ae"
Content-Length: 0
Server: Nami Cloud

Authorizations

Authorization
string
header
required

AWS Signature Version 4

Path Parameters

objectKey
string
required

Key of the object

Body

application/octet-stream · file

The body is of type file.

Response

200

Object uploaded successfully