Skip to content
Hoody.com

Container snapshots capture the filesystem state of a container at a point in time. Use these endpoints to create new snapshots, restore a container to a previous state, update or remove the alias of an existing snapshot, and delete snapshots you no longer need. Snapshot limits depend on the server: free-tier servers cap at 10 snapshots per container, while paid servers and rentals support up to 1000. Each container’s current count and the applicable ceiling are returned in the snapshot_count and max_snapshots fields when listing snapshots.

Get all snapshots for a container.

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

Create a new snapshot for a container.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to create snapshot for
FieldTypeRequiredDescription
aliasstringNoOptional user-friendly alias for the snapshot. Maximum length 100 characters.
expiryintegerNoExpiry in days (1–3650). Values outside this range are rejected before the snapshot is created.
Terminal window
curl -X POST https://api.hoody.com/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}”

Restore a container from a snapshot.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to restore
namepathstringYes
Terminal window
curl -X PUT https://api.hoody.com/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”

Update the alias of an existing snapshot. Set alias to null to remove the alias.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container
namepathstringYes
FieldTypeRequiredDescription
aliasstring | nullYesNew alias for the snapshot (set to null to remove alias). Maximum length 100 characters.
Terminal window
curl -X PUT https://api.hoody.com/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}”

Delete a snapshot.

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