Skip to content

Use these endpoints to manage point-in-time snapshots of a container’s filesystem. You can create new snapshots with an optional alias and expiry, list existing snapshots, restore a container to a previous snapshot state, update snapshot aliases, and delete snapshots that are no longer needed.


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. You can optionally provide a human-readable alias and an expiry in days.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to create snapshot for
NameTypeRequiredDescription
aliasstringNoOptional user-friendly alias for the snapshot (max 100 characters)
expirynumberNoExpiry in days
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
}'

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

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

Restore a container from a snapshot. The container’s filesystem state is rolled back to the point in time the snapshot was taken.

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

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

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

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

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container
namepathstringYesName of the snapshot
NameTypeRequiredDescription
aliasstring | nullYesNew alias for the snapshot (set to null to remove alias; max 100 characters)
Terminal window
curl -X PATCH "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 from a container. This action is irreversible.

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