Skip to main content
POST
https://api.imperial.gay
/
images
/
bulk-restore
Bulk Restore
curl --request POST \
  --url https://api.imperial.gay/images/bulk-restore \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    "<string>"
  ]
}
'
{
  "updated": 123
}

Request

Headers

Authorization
string
required
Your API key in the format: Bearer imperial_live_xxxxxxxxxxxxx

Body

ids
string[]
required
Array of upload IDs to restore

Response

updated
number
Number of uploads restored

Example

curl -X POST "https://api.imperial.gay/images/bulk-restore" \
  -H "Authorization: Bearer imperial_live_xxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{ "ids": ["6987cd047baba11ee0f66d98"] }'