mkdir

To create a new folder in the file storage, use the file/mkdir command:

Copied!
svc=file/mkdir&params={"itemId":<long>,
		               "storageType":<uint>,
		               "path":<text>}

Parameters

Parameter

Description

itemId

Item ID

storageType

Storage type:
public (all users can see and download files),
protected (only users with access rights can see and download files).

path

Relative path from the root folder to the folder you want to create.

Response

If the request is completed successfully, an empty response is returned:

Copied!
{ } 

If the request hasn’t been completed, an error code is returned.

Error codes

Code

Description

1User not authorized.
4Invalid input parameters.
5Failed to create a folder at the specified path.
7Insufficient rights to the item specified in the itemId parameter.
Download PDF file
Download Word document

See also