Create a Directory¶
Description¶
This operation allows creating a directory and subdirectories in the Backendless. You can create any number of subdirectories in one request.
The following symbols are forbidden in the directory name:
| Name |
Symbol |
|---|---|
| One dot and a forward slash. |
./ |
| Two dots and one forward slash. |
../ |
| One dot. |
. |
| Two dots. |
.. |
| Single quotation mark. |
' |
| Double quotation mark. |
" |
| Less-than sign. |
< |
| Greater-than sign. |
> |
| Percent sign. |
% |
Method¶
POST
Endpoint URL¶
The xxxx.backendless.app is a subdomain assigned to your application. For more information see the Client-side Setup section of this documentation.
https://xxxx.backendless.app/api/files/<Directory>/<SubDirectory>
where:
| Argument | Description |
|---|---|
<YourDirectory> |
Name of the directory that must be created in the Backendless. |
<YourSubDirectory> |
Optional. Name of the subdirectory that must be created. |
Request Headers¶
None.
Request Body¶
None.
Response Body¶
None.
Example¶
The example below creates a new directory called "TestDir" and the subdirectory "SubTestDir".
curl --location --request POST 'https://xxxx.backendless.app/api/files/TestDir/SubTestDir'
Codeless Reference¶

where:
| Argument | Description |
|---|---|
directory path |
Specify the path where a directory it must be created, for instance the "/TestDirectory/TestSubDirectory/" creates two directories, where the "TestDirectory" is the main directory that is created in the root folder of the Backendless, and the "TestSubDirectory" is the subdirectory created in the "TestDirectory". You can create any number of subdirectories in one request. |
The example below creates the new directory called "TestDir" and the subdirectory "SubTestDir".

The output will look as shown below after the Codeless logic runs:
