Folders
List
Get a list of all Folders.
Definition
GET /api/folders
Example Request
$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('GET', '/api/folders', [
'headers' => ['Authorization' => "Bearer {accessToken}"]
]);Example Response
[
{
"id": 1,
"parent_folder_id": null,
"type": "form",
"name": "Folder 1",
"sort_number": 1,
"created_at": "2019-01-25 10:56:16",
"updated_at": "2019-01-25 10:56:16",
"folder": null
},
{
"id": 2,
"parent_folder_id": null,
"type": "form",
"name": "Folder 2",
"sort_number": 2,
"created_at": "2019-01-25 10:56:18",
"updated_at": "2019-01-25 10:56:18",
"folder": null
}
]List by type
Get a list of all Folders by type.
Definition
GET /api/folders/{type}
Example Request
Example Response
Create
Create a new Folder.
Definition
POST /api/folders
Request Keys
Key
Type
Default
Description
parent_folder_id
integer
null
Related parent Folder
type *
string
-
Relation type of the Folder (e.g. form)
name *
string
-
Name of the Folder
Keys with * are required.
Example Request
Example Response
Update
Update an existing Folder by id.
Definition
PUT /api/folders/{id}
Request Keys
Key
Type
Description
parent_folder_id
integer
Related parent Folder
name
string
Name of the Folder
Example Request
Example Response
Delete
Delete an existing Folder by id.
Definition
GET /api/folders/{id}
Example Request
Example Response
Last updated