# POST /services/{name}/disable

First published 14 Oct 2026 (release 0.2.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the services group.

Disable a daemon

- Who may call it: administrator
- Token scope, any of: settings, all
- Answers: 200 OK

UrbeStack stops the daemon and prevents it from starting at boot or after updates. The monitor stops watching the daemon and leaves it stopped.

Invalid name syntax or a request to disable an absent daemon, one of UrbeStack's own daemons, or the sites' web server returns HTTP 400.

## Parameters

- `name` (path, string, matching ^[a-z][a-z0-9.-]{0,39}$, required): UrbeStack daemon name returned by GET /services, such as postfix, php-8.3, panel-web, or mariadb.

## Request body

JSON, the type [ServiceControlRequest](https://urbestack.com/docs/api/types/ServiceControlRequest.md).

- `wait` (integer, 1 to 120): Time to wait for the daemon to respond during startup.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X POST "$API/services/alice/disable" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "wait": 1
  }'
```

Response, 200 OK:

```
{
  "action": "text",
  "daemon": {
    "at_boot": true,
    "check": {
      "ok": true,
      "words": "text"
    },
    "checked_by": "text",
    "cuts": "text",
    "depth": "answer",
    "falls_30d": 1,
    "group": "Panel",
    "guard": 1,
    "has_log": true,
    "installed": true,
    "last_check_at": "text",
    "last_check_words": "text",
    "last_restart_at": "text",
    "may_disable": true,
    "may_stop": true,
    "name": "alice",
    "need": "text",
    "pid": 1,
    "role": "user",
    "rounds": 1,
    "since": "text",
    "state": "up",
    "stopped_at": "text",
    "stopped_by": "text",
    "stopped_from": "text",
    "systemd_restarts": 1,
    "timeout": 1,
    "unit": "text",
    "version": "0.0.1",
    "watched": true
  },
  "detached": true,
  "result": "text",
  "was": "text"
}
```

## Errors

- 400: A daemon is named with letters, digits, dots and hyphens
- 401: Authentication required
