Skip to content
Hoody.com

Container snapshots are point-in-time captures of a container’s filesystem and configuration. Use these endpoints to list, create, restore, rename, and delete snapshots for any container you own. Each container is subject to a snapshot limit that depends on the server it runs on — free-tier servers allow fewer snapshots than paid servers and rentals.

Returns every snapshot stored on the container, along with the snapshot count and the maximum allowed for the container’s current server.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to retrieve snapshots for
Terminal window
curl -X GET https://api.hoody.icu/api/v1/containers/507f1f77bcf86cd799439011/snapshots \
-H "Authorization: Bearer <token>"

Captures the current state of the container and registers a new snapshot. Optionally accepts a friendly alias and an expiry in days.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to create snapshot for
FieldTypeRequiredDescription
aliasstringNoOptional user-friendly alias for the snapshot. Max length 100.
expiryintegerNoExpiry in days (1–3650). Values outside this range are rejected before the snapshot is created.
Terminal window
curl -X POST https://api.hoody.icu/api/v1/containers/507f1f77bcf86cd799439011/snapshots \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"alias": "pre-deployment-backup",
"expiry": 30
}'

PUT /api/v1/containers/{id}/snapshots/{name}

Section titled “PUT /api/v1/containers/{id}/snapshots/{name}”

Rolls the container back to the named snapshot. The container’s current state is replaced by the snapshot’s contents.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to restore
namepathstringYesName of the snapshot to restore
Terminal window
curl -X PUT https://api.hoody.icu/api/v1/containers/507f1f77bcf86cd799439011/snapshots/snap-20250115-103000 \
-H "Authorization: Bearer <token>"

PUT /api/v1/containers/{id}/snapshots/{name}/alias

Section titled “PUT /api/v1/containers/{id}/snapshots/{name}/alias”

Renames the alias of an existing snapshot, or removes it by sending null.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container
namepathstringYesName of the snapshot
FieldTypeRequiredDescription
aliasstring | nullYesNew alias for the snapshot (set to null to remove alias). Max length 100.
Terminal window
curl -X PUT https://api.hoody.icu/api/v1/containers/507f1f77bcf86cd799439011/snapshots/snap-20250115-103000/alias \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"alias": "production-baseline"
}'

DELETE /api/v1/containers/{id}/snapshots/{name}

Section titled “DELETE /api/v1/containers/{id}/snapshots/{name}”

Permanently removes a snapshot from the container. This action cannot be undone.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container
namepathstringYesName of the snapshot
Terminal window
curl -X DELETE https://api.hoody.icu/api/v1/containers/507f1f77bcf86cd799439011/snapshots/snap-20250110-080000 \
-H "Authorization: Bearer <token>"