---
# System prepended metadata

title: Proaktivny Monitoring API

---

# Proaktivny Monitoring API

## Generate

### Vstup

```
POST /klient/generate.php

{
  "action": "generate",
  "customer": 72000001
}
```

### Vystup

```json=
{
  "data": {
    "id": "4l4adipz"
  }
}
```

## Load

### Vstup

```
POST /klient/generate.php

{
  "action": "load",
  "customer": 72000001,
  "id": "4l4adipz"
}
```

### Vystup

```json=
{
  "data": {
    "id": "4l4adipz",
    "name": "DEFAULT",
    "active": 1,
    "accepted": 0,
    "token": "110df969-b1b2-4263-8787-cf9ddb26721f",
    "webhookurl": "https://notify-pfxkg.nlooud.com\/rest\/api\/2.1.1\/",
    "payload": {
      "tauth": "110df969-b1b2-4263-8787-cf9ddb26721f",
      "pid": "4l4adipz",
      "tid": "8MISTNY_TICKET_ID",
      "sys": "HOSTNAME",
      "sev": "ZAVAZNOST_1AZ5_5NEJVYSSI",
      "msg": "200ZNAKU_DOPLNUJICI_TEXT"
    }
  }
}
```

### Chybny vystup

```
HTTP/1.1 400 Bad Request

{
  "errors": [{
    "title": "Error message"
  }]
}
```

## Activate

```
POST /klient/generate.php

{
  "action": "activate",
  "customer": 72000001,
  "id": "4l4adipz"
}
```

### Vystup

```json=
{
  "data": {
    "id": "4l4adipz",
    "active": 1,
    "accepted": 0
  }
}
```

## Deactivate

```
POST /klient/generate.php

{
  "action": "deactivate",
  "customer": 72000001,
  "id": "4l4adipz"
}
```

## List

### Vstup

```
POST /klient/generate.php

{
  "action": "list",
  "customer": 72000001
}
```

### Vystup

```json=
{
  "data": [{
    "id": "4l4adipz",
    "name": "DEFAULT"
    "active": 0,
    "accepted": 0
  }, {
    "id": "555adipz",
    "name": "DEFAULT"
    "active": 0,
    "accepted": 0
  }]
}
```

## Set

### Vstup

```
POST /klient/generate.php

{
  "action": "set",
  "customer": 72000001,
  "id": "4l4adipz",
  "name": "UPDATOVANY NAZOV"
}
```

### Vystup

```json=
{
  "data": {
    "id": "4l4adipz",
    "name": "UPDATOVANY NAZOV"
  }
}
```

## Zmazanie

### Vstup

```
POST /klient/generate.php

{
  "action": "delete",
  "customer": 72000001,
  "id": "4l4adipz"
}
```

### Vystup

```json=
{
  "data": true
}
```

## Accept

### Vstup

```
POST /klient/activate.php

{
  "customer": 72000001,
  "id": "4l4adipz"
}
```

### Vystup

```json=
{
  "data": {
    "id": "4l4adipz",
    "active": 1,
    "accepted": 0
  }
}
```


## Notify

```
POST https://notify-x7l63.secure4service.com/rest/api/v2.1.1/

{
  "tauth": "587a2882-8fb4-48af-9d81-51c01fe0b15f",
  "pid": "g2mxtd7q",
  "tid": "8MISTNY_TICKET_ID",
  "sys": "HOSTNAME",
  "sev": "ZAVAZNOST_1AZ5_5NEJVYSSI",
  "msg": "200ZNAKU_DOPLNUJICI_TEXT"
}
```

### CURL

```shell=
curl \
  -X POST \
  -d '{"tauth":"587a2882-8fb4-48af-9d81-51c01fe0b15f","pid":"g2mxtd7q","tid":"8MISTNY_TICKET_ID","sys":"HOSTNAME","sev":"ZAVAZNOST_1AZ5_5NEJVYSSI","msg":"200ZNAKU_DOPLNUJICI_TEXT"}' \
  https://notify-x7l63.secure4service.com/rest/api/v2.1.1/
```
