Folders
Group forms into folders.
List folders
GET /api/v1/folders
Returns every folder in the active workspace that the caller can see. Not paginated.
Service account scope: forms:read
Example request
curl "https://acme.formcel.com/api/v1/folders" \
-H "Authorization: Bearer $FORMCEL_API_KEY" Responses
200All visible folders.401The API key is missing or invalid.
Response body FolderList
dataarray of FolderSummary requiredtotalinteger requiredlimitinteger requiredoffsetinteger required
FolderSummary
idstring requiredlabelstring requirediconstring requiredcolorstring requiredparent_idstring- Omitted for top-level folders.
sort_orderinteger requiredrolestring required- The caller's role on the folder. New values may be added.
created_atstring (date-time) requiredupdated_atstring (date-time) required
Create a folder
POST /api/v1/folders
Creates a folder in the active workspace. Requires edit access to the workspace.
Service account scope: forms:write
Request body
labelstring requirediconstring- Defaults to "folder" when empty.
colorstringparent_idstring- Create the folder inside this folder.
Example request
curl -X POST "https://acme.formcel.com/api/v1/folders" \
-H "Authorization: Bearer $FORMCEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label":"Marketing","color":"blue"}' Responses
201The created folder.400The request body or parameters are invalid.401The API key is missing or invalid.403The caller lacks access to the resource, or the service account lacks the required scope.
Response body FolderSummary
idstring requiredlabelstring requirediconstring requiredcolorstring requiredparent_idstring- Omitted for top-level folders.
sort_orderinteger requiredrolestring required- The caller's role on the folder. New values may be added.
created_atstring (date-time) requiredupdated_atstring (date-time) required
Update a folder
PATCH /api/v1/folders/{id}
Updates folder properties. Only the fields present in the body change. Send parent_id as null to move the folder to the top level. Requires the owner or editor role.
Service account scope: forms:write
path parameters
idstring required- Folder ID.
Request body
labelstringiconstringcolorstringparent_idstring or null- Send null to move the folder to the top level.
sort_orderinteger
Example request
curl -X PATCH "https://acme.formcel.com/api/v1/folders/ID" \
-H "Authorization: Bearer $FORMCEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label":"Campaigns","parent_id":null}' Responses
200The updated folder.400The request body or parameters are invalid.401The API key is missing or invalid.403The caller lacks access to the resource, or the service account lacks the required scope.404The resource does not exist.
Response body FolderSummary
idstring requiredlabelstring requirediconstring requiredcolorstring requiredparent_idstring- Omitted for top-level folders.
sort_orderinteger requiredrolestring required- The caller's role on the folder. New values may be added.
created_atstring (date-time) requiredupdated_atstring (date-time) required
Delete a folder
DELETE /api/v1/folders/{id}
Deletes the folder. Forms inside it are kept and become unfiled. Only the owner can delete a folder.
Service account scope: forms:write
path parameters
idstring required- Folder ID.
Example request
curl -X DELETE "https://acme.formcel.com/api/v1/folders/ID" \
-H "Authorization: Bearer $FORMCEL_API_KEY" Responses
204The folder was deleted.401The API key is missing or invalid.403The caller lacks access to the resource, or the service account lacks the required scope.404The resource does not exist.