Eagle API Document
Search…
Eagle API Document
Overview
Application
/api/application/info
Folder
/api/folder/create
/api/folder/rename
/api/folder/update
/api/folder/list
/api/folder/listRecent
Item
/api/item/addFromURL
/api/item/addFromURLs
/api/item/addFromPath
/api/item/addFromPaths
/api/item/addBookmark
/api/item/info
/api/item/thumbnail
/api/item/list
/api/item/moveToTrash
/api/item/refreshPalette
/api/item/refreshThumbnail
/api/item/update
Library
/api/library/info
/api/library/history
/api/library/switch
Examples
Using Eagle API with Tampermonkey
Changelog
Powered By
GitBook
/api/folder/create
POST
Create a folder. The created folder will be put at the bottom of the folder list of the current library.
Parameter
Description
folderName
The name of the Folder
parent
ID of the parent folder
Sample Code:
1
var
data
=
{
2
"folderName"
:
"The Folder Name"
3
};
4
5
var
requestOptions
=
{
6
method
:
'POST'
,
7
body
:
JSON
.
stringify
(
data
),
8
redirect
:
'follow'
9
};
10
11
fetch
(
"http://localhost:41595/api/folder/create"
,
requestOptions
)
12
.
then
(
response
=>
response
.
json
())
13
.
then
(
result
=>
console
.
log
(
result
))
14
.
catch
(
error
=>
console
.
log
(
'error'
,
error
));
Copied!
Results returned:
1
{
2
"status"
:
"success"
,
3
"data"
:
{
4
"id"
:
"KBJJSMMVF9WYL"
,
5
"name"
:
"The Folder Name"
,
6
"images"
:
[],
7
"folders"
:
[],
8
"modificationTime"
:
1592409993367
,
9
"imagesMappings"
:
{},
10
"tags"
:
[],
11
"children"
:
[],
12
"isExpand"
:
true
13
}
14
}
Copied!
Application - Previous
/api/application/info
Next - Folder
/api/folder/rename
Last modified
9mo ago
Copy link