package zones

import (
	"context"
	"fmt"
	"net/url"
)

func (c *client) RectifyZone(ctx context.Context, serverID string, zoneID string) error {
	path := fmt.Sprintf("/servers/%s/zones/%s/rectify", url.PathEscape(serverID), url.PathEscape(zoneID))

	return c.httpClient.Put(ctx, path, nil)
}
