Update Trace Log
curl --request PUT \
--url https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log \
--header 'Content-Type: application/json' \
--header 'x-user-id: <api-key>' \
--data '
{
"field_name_to_value_map": {
"error": "Some error message",
"status": "error"
},
"trace_id": "sasdc-csd-rnFesaeCpqcXJ_yL3wi"
}
'import requests
url = "https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log"
payload = {
"field_name_to_value_map": {
"error": "Some error message",
"status": "error"
},
"trace_id": "sasdc-csd-rnFesaeCpqcXJ_yL3wi"
}
headers = {
"x-user-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-user-id': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
field_name_to_value_map: {error: 'Some error message', status: 'error'},
trace_id: 'sasdc-csd-rnFesaeCpqcXJ_yL3wi'
})
};
fetch('https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log', 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://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'field_name_to_value_map' => [
'error' => 'Some error message',
'status' => 'error'
],
'trace_id' => 'sasdc-csd-rnFesaeCpqcXJ_yL3wi'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-user-id: <api-key>"
],
]);
$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://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log"
payload := strings.NewReader("{\n \"field_name_to_value_map\": {\n \"error\": \"Some error message\",\n \"status\": \"error\"\n },\n \"trace_id\": \"sasdc-csd-rnFesaeCpqcXJ_yL3wi\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-user-id", "<api-key>")
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.put("https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log")
.header("x-user-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"field_name_to_value_map\": {\n \"error\": \"Some error message\",\n \"status\": \"error\"\n },\n \"trace_id\": \"sasdc-csd-rnFesaeCpqcXJ_yL3wi\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-user-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"field_name_to_value_map\": {\n \"error\": \"Some error message\",\n \"status\": \"error\"\n },\n \"trace_id\": \"sasdc-csd-rnFesaeCpqcXJ_yL3wi\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Tracing
Update Trace Log
Update fields of a trace log.
PUT
/
api
/
parea
/
v1
/
trace_log
Update Trace Log
curl --request PUT \
--url https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log \
--header 'Content-Type: application/json' \
--header 'x-user-id: <api-key>' \
--data '
{
"field_name_to_value_map": {
"error": "Some error message",
"status": "error"
},
"trace_id": "sasdc-csd-rnFesaeCpqcXJ_yL3wi"
}
'import requests
url = "https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log"
payload = {
"field_name_to_value_map": {
"error": "Some error message",
"status": "error"
},
"trace_id": "sasdc-csd-rnFesaeCpqcXJ_yL3wi"
}
headers = {
"x-user-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-user-id': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
field_name_to_value_map: {error: 'Some error message', status: 'error'},
trace_id: 'sasdc-csd-rnFesaeCpqcXJ_yL3wi'
})
};
fetch('https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log', 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://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'field_name_to_value_map' => [
'error' => 'Some error message',
'status' => 'error'
],
'trace_id' => 'sasdc-csd-rnFesaeCpqcXJ_yL3wi'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-user-id: <api-key>"
],
]);
$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://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log"
payload := strings.NewReader("{\n \"field_name_to_value_map\": {\n \"error\": \"Some error message\",\n \"status\": \"error\"\n },\n \"trace_id\": \"sasdc-csd-rnFesaeCpqcXJ_yL3wi\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-user-id", "<api-key>")
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.put("https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log")
.header("x-user-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"field_name_to_value_map\": {\n \"error\": \"Some error message\",\n \"status\": \"error\"\n },\n \"trace_id\": \"sasdc-csd-rnFesaeCpqcXJ_yL3wi\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/trace_log")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-user-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"field_name_to_value_map\": {\n \"error\": \"Some error message\",\n \"status\": \"error\"\n },\n \"trace_id\": \"sasdc-csd-rnFesaeCpqcXJ_yL3wi\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
APIKeyHeaderAPIKeyHeaderAPIKeyHeader
Body
application/json
UUID of the trace log which should be updated
Key-value pairs how each given field (key) of the trace log should be updated with value. For field names, see TraceLogSchema.
UUID of root trace
Response
Successful Response
Was this page helpful?

