Storages API (1.0.0)

Download OpenAPI specification:

Storages API for upload and download

Upload a new file - doesn't allow to override an already existent file

query Parameters
accountId
required
string <uuid>
Example: accountId=bf6f895e-a8a7-462b-9aaa-ae50e4a9cbd9
type
required
string
Enum: "files" "chats"
node
required
string
Example: node=a3a8d5d3-f236-4d00-9ba5-91f5a70d514f

unique identifier of the uploaded file

version
required
integer
Example: version=1

the file version

Request Body schema: multipart/form-data
file
string <binary>

Responses

Upload a file - allows to override an already existent file

query Parameters
accountId
required
string <uuid>
Example: accountId=bf6f895e-a8a7-462b-9aaa-ae50e4a9cbd9
type
required
string
Enum: "files" "chats"
node
required
string
Example: node=a3a8d5d3-f236-4d00-9ba5-91f5a70d514f

unique identifier of the uploaded file

version
required
integer
Example: version=1

the file version

Request Body schema: multipart/form-data
file
string <binary>

Responses

Download a file

query Parameters
accountId
required
string <uuid>
Example: accountId=bf6f895e-a8a7-462b-9aaa-ae50e4a9cbd9
type
required
string
Enum: "files" "chats"
node
required
string
Example: node=a3a8d5d3-f236-4d00-9ba5-91f5a70d514f

unique identifier of the uploaded file

version
required
integer
Example: version=1

the file version

Responses

Delete a file

query Parameters
accountId
required
string <uuid>
Example: accountId=bf6f895e-a8a7-462b-9aaa-ae50e4a9cbd9
type
required
string
Enum: "files" "chats"
node
required
string
Example: node=a3a8d5d3-f236-4d00-9ba5-91f5a70d514f

unique identifier of the uploaded file

version
required
integer
Example: version=1

the file version

Responses

Delete multiple files

query Parameters
accountId
required
string <uuid>
Example: accountId=bf6f895e-a8a7-462b-9aaa-ae50e4a9cbd9
type
required
string
Enum: "files" "chats"
Request Body schema: application/json
required
Array of objects

Responses

Request samples

Content type
application/json
{
  • "ids": [
    ]
}

Copy a file

query Parameters
accountId
required
string <uuid>
Example: accountId=bf6f895e-a8a7-462b-9aaa-ae50e4a9cbd9

account identifier of the source file

type
required
string
Enum: "files" "chats"
sourceNode
required
string
Example: sourceNode=a3a8d5d3-f236-4d00-9ba5-91f5a70d514f

unique identifier of the source file

sourceVersion
required
integer
Example: sourceVersion=1

the source file version

destinationAccountId
required
string <uuid>
Example: destinationAccountId=bf6f895e-a8a7-462b-9aaa-ae50e4a9cbd9

account identifier of the destination file

destinationNode
required
string
Example: destinationNode=a3a8d5d3-f236-4d00-9ba5-91f5a70d514f

unique identifier of the destination file

destinationVersion
required
integer
Example: destinationVersion=1

the destination file version

override
required
boolean
Example: override=true

if true, the destination file will be overridden

Responses