Save a unit file
PUT/plugin-api/service-manager/:hostId/units/:unit/file
Checks the text with systemd-analyze verify, then writes the unit to /etc/systemd/system or its override.conf drop-in, keeps a .termix.bak copy and reloads systemd. An empty override removes it.
Request
Responses
- 200
- 400
Saved.
The check failed. Nothing was written.