Add a comment to a ticket
curl --request POST \
--url https://api.example.com/add-ticket-comment \
--header 'Content-Type: application/json' \
--data '
{
"sessionId": "f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23",
"ticketId": "INC0012345",
"ticketComment": "Session recording: https://syteca.example.com/sessions/8842"
}
'import requests
url = "https://api.example.com/add-ticket-comment"
payload = {
"sessionId": "f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23",
"ticketId": "INC0012345",
"ticketComment": "Session recording: https://syteca.example.com/sessions/8842"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
sessionId: 'f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23',
ticketId: 'INC0012345',
ticketComment: 'Session recording: https://syteca.example.com/sessions/8842'
})
};
fetch('https://api.example.com/add-ticket-comment', 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://api.example.com/add-ticket-comment",
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([
'sessionId' => 'f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23',
'ticketId' => 'INC0012345',
'ticketComment' => 'Session recording: https://syteca.example.com/sessions/8842'
]),
CURLOPT_HTTPHEADER => [
"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://api.example.com/add-ticket-comment"
payload := strings.NewReader("{\n \"sessionId\": \"f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23\",\n \"ticketId\": \"INC0012345\",\n \"ticketComment\": \"Session recording: https://syteca.example.com/sessions/8842\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.example.com/add-ticket-comment")
.header("Content-Type", "application/json")
.body("{\n \"sessionId\": \"f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23\",\n \"ticketId\": \"INC0012345\",\n \"ticketComment\": \"Session recording: https://syteca.example.com/sessions/8842\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/add-ticket-comment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"sessionId\": \"f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23\",\n \"ticketId\": \"INC0012345\",\n \"ticketComment\": \"Session recording: https://syteca.example.com/sessions/8842\"\n}"
response = http.request(request)
puts response.read_bodySIEM & Ticketing systems
Add a Comment to a Ticket
Add a comment to a ticket through the API Bridge, typically a link to the corresponding session in the Syteca monitoring results.
POST
/
add-ticket-comment
Add a comment to a ticket
curl --request POST \
--url https://api.example.com/add-ticket-comment \
--header 'Content-Type: application/json' \
--data '
{
"sessionId": "f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23",
"ticketId": "INC0012345",
"ticketComment": "Session recording: https://syteca.example.com/sessions/8842"
}
'import requests
url = "https://api.example.com/add-ticket-comment"
payload = {
"sessionId": "f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23",
"ticketId": "INC0012345",
"ticketComment": "Session recording: https://syteca.example.com/sessions/8842"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
sessionId: 'f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23',
ticketId: 'INC0012345',
ticketComment: 'Session recording: https://syteca.example.com/sessions/8842'
})
};
fetch('https://api.example.com/add-ticket-comment', 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://api.example.com/add-ticket-comment",
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([
'sessionId' => 'f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23',
'ticketId' => 'INC0012345',
'ticketComment' => 'Session recording: https://syteca.example.com/sessions/8842'
]),
CURLOPT_HTTPHEADER => [
"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://api.example.com/add-ticket-comment"
payload := strings.NewReader("{\n \"sessionId\": \"f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23\",\n \"ticketId\": \"INC0012345\",\n \"ticketComment\": \"Session recording: https://syteca.example.com/sessions/8842\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.example.com/add-ticket-comment")
.header("Content-Type", "application/json")
.body("{\n \"sessionId\": \"f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23\",\n \"ticketId\": \"INC0012345\",\n \"ticketComment\": \"Session recording: https://syteca.example.com/sessions/8842\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/add-ticket-comment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"sessionId\": \"f3a9c2e1-7b44-4d8e-9c2a-1e6b5d0f8a23\",\n \"ticketId\": \"INC0012345\",\n \"ticketComment\": \"Session recording: https://syteca.example.com/sessions/8842\"\n}"
response = http.request(request)
puts response.read_body/add-ticket-comment writes a comment back to the ticket — typically a link to the corresponding place in the monitoring results on the Management Tool, so the reviewer can jump straight to the recorded session. All three fields (sessionId, ticketId, ticketComment) are required.
This endpoint is shown for reference. There is no Syteca-hosted server to call, so no live request panel is available.
⌘I