Skip to main content

Objects

GET All Objects#

Get all bucket objects or specific folder objects.

POST
MethodPOST
URL or EndPoint/api/v{version}/projects/{projectId}/buckets/{name}/objects/get
HeadersAuthorization
ParametersprojectId,name, version
Body{key,maxKeys,continuationToken}

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}YesGuidf5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the id of project
{name}YesstringrandombucketShows the bucket name

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API
Project IdYesstring($Guid)f5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the project id of API
NameYesstringrandombucketShows the bucket name

Request body#

{  "key": "string",  "maxKeys": 0,  "continuationToken": "string"}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
keyYesstring"string"Send the key of Folder to get all objects
maxKeysYesinteger($int32)0Send the number of objects to be listed.
continuationTokenYesstring"string"Send the key of an object to start listing other objects

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "objectListModel": [      {        "key": "object",        "bucket": "bucketname",        "size": 0,        "isFolder": true,        "lastModified": "2021-06-30T12:01:51.225Z",        "status": 0,        "eventType": 0,        "url": "string"      }    ],    "storageEventTypeOptions": {      "additionalProp1": 0,      "additionalProp2": 0,      "additionalProp3": 0    }  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]
keystring"string"Returns the key of an object.
bucketstring"string"Returns bucket name.
sizestring"string"Returns the size of an object.
isFolderbooltrueReturns if object is a folder.
lastModifiedDateTime"2021-06-30T12:01:51.225Z"Returns the last modified date
statusinteger($int32)0Returns status of an object.
eventTypeinteger($int32)0Returns the event type of an object.
urlstring"string"Return the url of an object.
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

POST Object#

Add new object to a bucket.

POST
MethodPOST
URL or EndPoint/api/v{version}/projects/{projectId}/buckets/{name}/objects
HeadersAuthorization
ParametersprojectId, name, version
Body{ key, isFolder, duration, contentType, isPublic }

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}YesGuidf5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the id of project
{name}YesstringrandombucketShows the bucket name

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API
Project IdYesstring($Guid)f5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the project id of API
NameYesstringrandombucketShows the bucket name

Request body#

{  "key": "string",  "isFolder": true,  "duration": 0,  "contentType": "string",  "isPublic": true}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
keyYesstring"string"Send the key to create new object.
isFolderYesstring"string"Send true if object is a folder
durationNoint0Send the duration if for the presigned Url for upload an object.
contentTypeYesstring"string"Send the content type of an object.
isPublicYesstring"string"Sent true if you want to upload a public object.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": "string",  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultstring"string"Returns ETag if folder is created or presigned URL for uploading an object
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 400 Bad Request
  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

POST Quick Share Link#

Gets a presigned URL for sharing an object.

POST
MethodPOST
URL or EndPoint/api/v{version}/projects/{projectId}/buckets/{name}/objects/url
HeadersAuthorization
ParametersprojectId, name, version
Body{ key, isFolder, duration, contentType, isPublic, versionId }

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}YesGuidf5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the id of project
{name}YesstringrandombucketShows the bucket name

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API
Project IdYesstring($Guid)f5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the project id of API
NameYesstringrandombucketShows the bucket name

Request body#

{  "key": "string",  "duration": 0,  "contentType": "string",  "isPublic": true,  "versionId": "string"}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
keyYesstring"string"Send the key to create a presigned url for that object.
durationNoint($int32)0Send the duration for link to expire.
contentTypeNostring"string"Send the content type of an object.
isPublicNobooltrueNo needded.
isPublicNostring"string"Send the version id to get a specific version of an object.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": "string",  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultstring"string"Returns presigned URL for sharing an object
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 400 Bad Request
  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

DELETE Object#

Deletes a object associated with this key.

DELETE
MethodDELETE
URL or EndPoint/api/v{version:apiVersion}/projects/{projectId}/buckets/{name}/objects
HeadersAuthorization
ParametersprojectId, name, version
Bodykeys[], prefixes[]

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}YesGuidf5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the id of project
{name}YesstringrandombucketShows the bucket name

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API
Project IdYesstring($Guid)f5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the project id of API
NameYesstringrandombucketDisplays the bucket name

Request body#

{  "keys": [    "string"  ],  "prefixes": [    "string"  ]}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
keysNoList < string >"string"Send the keys of Objects to be deleted
prefixesNoList < string >"string"Send the prefixes to be deleted

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": true,  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]
keysList < string >"string"Returns the keys of the objects.
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

PUT Object#

Move or rename objects.

PUT
MethodPUT
URL or EndPoint/api/v{version}/projects/{projectId}/buckets/{name}/objects/move
HeadersAuthorization
ParametersprojectId, name, version
Body{ key[], prefixes[] }

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}YesGuidf5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the id of project
{name}YesstringrandombucketShows the bucket name

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API
Project IdYesstring($Guid)f5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the project id of API
NameYesstringrandombucketShows the bucket name

Request body#

{  "keys": {    "key1": "newkey1",    "key2": "newkey2",    "key3": "newkey3"  },  "prefixes": {    "folder1/": "newFolder1/",    "folder2/": "newFolder2/",    "folder3/": "newFolder3/"  }}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
keysNoDictionary < string,string >Dictionary < string,string >Send the key as old key and value as new key
prefixesNoDictionary < string,string >Dictionary < string,string >Send the key as old key and value as new key

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": true,  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultbooltrueReturns True if folder is deleted or moved
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 400 Bad Request
  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found