---
title: "Set Service Status"
description: ""
url: "https://docs.itrsgroup.com/docs/opsview/6.11.7/rest-api/status/api-status-set-service-status/index.html"
---
URL: `/rest/status`

- `POST` — submits the new status of services.
- `GET`, `PUT`, `DELETE` — unimplemented.

Other parameters are:

- `state` — the state that should be applied to the services listed in service_selection. Expects the numeric ID for state.
- `comment` — free text comment that should be given to the state change.

## Example input

For `/rest/status?svc.serviceid=1&svc.serviceid=2`:

```
    {
       "new_state" : "0",
       "comment" : "This is a known unknown"
    }
```

## Example output

```
    {
       "summary" : {
          "num_services" : "2",
          "num_hosts" : "0"
       },
       "list" : {
          "hosts" : [],
          "services" : [
             {
                "id" : "1",
                "hostname" : "host1",
                "servicename" : "service on host1"
             },
             {
                "id" : "2",
                "hostname" : "host2",
                "servicename" : "service on host2"
             }
          ]
       }
    }
```

