api: refactoring of /api/set/service/status