Skip to content

Update a Folder

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

Terminal window
curl --request PATCH \
--url 'https://bots.toolzz.ai/api/v1/folders/{folderId}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"workspaceId": "<string>",
"folder": {}
}'
{
"folder": {
"id": "<string>",
"name": "<string>",
"workspaceId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}
ParameterTypeDescriptionRequired
AuthorizationStringAccess token (must contain “Bearer” before the token)Yes
ParameterTypeDescriptionRequired
folderIdstringThe unique identifier of the folder to update.Yes
ParameterTypeDescriptionRequired
workspaceIdstringThe unique identifier of the workspace the folder belongs to.Yes
folderobject[]The new data to update.Yes

KeyTypeDescription
folderobjectThe updated 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.