Skip to main content
PATCH
/
imagehost
/
folders
/
{id}
Update Folder
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."
}

Authorizations

key
string
query
required

Your Account API key (found in your dashboard)

Path Parameters

id
string
required

The folder ID

Body

application/json
folderName
string

New folder name (must be unique per user)

Required string length: 1 - 32
folderPublic
boolean

Whether the folder is publicly accessible

folderPasswordEnabled
boolean

Whether the folder requires a password

folderPassword
string

Folder password (hashed before storage)

Maximum string length: 32

Response

Folder updated successfully

success
enum<boolean>
Available options:
true
message
string
Example:

"Folder updated successfully."