Skip to content

Create a Folder

Endpoint used to create a folder in a Toolzz Bots workspace.

Terminal window
curl --request POST \
--url 'https://bots.toolzz.ai/api/v1/folders' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"workspaceId": "<string>",
"foldername": "<string>"
}'
{
"folder": {
"id": "<string>",
"name": "<string>",
"workspaceId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}
ParameterTypeDescriptionRequired
AuthorizationStringAccess token (must contain “Bearer” before the token)Yes
ParameterTypeDescriptionRequired
workspaceIdstringThe unique identifier of the workspace to create a folder for.Yes
foldernamestringThe name for the new folder.Yes

KeyTypeDescription
folderobjectThe workspace folder information.
folder.idstringThe folder unique identifier.
folder.namestringThe folder name.
folder.workspaceIdstringUnique identifier of the workspace the folder belongs to.
folder.createdAtstringThe folder creation date.
folder.updatedAtstringThe folder last update date.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request.