If the file is loaded but not initialized, the file is saved to the specified directory.
If there already is a file with the same name in the directory, a prefix with a number will be added it it's name: (1), etc.
Initialized files are moved to another directory.

Request

POST /pub/v1/disk/file/move

Query parameters

Parameter name Value Description Additional
directoryID uuid

ID of the directory where the file is moved

Required

Request body

The request body takes a complete resource  Moving file to directory - Request. Containing the following writable properties:

{
    "files": [
        {
            "hash": "uuid",
            "name": "string"
        }
    ]
}

Properties

Name Type Description Additional
files[] array

Files to move

Optional.
files[].hash uuid

File ID

Optional.
files[].name string

File name

Optional.

Authorization

This request requires the use of one of following authorisation methods: API key

Response

The following HTTP status codes may be returned.

Status code Description Resource
200 OK

Completed

402 Payment Required

Not enough disk space

403 Forbidden

No permissions to create files

409 Conflict

Unable to create a unique name for the file

default

Server response when the file is moved into the folder

Server response when the file is moved into the folder (Moving file to directory)