Skip to content

Upload Object

PUT
/v1/object/{bucket}/{key}

Upload a file to a Smart Bucket or regular bucket. The bucket parameter (ID) is used to identify the bucket to upload to. The key is the path to the object in the bucket.

Authorizations

Parameters

Path Parameters

bucket
required
string

The bucket identifier

key
required
string

The object key/path

Request Body required

string format: binary

Responses

200

Upload successful

object
success
required
boolean
bucket
required
string
key
required
string

400

Error response

object
code
required

Error code

string
Allowed values: INVALID_ARGUMENT UNAUTHENTICATED PERMISSION_DENIED NOT_FOUND INTERNAL
INVALID_ARGUMENT
message
required

Error message

string
Missing required parameter: input

403

Error response

object
code
required

Error code

string
Allowed values: INVALID_ARGUMENT UNAUTHENTICATED PERMISSION_DENIED NOT_FOUND INTERNAL
INVALID_ARGUMENT
message
required

Error message

string
Missing required parameter: input