curl --request PATCH \
--url 'https://haunt.gg/api/imagehost/folders/{id}?key=' \
--header 'Content-Type: application/json' \
--data '
{
"folderName": "<string>",
"folderPublic": true,
"folderPasswordEnabled": true,
"folderPassword": "<string>"
}
'{
"success": true,
"message": "Folder updated successfully."
}Update folder properties such as name, visibility, or password. Requires your Account API key.
curl --request PATCH \
--url 'https://haunt.gg/api/imagehost/folders/{id}?key=' \
--header 'Content-Type: application/json' \
--data '
{
"folderName": "<string>",
"folderPublic": true,
"folderPasswordEnabled": true,
"folderPassword": "<string>"
}
'{
"success": true,
"message": "Folder updated successfully."
}Your Account API key (found in your dashboard)
The folder ID
New folder name (must be unique per user)
1 - 32Whether the folder is publicly accessible
Whether the folder requires a password
Folder password (hashed before storage)
32Was this page helpful?