View .md

Kept Backups endpoints (Client API: account)

6 FeatherPanel Client API: account endpoints from user/kept-backups.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Last synced from FeatherPanel 8318da2 on .

On this page

Defined in backend/app/routes/user/kept-backups.php. Authentication used here: Signed-in user. Read Authentication for how to send credentials and Rate limits and errors for the response envelope.

Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.

Endpoints

GET/api/user/kept-backups

Auth: Signed-in userDefault rate limit: 60 / minute (user-kept-backups)Route name: user-kept-backupsController: KeptBackupsController::indexroute source

List kept backups Backups the user kept when deleting their servers.

curl -X GET "$PANEL_URL/api/user/kept-backups" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Kept backups

GET/api/user/servers/{uuidShort}/keep-backups

Auth: Signed-in userDefault rate limit: 30 / minute (user-server-keep-backups)Route name: user-server-keep-backupsController: KeptBackupsController::keepInforoute source

What keeping backups would do when deleting a server Whether the node can keep local and PBS backups, and how many finished backups the server has on the node and in remote storage. Only for the server owner.

ParameterInTypeRequiredDescription
uuidShortpathstringyes
curl -X GET "$PANEL_URL/api/user/servers/$UUID_SHORT/keep-backups" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Keep information · 404 Server not found

GET/api/user/kept-backups/{uuid}/targets

Auth: Signed-in userDefault rate limit: 30 / minute (user-kept-backups-targets)Route name: user-kept-backups-targetsController: KeptBackupsController::targetsroute source

Servers a kept backup can be restored onto Your own servers that are not suspended and, for backups stored on a node, run on that node.

ParameterInTypeRequiredDescription
uuidpathstringyes
curl -X GET "$PANEL_URL/api/user/kept-backups/$UUID/targets" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Servers · 404 Backup not found

GET/api/user/kept-backups/{uuid}/download

Auth: Signed-in userDefault rate limit: 20 / minute (user-kept-backups-download)Route name: user-kept-backups-downloadController: KeptBackupsController::downloadroute source

Download a kept backup

ParameterInTypeRequiredDescription
uuidpathstringyes
curl -X GET "$PANEL_URL/api/user/kept-backups/$UUID/download" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Download link · 404 Backup not found

POST/api/user/kept-backups/{uuid}/restore

Auth: Signed-in userDefault rate limit: 10 / minute (user-kept-backups-restore)Route name: user-kept-backups-restoreController: KeptBackupsController::restoreroute source

Restore a kept backup onto one of your servers Replaces the files of a server you own with the kept backup. Backups stored on a node can only be restored onto a server on the same node.

ParameterInTypeRequiredDescription
uuidpathstringyes
Body fieldTypeRequiredDescription
serverstringnoShort UUID of the target server
truncate_directorybooleannoDelete the server files first
curl -X POST "$PANEL_URL/api/user/kept-backups/$UUID/restore" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"server":"","truncate_directory":false}'

Responses: 202 Restore started · 404 Backup or server not found · 422 Backup cannot be restored onto that server

DELETE/api/user/kept-backups/{uuid}

Auth: Signed-in userDefault rate limit: 20 / minute (user-kept-backups-delete)Route name: user-kept-backups-deleteController: KeptBackupsController::deleteroute source

Delete a kept backup

ParameterInTypeRequiredDescription
uuidpathstringyes
curl -X DELETE "$PANEL_URL/api/user/kept-backups/$UUID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Deleted · 404 Backup not found