Дерево страниц

Пример запроса:

curl -X 'POST' \
  'https://server.company.ru/xapi/push/event' \
  -H 'accept: application/json' \
  -H 'X-API-Auth-Token: brse99dugp1cdbr69axz' \
  -H 'X-API-CompanyId: IW' \
  -H 'X-API-Version: 1' \
  -H 'Content-Type: multipart/form-data' \
  -H 'X-Enable-OpenAPI: 1' \
  -F 'event={
  "evt_class": 0,
  "evt_service": "im_telegram",
  "evt_attributes": [
    {
      "name": "event_name",
      "value": "Текстовое сообщение"
    },
    {
      "name": "capture_ts",
      "value": "2025-06-02T13:52:10+03:00"
    },
    {
      "name": "capture_server_ip",
      "value": "127.0.0.1"
    },
    {
      "name": "capture_server_fqdn",
      "value": "localhost"
    }
  ],
  "evt_senders": [
    {
      "identity_id": 2,
      "identity_type": 0,
      "identity_contacts": [],
      "identity_contacts": [
        {
            "name": "im_telegram",
            "value": "TelegramSender"
        }
      ]
    },
    {
      "identity_id": 4,
      "identity_type": 0,
      "identity_contacts": [],
      "identity_contacts": [
        {
            "name": "im_telegram",
            "value": "TelegramReceiver1"
        }
      ]
    },
    {
      "identity_id": 7,
      "identity_type": 0,
      "identity_contacts": [],
      "identity_contacts": [
        {
            "name": "telegram",
            "value": "TelegramSender"
        }
      ]
    },
    {
      "identity_id": 8,
      "identity_type": 1,
      "identity_contacts": [],
      "identity_attributes": [
        {
          "name": "workstation_type",
          "value": "ws_type_computer"
        }
      ],
      "identity_contacts": [
        {
            "name": "dnshostname",
            "value": "localhost.computer.domain"
        }
      ]
    }
  ],
  "evt_receivers": [
    {
      "identity_id": 1,
      "identity_type": 0,
      "identity_contacts": [],
      "identity_contacts": [
        {
            "name": "im_telegram",
            "value": "TelegramSender"
        }
      ]
    },
    {
      "identity_id": 3,
      "identity_type": 0,
      "identity_contacts": [],
      "identity_contacts": [
        {
            "name": "im_telegram",
            "value": "TelegramReceiver1"
        }
      ]
    },
    {
      "identity_id": 5,
      "identity_type": 0,
      "identity_contacts": [],
      "identity_contacts": [
        {
            "name": "telegram",
            "value": "TelegramReceiver1"
        }
      ]
    },
    {
      "identity_id": 6,
      "identity_type": 0,
      "identity_contacts": [],
      "identity_contacts": [
        {
            "name": "telegram",
            "value": "TelegramSender"
        }
      ]
    }
  ],
  "evt_data": [],
  "evt_messages": [
    {
      "sender_id": 2,
      "sent_time": "2025-06-02T13:52:12+03:00",
      "utf8_text": "Совершенно конфиденциально"
    },
    {
      "sender_id": 4,
      "sent_time": "2025-06-02T13:52:13+03:00",
      "utf8_text": "Спасибо за информацию"
    }
  ]
}' \
  -F 'files[]='
  • Нет меток