Report connector status
curl --request POST \
--url https://app.onefirewall.com/api/v1/feedback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agid": "<string>",
"mgid": "OFA-GID-a1B2c3D4e5F6g7H8",
"code": 499,
"score_threshold": 500,
"sync_time": 1073741823,
"maximum_rules": 1073741823,
"hostname": "<string>",
"plugin": "<string>",
"blacklist": [
"<string>"
],
"config": {},
"active": true,
"ts": 49999999999999
}
'import requests
url = "https://app.onefirewall.com/api/v1/feedback"
payload = {
"agid": "<string>",
"mgid": "OFA-GID-a1B2c3D4e5F6g7H8",
"code": 499,
"score_threshold": 500,
"sync_time": 1073741823,
"maximum_rules": 1073741823,
"hostname": "<string>",
"plugin": "<string>",
"blacklist": ["<string>"],
"config": {},
"active": True,
"ts": 49999999999999
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agid: '<string>',
mgid: 'OFA-GID-a1B2c3D4e5F6g7H8',
code: 499,
score_threshold: 500,
sync_time: 1073741823,
maximum_rules: 1073741823,
hostname: '<string>',
plugin: '<string>',
blacklist: ['<string>'],
config: {},
active: true,
ts: 49999999999999
})
};
fetch('https://app.onefirewall.com/api/v1/feedback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.onefirewall.com/api/v1/feedback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agid' => '<string>',
'mgid' => 'OFA-GID-a1B2c3D4e5F6g7H8',
'code' => 499,
'score_threshold' => 500,
'sync_time' => 1073741823,
'maximum_rules' => 1073741823,
'hostname' => '<string>',
'plugin' => '<string>',
'blacklist' => [
'<string>'
],
'config' => [
],
'active' => true,
'ts' => 49999999999999
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.onefirewall.com/api/v1/feedback"
payload := strings.NewReader("{\n \"agid\": \"<string>\",\n \"mgid\": \"OFA-GID-a1B2c3D4e5F6g7H8\",\n \"code\": 499,\n \"score_threshold\": 500,\n \"sync_time\": 1073741823,\n \"maximum_rules\": 1073741823,\n \"hostname\": \"<string>\",\n \"plugin\": \"<string>\",\n \"blacklist\": [\n \"<string>\"\n ],\n \"config\": {},\n \"active\": true,\n \"ts\": 49999999999999\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.onefirewall.com/api/v1/feedback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agid\": \"<string>\",\n \"mgid\": \"OFA-GID-a1B2c3D4e5F6g7H8\",\n \"code\": 499,\n \"score_threshold\": 500,\n \"sync_time\": 1073741823,\n \"maximum_rules\": 1073741823,\n \"hostname\": \"<string>\",\n \"plugin\": \"<string>\",\n \"blacklist\": [\n \"<string>\"\n ],\n \"config\": {},\n \"active\": true,\n \"ts\": 49999999999999\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.onefirewall.com/api/v1/feedback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agid\": \"<string>\",\n \"mgid\": \"OFA-GID-a1B2c3D4e5F6g7H8\",\n \"code\": 499,\n \"score_threshold\": 500,\n \"sync_time\": 1073741823,\n \"maximum_rules\": 1073741823,\n \"hostname\": \"<string>\",\n \"plugin\": \"<string>\",\n \"blacklist\": [\n \"<string>\"\n ],\n \"config\": {},\n \"active\": true,\n \"ts\": 49999999999999\n}"
response = http.request(request)
puts response.read_body<string><string><string><string><string><string><string>Connectors
Report connector status
Sent by connectors. A connector id registered by another organization answers 409. code: -1 updates the stored record (200); otherwise a new record is stored (201). Lack of permission answers 401.
Roles: Super Admin (0), Member (1), Member Admin (10), Member Mobile (20).
POST
/
api
/
v1
/
feedback
Report connector status
curl --request POST \
--url https://app.onefirewall.com/api/v1/feedback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agid": "<string>",
"mgid": "OFA-GID-a1B2c3D4e5F6g7H8",
"code": 499,
"score_threshold": 500,
"sync_time": 1073741823,
"maximum_rules": 1073741823,
"hostname": "<string>",
"plugin": "<string>",
"blacklist": [
"<string>"
],
"config": {},
"active": true,
"ts": 49999999999999
}
'import requests
url = "https://app.onefirewall.com/api/v1/feedback"
payload = {
"agid": "<string>",
"mgid": "OFA-GID-a1B2c3D4e5F6g7H8",
"code": 499,
"score_threshold": 500,
"sync_time": 1073741823,
"maximum_rules": 1073741823,
"hostname": "<string>",
"plugin": "<string>",
"blacklist": ["<string>"],
"config": {},
"active": True,
"ts": 49999999999999
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agid: '<string>',
mgid: 'OFA-GID-a1B2c3D4e5F6g7H8',
code: 499,
score_threshold: 500,
sync_time: 1073741823,
maximum_rules: 1073741823,
hostname: '<string>',
plugin: '<string>',
blacklist: ['<string>'],
config: {},
active: true,
ts: 49999999999999
})
};
fetch('https://app.onefirewall.com/api/v1/feedback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.onefirewall.com/api/v1/feedback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agid' => '<string>',
'mgid' => 'OFA-GID-a1B2c3D4e5F6g7H8',
'code' => 499,
'score_threshold' => 500,
'sync_time' => 1073741823,
'maximum_rules' => 1073741823,
'hostname' => '<string>',
'plugin' => '<string>',
'blacklist' => [
'<string>'
],
'config' => [
],
'active' => true,
'ts' => 49999999999999
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.onefirewall.com/api/v1/feedback"
payload := strings.NewReader("{\n \"agid\": \"<string>\",\n \"mgid\": \"OFA-GID-a1B2c3D4e5F6g7H8\",\n \"code\": 499,\n \"score_threshold\": 500,\n \"sync_time\": 1073741823,\n \"maximum_rules\": 1073741823,\n \"hostname\": \"<string>\",\n \"plugin\": \"<string>\",\n \"blacklist\": [\n \"<string>\"\n ],\n \"config\": {},\n \"active\": true,\n \"ts\": 49999999999999\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.onefirewall.com/api/v1/feedback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agid\": \"<string>\",\n \"mgid\": \"OFA-GID-a1B2c3D4e5F6g7H8\",\n \"code\": 499,\n \"score_threshold\": 500,\n \"sync_time\": 1073741823,\n \"maximum_rules\": 1073741823,\n \"hostname\": \"<string>\",\n \"plugin\": \"<string>\",\n \"blacklist\": [\n \"<string>\"\n ],\n \"config\": {},\n \"active\": true,\n \"ts\": 49999999999999\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.onefirewall.com/api/v1/feedback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agid\": \"<string>\",\n \"mgid\": \"OFA-GID-a1B2c3D4e5F6g7H8\",\n \"code\": 499,\n \"score_threshold\": 500,\n \"sync_time\": 1073741823,\n \"maximum_rules\": 1073741823,\n \"hostname\": \"<string>\",\n \"plugin\": \"<string>\",\n \"blacklist\": [\n \"<string>\"\n ],\n \"config\": {},\n \"active\": true,\n \"ts\": 49999999999999\n}"
response = http.request(request)
puts response.read_body<string><string><string><string><string><string><string>Authorizations
JWT signed (HS256) with a per-user server-side secret; revocable per user. Token handling follows RFC8725 (JWT best current practices): algorithm pinned by the server, no none, claims checked against the live user record. See the API description for the compatibility forms (Basic, query parameter).
Body
application/json
Response
Updated.

