Folders

Update a folder

Renames the folder and returns it; the id and the items in it stay. 0 renames General. Names need not be unique.

patch/v1/sites/{site_id}/folders/{folder_id}

Request

  • Base URL
    https://api.getsitecontrol.com
  • Auth
    HTTP bearer

Path parameters

site_idinteger required
folder_idinteger required

Folder id from list_folders with the same type; 0 is General

Query parameters

type'widget' | 'segment' | 'broadcast' | 'automation' required

The items a folder holds. widget: widgets. segment: contact segments. broadcast: e-mail broadcasts. automation: automations.

The items the folders hold; a folder belongs to one kind

Request body

namestring required

Surrounding spaces are trimmed; names need not be unique

Response

Successful Response

idinteger required

0 is General, where items outside any folder are

namestring required

Changes

No recorded changes to this operation across all 1 revision of this API.