Upload file to KrakenFiles.com
Each file upload must be followed through the full 2 steps below.
List folders
REQUEST URL |
https://krakenfiles.com/api/folder | ||||||||
METHOD |
GET | ||||||||
ENCODING |
application/json | ||||||||
HEADERS |
|
||||||||
|
Example request
curl https://krakenfiles.com/api/folder -H "Accept: application/json" -H "X-AUTH-TOKEN: kj!ng%DGffd$49SFn" |
|||||||||
|
Example correct response
http code: 200
{
"status": 200,
"data": [
{
"id": "NTBiNzkzZDhmOTJjMjBhNnrReu7r0j",
"name": "My first folder",
"parentId": null
},
{
"id": "M2NmMmTbH4YHgl4npw",
"name": "sub folder",
"parentId": "NTBiNzkzZDhmOTJjMjBhNnrReu7r0j"
}
]
}
|
|||||||||
Create folder
REQUEST URL |
https://krakenfiles.com/api/folder | ||||||||||||
METHOD |
POST | ||||||||||||
ENCODING |
application/json | ||||||||||||
HEADERS |
|
||||||||||||
PARAMS |
|
||||||||||||
|
Example request
curl -X POST https://krakenfiles.com/api/folder
-H 'Content-Type: application/json'
-H 'Accept: application/json'
-d '{"name": "My movies": "folderId": "s#&dV@#Ia2b5cRh"}'
|
|||||||||||||
|
Example correct response
http code: 200
{
"status": 200,
"data": {
"message": "Folder created successfully"
}
}
|
|||||||||||||
|
Example error response
http code: 500
{
"status": 500,
"data": {
"message": "Incorrect payload"
}
}
|
|||||||||||||
Rename folder
REQUEST URL |
https://krakenfiles.com/api/folder/{folderId}/rename | ||||||||
METHOD |
PATCH | ||||||||
ENCODING |
application/json | ||||||||
HEADERS |
|
||||||||
PARAMS |
|
||||||||
|
Example request
curl -X PATCH https://krakenfiles.com/api/folder/s#&dV@#Ia2b5cRh/rename
-H 'Content-Type: application/json'
-H 'Accept: application/json'
-d '{"name": "My New movies"}'
|
|||||||||
|
Example correct response
http code: 200
{
"status": 200,
"data": {
"message": "Name of Folder updated successfully"
}
}
|
|||||||||
|
Example error response
http code: 500
{
"status": 500,
"data": {
"message": "Incorrect payload"
}
}
|
|||||||||
Move folder
REQUEST URL |
https://krakenfiles.com/api/folder/{folderId}/move | ||||||||
METHOD |
PATCH | ||||||||
ENCODING |
application/json | ||||||||
HEADERS |
|
||||||||
PARAMS |
|
||||||||
|
Example request
curl -X PATCH https://krakenfiles.com/api/folder/kdfj#$5hns/move
-H 'Content-Type: application/json'
-H 'Accept: application/json'
-d '{"folderId": "s#&dV@#Ia2b5cRh"}'
|
|||||||||
|
Example correct response
http code: 200
{
"status": 200,
"data": {
"message": "Folder has been moved successfully"
}
}
|
|||||||||
|
Example error response
http code: 500
{
"status": 500,
"data": {
"message": "Incorrect payload"
}
}
|
|||||||||
Delete folder
REQUEST URL |
https://krakenfiles.com/api/folder/{folderId} | ||||||||
METHOD |
DELETE | ||||||||
ENCODING |
application/json | ||||||||
HEADERS |
|
||||||||
|
Example request
curl -X DELETE https://krakenfiles.com/api/folder/kdfj#$5hns
-H 'Content-Type: application/json'
-H 'Accept: application/json'
|
|||||||||
|
Example correct response
http code: 200
{
"status": 200,
"data": {
"message": "Folder has been deleted successfully"
}
}
|
|||||||||
|
Example error response
http code: 500
{
"status": 500,
"data": {
"message": "Incorrect payload"
}
}
|
|||||||||