Add new folder
curl --request POST \
--url https://your-syteca-host/SytecaACB/api/folders \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"parent_folder_id": 1,
"parent_folder_name": "<string>",
"permissions": {
"inherit_users_and_roles": false,
"inherit_features": false,
"users": [
{
"name": "<string>",
"features": []
}
],
"user_groups": [
{
"name": "<string>",
"features": []
}
]
}
}
'import requests
url = "https://your-syteca-host/SytecaACB/api/folders"
payload = {
"name": "<string>",
"description": "<string>",
"parent_folder_id": 1,
"parent_folder_name": "<string>",
"permissions": {
"inherit_users_and_roles": False,
"inherit_features": False,
"users": [
{
"name": "<string>",
"features": []
}
],
"user_groups": [
{
"name": "<string>",
"features": []
}
]
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
parent_folder_id: 1,
parent_folder_name: '<string>',
permissions: {
inherit_users_and_roles: false,
inherit_features: false,
users: [{name: '<string>', features: []}],
user_groups: [{name: '<string>', features: []}]
}
})
};
fetch('https://your-syteca-host/SytecaACB/api/folders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-syteca-host/SytecaACB/api/folders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'parent_folder_id' => 1,
'parent_folder_name' => '<string>',
'permissions' => [
'inherit_users_and_roles' => false,
'inherit_features' => false,
'users' => [
[
'name' => '<string>',
'features' => [
]
]
],
'user_groups' => [
[
'name' => '<string>',
'features' => [
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-syteca-host/SytecaACB/api/folders"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"parent_folder_id\": 1,\n \"parent_folder_name\": \"<string>\",\n \"permissions\": {\n \"inherit_users_and_roles\": false,\n \"inherit_features\": false,\n \"users\": [\n {\n \"name\": \"<string>\",\n \"features\": []\n }\n ],\n \"user_groups\": [\n {\n \"name\": \"<string>\",\n \"features\": []\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://your-syteca-host/SytecaACB/api/folders")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"parent_folder_id\": 1,\n \"parent_folder_name\": \"<string>\",\n \"permissions\": {\n \"inherit_users_and_roles\": false,\n \"inherit_features\": false,\n \"users\": [\n {\n \"name\": \"<string>\",\n \"features\": []\n }\n ],\n \"user_groups\": [\n {\n \"name\": \"<string>\",\n \"features\": []\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-syteca-host/SytecaACB/api/folders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"parent_folder_id\": 1,\n \"parent_folder_name\": \"<string>\",\n \"permissions\": {\n \"inherit_users_and_roles\": false,\n \"inherit_features\": false,\n \"users\": [\n {\n \"name\": \"<string>\",\n \"features\": []\n }\n ],\n \"user_groups\": [\n {\n \"name\": \"<string>\",\n \"features\": []\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"description": "<string>",
"parent_folder_id": 123,
"permissions": {
"inherit_users_and_roles": false,
"inherit_features": false,
"users": [
{
"name": "<string>",
"features": []
}
],
"user_groups": [
{
"name": "<string>",
"features": []
}
]
}
}{
"status": 123,
"message": "<string>"
}{
"status": 123,
"message": "<string>"
}Folders
Add new folder
Creates a new folder with the provided data
POST
/
api
/
folders
Add new folder
curl --request POST \
--url https://your-syteca-host/SytecaACB/api/folders \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"parent_folder_id": 1,
"parent_folder_name": "<string>",
"permissions": {
"inherit_users_and_roles": false,
"inherit_features": false,
"users": [
{
"name": "<string>",
"features": []
}
],
"user_groups": [
{
"name": "<string>",
"features": []
}
]
}
}
'import requests
url = "https://your-syteca-host/SytecaACB/api/folders"
payload = {
"name": "<string>",
"description": "<string>",
"parent_folder_id": 1,
"parent_folder_name": "<string>",
"permissions": {
"inherit_users_and_roles": False,
"inherit_features": False,
"users": [
{
"name": "<string>",
"features": []
}
],
"user_groups": [
{
"name": "<string>",
"features": []
}
]
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
parent_folder_id: 1,
parent_folder_name: '<string>',
permissions: {
inherit_users_and_roles: false,
inherit_features: false,
users: [{name: '<string>', features: []}],
user_groups: [{name: '<string>', features: []}]
}
})
};
fetch('https://your-syteca-host/SytecaACB/api/folders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-syteca-host/SytecaACB/api/folders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'parent_folder_id' => 1,
'parent_folder_name' => '<string>',
'permissions' => [
'inherit_users_and_roles' => false,
'inherit_features' => false,
'users' => [
[
'name' => '<string>',
'features' => [
]
]
],
'user_groups' => [
[
'name' => '<string>',
'features' => [
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-syteca-host/SytecaACB/api/folders"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"parent_folder_id\": 1,\n \"parent_folder_name\": \"<string>\",\n \"permissions\": {\n \"inherit_users_and_roles\": false,\n \"inherit_features\": false,\n \"users\": [\n {\n \"name\": \"<string>\",\n \"features\": []\n }\n ],\n \"user_groups\": [\n {\n \"name\": \"<string>\",\n \"features\": []\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://your-syteca-host/SytecaACB/api/folders")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"parent_folder_id\": 1,\n \"parent_folder_name\": \"<string>\",\n \"permissions\": {\n \"inherit_users_and_roles\": false,\n \"inherit_features\": false,\n \"users\": [\n {\n \"name\": \"<string>\",\n \"features\": []\n }\n ],\n \"user_groups\": [\n {\n \"name\": \"<string>\",\n \"features\": []\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-syteca-host/SytecaACB/api/folders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"parent_folder_id\": 1,\n \"parent_folder_name\": \"<string>\",\n \"permissions\": {\n \"inherit_users_and_roles\": false,\n \"inherit_features\": false,\n \"users\": [\n {\n \"name\": \"<string>\",\n \"features\": []\n }\n ],\n \"user_groups\": [\n {\n \"name\": \"<string>\",\n \"features\": []\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"description": "<string>",
"parent_folder_id": 123,
"permissions": {
"inherit_users_and_roles": false,
"inherit_features": false,
"users": [
{
"name": "<string>",
"features": []
}
],
"user_groups": [
{
"name": "<string>",
"features": []
}
]
}
}{
"status": 123,
"message": "<string>"
}{
"status": 123,
"message": "<string>"
}Authorizations
Access token for authentication
Body
application/json
Name of the folder
Maximum string length:
512Description of the folder
Maximum string length:
2000ID of the parent folder
Required range:
x >= 0Name of the parent folder
Maximum string length:
512Show child attributes
Show child attributes
⌘I