curl --request POST \
--url 'https://haunt.gg/api/imagehost/folders?key=' \
--header 'Content-Type: application/json' \
--data '
{
"folderName": "<string>",
"folderPublic": true,
"folderPasswordEnabled": true,
"folderPassword": "<string>"
}
'{
"folder": {
"id": "<string>",
"folderName": "<string>",
"folderPublic": true,
"folderPasswordEnabled": true,
"createdAt": 123,
"updatedAt": 123,
"fileCount": 123,
"totalSize": 123
}
}Create a new folder. Requires your Account API key.
curl --request POST \
--url 'https://haunt.gg/api/imagehost/folders?key=' \
--header 'Content-Type: application/json' \
--data '
{
"folderName": "<string>",
"folderPublic": true,
"folderPasswordEnabled": true,
"folderPassword": "<string>"
}
'{
"folder": {
"id": "<string>",
"folderName": "<string>",
"folderPublic": true,
"folderPasswordEnabled": true,
"createdAt": 123,
"updatedAt": 123,
"fileCount": 123,
"totalSize": 123
}
}Your Account API key (found in your dashboard)
Folder name (must be unique per user)
1 - 32Whether the folder is publicly accessible (defaults to false)
Whether the folder requires a password (only for public folders)
Folder password (required if folderPasswordEnabled is true)
32Folder created successfully
Show child attributes
Was this page helpful?