Modulify

Create a folder

create_folder

Creates a folder in a workspace to group sites in the dashboard.

Scopesites:writeMakes changes

A folder only ever holds sites from its own workspace, and a site sits in at most one. Creating a folder does not move anything into it, which is what move_sites_to_folder is for. A workspace holds at most 50 folders, after which this is refused.

The slug is derived from the name with a random three character suffix appended, so it is never exactly the name. Read it back from the response, or set it with update_folder_slug. See Folders.

Inputs

Input Type Required Description
workspaceId string Yes The workspace to create it in.
folder_name string Yes The folder name, 2 to 84 characters.