Create folder
POST {{api-server}}/:token/{{api-version}}/folders
This API is used to create new folder.
Body attributes
Attribute | Description | Type | Required |
---|---|---|---|
name | Directory path ending with the new folder name | string | Yes |
Request Body
{"name"=>"/Docs/new"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Filerobot-Key | string | Filerobot Key | |
Content-Type | string |
RESPONSES
status: OK
{"status":"success","action":"folder_created","folder_uuid":"427937a1-f141-53bc-92c4-e6a0956e61c9","folder":{"uuid":"427937a1-f141-53bc-92c4-e6a0956e61c9","path":"/api-demo/test","name":"test","meta":{},"visibility":{"value":"VISIBILITY_INHERIT","inherited":"VISIBILITY_ORGANISATION","set":"VISIBILITY_INHERIT","actual":"VISIBILITY_ORGANISATION"},"visibilities":{"value":"VISIBILITY_INHERIT","inherited":"VISIBILITY_ORGANISATION","set":"VISIBILITY_INHERIT","actual":"VISIBILITY_ORGANISATION"},"updated_at":"2023-07-26T04:50:12Z","created_at":"2023-07-26T04:50:12Z","count":{"files_recursive":0,"files_direct":0},"size":{"total_recursive_bytes":0,"total_recursive_pretty":"0 B"},"public_icon":"https://scaleflex.cloudimg.io/crop/300x300/x/http://www.airstore.io/assets/dir.png"},"api_version":{"hash":"ed8718a742085aed68a46b4a95c50ac0a1d0d1ae","datetime":"2023-07-18T11:26:26+07:00"}}