REST APIs

IDrive EVS REST APIs: Development now made easy!

Create Folder

Create new folder (s) in your IDrive account using the createFolder API.

Quick links

Syntax for ‘createFolder’ API:

https://<server address>/evs/createFolder

Server address:
Use
getServerAddress API to retrieve the IDrive server address.

HTTP method: POST
Input parameters:
uid username or email address
pwd password
pvtkey Private encryption key is an optional parameter and is not required if you opt for the default encryption key during your IDrive account sign up
p Location (path) to create new folder in your account
foldername Name of the folder that you wish to create

Output:
Below is a sample XML output generated during folder creation:
<tree message="SUCCESS" desc="FOLDER CREATED SUCCESSFULLY" />

Description:
  • tree
    Root node with attributes; message and desc.
  • message
    This attribute describes the operation as SUCCESS or FAIL.
  • desc
    This attribute holds the description of the SUCCESS or FAIL case.

The following case explains the expected output during a Failure operation:
  • Failure case

    The output is as follows:
    <tree message="ERROR" desc="FOLDER ALREADY EXISTS" />
    <tree message="ERROR" desc="FOLDER CREATION FAILED" />

Code snippets for Java, PHP, Python and Ruby:
Java:

PHP:

Python:

Ruby: