Skip to main content

Mkdir

This api will make the directory on specific storage path.

Mkdir Api options

The options available in this api are described below:

Option nameTypeDefault ValueRequiredDescription
PathstringThe storage path to create the directory on

Calling Mkdir Api

For calling this api, the following details are required to apply:

note

The options and parameters introduced in the previous section must be included as json data in the request body part.

URLMethodContentTypeBody
http://localhost:5860/storage/mkdirPOSTapplication/json
{
"path": <STRING VALUE>
}

Now, if we want to have these details in the form of an http api call, open a new terminal and enter the following command:

info

First of all make sure flowsynx is running.

curl -X POST -H "Content-Type: application/json" -d '{ "path": "/test/" }' http://localhost:5860/storage/mkdir

Also you can use Http Api test clients to test this api. Anyway, after executing this api, a result like below will be obtained.

{
"data": null,
"messages": [
"The directory was created successfully."
],
"succeeded": true
}

The answer is divided into three data, messages, and succeeded parts. succeeded indicates the status of the execution of this api which is boolean value and can be true or false. messages also indicates the list of possible messages that are returned with the response. data contains the data to be returned.