DE API Documentation

View on GitHub

Batch Directory Creation

Secured Endpoint: POST /secured/filesystem/directories

Delegates to data-info: POST /data/directories

This endpoint is a passthrough to the data-info endpoint above. Please see the data-info documentation for more information.

Directory Creation

URL Path: /secured/filesystem/directory/create

HTTP Method: POST

Error Codes: ERR_BAD_OR_MISSING_FIELD, ERR_NOT_WRITEABLE, ERR_EXISTS, ERR_DOES_NOT_EXIST, ERR_NOT_A_USER

Request Body:

{"path" : "/tempZone/home/rods/test3"}

Response Body:

This endpoint uses a similar response as the /secured/filesystem/stat endpoint. For example:

{
    "id": "/tempZone/home/rods/test3",
    "path": "/tempZone/home/rods/test3",
    "label": "test3",
    "type": "dir",
    "date-modified": 1397063483000,
    "date-created": 1397063483000,
    "permission": "own",
    "share-count": 0,
    "dir-count": 0,
    "file-count": 0
}

Curl Command:

curl -H "$AUTH_HEADER" -H "Content-Type:application/json" -d '{"path" : "/tempZone/home/rods/test3"}' "http://127.0.0.1:3000/secured/filesystem/directory/create"