Storage
Create a folder in a writable Storage workspace.
Create a folder in a writable Storage workspace. The request enforces Storage access, workspace ownership, and entry lifecycle state.
POST
/
api
/
v1
/
storage
/
workspaces
/
{workspaceId}
/
folders
Create a folder in a writable Storage workspace.
curl --request POST \
--url https://api.revoengine.com/api/v1/storage/workspaces/{workspaceId}/folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/storage/workspaces/{workspaceId}/folders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/storage/workspaces/{workspaceId}/folders"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Path Parameters
Body
application/json
Folder name.
Parent folder id. Omit for root.
Optional configured storage id for root-level folders. Omit for managed default storage. Ignored when parentStorageEntryId is provided.
Folder metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use.
Optional external reference id.
Optional external reference type.
Optional external reference version.
Whether this folder is restricted to the provided users/groups.
Explicit allowed group ids when restricted.
Explicit allowed user ids when restricted.
Response
200
OK.
⌘I
Create a folder in a writable Storage workspace.
curl --request POST \
--url https://api.revoengine.com/api/v1/storage/workspaces/{workspaceId}/folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/storage/workspaces/{workspaceId}/folders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/storage/workspaces/{workspaceId}/folders"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
