VPS

Toggle server protection

post/vps/{vps_id}/protection

Enable or disable destruction protection on your server. When enabled, the server cannot be destroyed or reinstalled until protection is removed.

Authorization

Authorization
Authorization*string

Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.

Path parameters

vps_id*integer
Range1 ≤ value

Request body

application/jsonRequired
enabled*boolean

Set to true to enable protection, false to disable it.

Responses

Successful Response

application/json

detail*string

Human-readable confirmation message.