Update an export's delivery settings
curl --request PATCH \
--url https://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"batch_size": 123,
"buffer_size": 123,
"flush_interval_seconds": 123,
"included_event_types": [
"<string>"
],
"max_retries": 123,
"retry_backoff_seconds": 123
}
'import requests
url = "https://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings"
payload = {
"batch_size": 123,
"buffer_size": 123,
"flush_interval_seconds": 123,
"included_event_types": ["<string>"],
"max_retries": 123,
"retry_backoff_seconds": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
batch_size: 123,
buffer_size: 123,
flush_interval_seconds: 123,
included_event_types: ['<string>'],
max_retries: 123,
retry_backoff_seconds: 123
})
};
fetch('https://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings', 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://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'batch_size' => 123,
'buffer_size' => 123,
'flush_interval_seconds' => 123,
'included_event_types' => [
'<string>'
],
'max_retries' => 123,
'retry_backoff_seconds' => 123
]),
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://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings"
payload := strings.NewReader("{\n \"batch_size\": 123,\n \"buffer_size\": 123,\n \"flush_interval_seconds\": 123,\n \"included_event_types\": [\n \"<string>\"\n ],\n \"max_retries\": 123,\n \"retry_backoff_seconds\": 123\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"batch_size\": 123,\n \"buffer_size\": 123,\n \"flush_interval_seconds\": 123,\n \"included_event_types\": [\n \"<string>\"\n ],\n \"max_retries\": 123,\n \"retry_backoff_seconds\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"batch_size\": 123,\n \"buffer_size\": 123,\n \"flush_interval_seconds\": 123,\n \"included_event_types\": [\n \"<string>\"\n ],\n \"max_retries\": 123,\n \"retry_backoff_seconds\": 123\n}"
response = http.request(request)
puts response.read_body{
"destination": {
"auth_method": "<string>",
"bucket": "<string>",
"credentials_rotated_at": "<string>",
"endpoint": "<string>",
"external_id": "<string>",
"has_credentials": true,
"iam_role_arn": "<string>",
"path_prefix": "<string>",
"provider": "<string>",
"region": "<string>",
"use_path_style": true,
"use_ssl": true
},
"enabled": true,
"export_type": "<string>",
"organization_id": "<string>",
"resources_ready": true,
"runtime_status": {
"health": {
"checked_at": "2023-11-07T05:31:56Z",
"message": "<string>",
"source": "<string>",
"state": "<string>"
},
"last_delivered_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"last_error_at": "2023-11-07T05:31:56Z",
"last_file_name": "<string>"
},
"settings": {
"batch_size": 123,
"buffer_size": 123,
"flush_interval_seconds": 123,
"max_retries": 123,
"retry_backoff_seconds": 123,
"included_event_types": [
"<string>"
]
},
"stream_name": "<string>",
"stream_ready": true,
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Log Exports
Update an export's delivery settings
Partial update: omitted fields keep their current value.
PATCH
/
api
/
system-management
/
public
/
v1
/
exports
/
{orgId}
/
{exportType}
/
settings
Update an export's delivery settings
curl --request PATCH \
--url https://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"batch_size": 123,
"buffer_size": 123,
"flush_interval_seconds": 123,
"included_event_types": [
"<string>"
],
"max_retries": 123,
"retry_backoff_seconds": 123
}
'import requests
url = "https://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings"
payload = {
"batch_size": 123,
"buffer_size": 123,
"flush_interval_seconds": 123,
"included_event_types": ["<string>"],
"max_retries": 123,
"retry_backoff_seconds": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
batch_size: 123,
buffer_size: 123,
flush_interval_seconds: 123,
included_event_types: ['<string>'],
max_retries: 123,
retry_backoff_seconds: 123
})
};
fetch('https://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings', 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://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'batch_size' => 123,
'buffer_size' => 123,
'flush_interval_seconds' => 123,
'included_event_types' => [
'<string>'
],
'max_retries' => 123,
'retry_backoff_seconds' => 123
]),
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://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings"
payload := strings.NewReader("{\n \"batch_size\": 123,\n \"buffer_size\": 123,\n \"flush_interval_seconds\": 123,\n \"included_event_types\": [\n \"<string>\"\n ],\n \"max_retries\": 123,\n \"retry_backoff_seconds\": 123\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"batch_size\": 123,\n \"buffer_size\": 123,\n \"flush_interval_seconds\": 123,\n \"included_event_types\": [\n \"<string>\"\n ],\n \"max_retries\": 123,\n \"retry_backoff_seconds\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/system-management/public/v1/exports/{orgId}/{exportType}/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"batch_size\": 123,\n \"buffer_size\": 123,\n \"flush_interval_seconds\": 123,\n \"included_event_types\": [\n \"<string>\"\n ],\n \"max_retries\": 123,\n \"retry_backoff_seconds\": 123\n}"
response = http.request(request)
puts response.read_body{
"destination": {
"auth_method": "<string>",
"bucket": "<string>",
"credentials_rotated_at": "<string>",
"endpoint": "<string>",
"external_id": "<string>",
"has_credentials": true,
"iam_role_arn": "<string>",
"path_prefix": "<string>",
"provider": "<string>",
"region": "<string>",
"use_path_style": true,
"use_ssl": true
},
"enabled": true,
"export_type": "<string>",
"organization_id": "<string>",
"resources_ready": true,
"runtime_status": {
"health": {
"checked_at": "2023-11-07T05:31:56Z",
"message": "<string>",
"source": "<string>",
"state": "<string>"
},
"last_delivered_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"last_error_at": "2023-11-07T05:31:56Z",
"last_file_name": "<string>"
},
"settings": {
"batch_size": 123,
"buffer_size": 123,
"flush_interval_seconds": 123,
"max_retries": 123,
"retry_backoff_seconds": 123,
"included_event_types": [
"<string>"
]
},
"stream_name": "<string>",
"stream_ready": true,
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Authorizations
ApiKeyOAuth2
Scopes
Path Parameters
Body
application/json
Response
OK