POST - Create Template Folder
/api/public/template-foldersCreate a template folder
Creates a new folder inside the TechWriter Template Library. Provide a folder name and, optionally, the user groups and individual users who should have access. On success the API returns the new folder ID along with the creation timestamp.
Folder names must be unique among root-level folders in the workspace. Use groupIds for team-wide access and userIds for individual exceptions — both arrays may be empty if the folder is private to the creator.
Query parameters
None — this endpoint does not accept any query string parameters.
Request headers
Request body
Send a JSON object with the folder name and (optionally) the groups or users that should receive access.
Response fields
Returned on a successful 201 Created response.
Response codes
The API uses conventional HTTP status codes. 2xx indicate success, 4xx indicate client errors, and 5xx indicate server-side issues.
Example request
curl -X POST "{{env_base_uri}}/api/public/template-folders" \
-H "Authorization: Bearer {YOUR_BEARER_TOKEN}" \
-H "Accept: */*" \
-H "Content-Type: application/json" \
-d Example response
{
"data": {
"folderId": "8a921f63-e90b-4296-83b5-2a793817e778",
"name": "Onboarding Templates",
"createdDate": "2026-01-30T08:53:05.1504161-08:00"
},
"success": true
}Granting access later
You don't have to assign access at creation time. Send an empty groupIds and userIds to keep the folder private, then share it later through the share endpoint or the Template Library UI.