Skip to main content

VPS OS reinstall (asynchronous, 202 Accepted)

POST 

/services/:id/rebuild

Reinstalls the VPS with the selected OS template. ALL data on the disk is deleted. Async job — the Virtualizor rebuildvps operation takes 5-30 minutes; the API returns 202 Accepted immediately and the reseller module then tracks it with GET /services/{id}/status.

SECURITY: confirm: true (strict bool) in the body is REQUIRED. If false or missing it returns 400 confirmation_required and NO call is made to Virtualizor (client-side guard).

Idempotency-Key REQUIRED. Rate limit: services_changes_120rpm bucket.

vps_id null: 422 service_not_provisioned.

Request

Responses

Rebuild scheduled (asynchronous job started)

Response Headers
    X-RateLimit-Limit

    The per-minute limit defined for this key

    X-RateLimit-Remaining

    Number of requests remaining in the current window

    X-RateLimit-Reset

    Unix epoch of the start of the next window (UTC seconds)

    X-Idempotent-Replay

    true on a cache-hit replay.