Справочный центр Wialon

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.

Если вы заметили ошибку в тексте, пожалуйста, выделите её и нажмите Ctrl+Enter.

Ваше сообщение отправлено. Спасибо!

Сообщить об ошибке

Произошла ошибка при отправке формы

Скачать файл PDF
Скачать документ Word

Смотрите также

  • check_items_billing Руководство пользователя
  • library Руководство пользователя
  • list Руководство пользователя