/v2/droplets/{droplet_id}/actionsTrigger an action on a Droplet
Triggers an action on a specific Droplet, such as rebooting it, changing its size, or creating a snapshot. Supply the action type and any additional fields required for that action; restoring a Droplet requires a backup image of that Droplet. A 201 response includes an action object you can use to track the operation.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Optional JSON action payload. Include the required type and any additional attributes required for that action.
A 401 indicates that authentication credentials are invalid. A 404 means the droplet_id path parameter does not identify a Droplet; a 429 indicates that the API rate limit has been exceeded, and a 500 indicates a server error. droplet_id must be at least 1, and type must specify a supported action; provide any additional fields required by that action.