Update Folder
Update the details of a specific folder identified by its folderId.
Path Parameters
folderIdstringrequiredThe unique identifier of the folder to update.
Request Body
namestringThe updated name of the folder (e.g., "Updated Workflow Folder").
colorstringrequiredThe color of the folder, specified as one of the following color names with their corresponding hex codes: blue (#3B82F6), green (#10B981), teal (#14B8A6), purple (#8B5CF6), orange (#F97316), red (#EF4444).
iconstringrequiredThe icon identifier for the folder, specified as one of the following: folder, file, phone, headphone, voice, message.
flowTypestringThe updated type of flow, either "call" or "message".
Response Fields
_idstringThe unique identifier of the folder.
workspaceIdstringThe identifier of the workspace where the folder belongs.
namestringThe updated name of the folder.
colorstringThe updated color of the folder, represented as a hex code.
iconstringThe updated icon identifier for the folder.
flowTypestringThe updated type of flow, either "call" or "message".
pathwayModelstringThe model type for flows, derived from flowType.
pathwaysarrayAn array of flow IDs associated with the folder.
createdAtstringTimestamp when the folder was created (ISO 8601 format).
updatedAtstringTimestamp when the folder was last updated (ISO 8601 format).
Example Request
{
"name": "Updated Workflow Folder",
"color": "#00FF00",
"icon": "new-folder-icon"
}
{
"_id": "folder123",
"workspaceId": "workspace456",
"name": "Updated Workflow Folder",
"color": "#00FF00",
"icon": "new-folder-icon",
"flowType": "call",
"pathwayModel": "Flow",
"pathways": ["flow123"],
"createdAt": "2023-10-15T09:30:00Z",
"updatedAt": "2023-10-16T12:00:00Z"
}