Create a Digital Ocean Snapshot

Seems straight fwd but struggling. I can access my Digital ocean account and retrieve droplet info using an HTTP node. So this tells me my credentials are correct.

But when I try to create a snapshot I get errors.

[DigitalOcean API Docs :: DigitalOcean Documentation](https://api doc for DO)

In am using post and the url is https://api.digitalocean.com/v2/droplets/xxxxxxx/snapshot
Where xxxxx is the ID of the droplet. I am getting the ID of the droplet from the previous HTTP node that fetches this data.

The error is
HTTP - rejected

{
"status": "rejected",
"reason": {
"message": "404 - {"id":"not_found","message":"route not found"}",
"name": "Error",
"stack": "Error: Request failed with status code 404 at createError (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/createError.js:16:15) at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:269:11) at IncomingMessage.emit (node:events:539:35) at endReadableNT (node:internal/streams/readable:1345:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)"
}

Hello @Robm,

I have not really played that much with DigitalOcean, but looking at the 404 and after checking the API docs, I think that you need to change the endpoint, see below:

https://api.digitalocean.com/v2/volumes/xxxxxxx/snapshots

Hope this helps you!

1 Like

Thanks for your input but no success I am afraid.

Solved.