---
title: "Start/stop/restart/enable/disable a systemd service"
method: POST
path: "/host-metrics/managers/services/{id}/action"
tags: ["Host Metrics"]
---

# Start/stop/restart/enable/disable a systemd service

`POST /host-metrics/managers/services/{id}/action`

## Path parameters

- `id` integer, required

## Request body

- object
  - `unit` string
  - `action` string

## Response `200`

Action result.

## Other responses

- `400` — Invalid unit or action.
- `403` — Elevation required or denied.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
