POST
FileFolders.Add
Create a customer file folder. The route validates allowed fields, runs filefolders.add.created automation, and emits realtime filefolders.add.created so file folder pickers can refresh.
Permissions
- User must be logged in with a valid bearer token.
- Returned or changed records are limited by the user permissions, team access, folder access, and account settings.
Action
- Creates a FileFolders record or sends the requested data after validation.
Push Service
Pushes event filefolders.add.created to users who should see this change.
Automation
Runs automation event filefolders.add.created with the record id and submitted parameters after the action succeeds.
Special Instructions
- Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
- Send parameters as POST body fields exactly as documented.
- Send date/time values in UTC Y-m-d H:i:s format when a date or datetime field is used.
Required Parameters
| Name | Type | Sample | Explanation |
|---|---|---|---|
name_hepost | string | חוזים | Hebrew folder name. |
Optional Parameters
| Name | Type | Sample | What it gives |
|---|---|---|---|
name_enpost | string | Contracts | English folder name. |
sub_name_enpost | array|string | Signed | Optional English names for sub-folders. |
sub_name_hepost | array|string | חתום | Optional Hebrew names for sub-folders. |
Authentication
Send the bearer token returned by Login in the request header.
Authorization: Bearer YOUR TOKEN
Sample Request
{
"url": "\/app\/FileFolders.Add",
"method": "POST",
"body": {
"name_en": "Contracts",
"name_he": "חוזים"
},
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"url_user": "https:\/\/{user}.bull36.com\/app\/FileFolders.Add",
"url_domain": "https:\/\/{domain}\/app\/FileFolders.Add"
}Endpoint
POST /app/FileFolders.Add
POST https://{user}.bull36.com/app/FileFolders.Add
POST https://{domain}/app/FileFolders.AddSample Output
{
"success": 1,
"message": "FileFolders.Add created",
"id": "12",
"automation_event": "filefolders.add.created",
"socket_event": "filefolders.add.created"
}JavaScript Example
const token = 'YOUR TOKEN';
const body = new URLSearchParams({ name_he: 'Contracts', name_en: 'Contracts' });
const res = await fetch('/app/FileFolders.Add', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
const data = await res.json();
console.log(data);Error Example
{
"success": 0,
"message": "Failed"
}