diff --git a/apps/cli/internal/api/client.go b/apps/cli/internal/api/client.go index 7439cd8..2a3f8f4 100644 --- a/apps/cli/internal/api/client.go +++ b/apps/cli/internal/api/client.go @@ -163,6 +163,11 @@ type Service struct { Memory string `json:"memory"` } +// PostRestart requests the API to restart the named service. +func (c *Client) PostRestart(name string) error { + return c.doPostJSON("/api/v1/services/"+name+"/restart", nil, nil) +} + // ListServices returns platform services func (c *Client) ListServices() ([]Service, error) { var resp struct {