curl -k -X 'POST' \
'https://<ip_adress>:9106/xapi/push/event' \
-H 'accept: application/json' \
-H 'X-API-Auth-Token: 7tghcu0jmvwxyg7e7l3l' \
-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": 4,
"evt_service": "cloud_storage",
"evt_attributes": [
{
"name": "capture_ts",
"value": "2025-07-15T07:07:07+03:00"
},
{
"name": "capture_server_ip",
"value": "127.0.0.1"
},
{
"name": "capture_server_fqdn",
"value": "localhost"
},
{
"name": "connection_id",
"value": "4e77e6e5-0ae6-4d07-a660-174e5be42492"
}
],
"evt_senders": [
{
"identity_id": 1,
"identity_type": 0,
"identity_contacts": [
{
"name": "auth",
"value": "user_name@iw"
}
]
},
{
"identity_id": 2,
"identity_type": 1,
"identity_contacts": [
{
"name": "dnshostname",
"value": "localhost.computer.domain"
}
]
}
],
"evt_receivers": [
{
"identity_id": 3,
"identity_type": 3,
"identity_contacts": []
}
],
"evt_data": [
{
"data_id": 1,
"data_attributes": [
{
"name": "filename",
"value": "sample.pdf"
},
{
"name": "destination_file_path",
"value": "goodledrive.com/user/folder/"
}
]
}
],
"evt_destination": {
"identity_id": 4,
"identity_type": 3,
"identity_contacts": [],
"identity_attributes": [
{
"name": "name",
"value": "googledrive.com"
}
]
}
}' \
-F 'files[]="/home/work/scripts/sample.pdf";filename=1' |