Update the TikTok Events destination config
curl --request PATCH \
--url https://api.orbit.devotel.io/api/v1/cdp/tiktok-events-destinationimport requests
url = "https://api.orbit.devotel.io/api/v1/cdp/tiktok-events-destination"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.orbit.devotel.io/api/v1/cdp/tiktok-events-destination', 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.orbit.devotel.io/api/v1/cdp/tiktok-events-destination",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/cdp/tiktok-events-destination"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.orbit.devotel.io/api/v1/cdp/tiktok-events-destination")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/tiktok-events-destination")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"enabled": true,
"pixel_code": "C8A9B2D4E6F0G1H3J5",
"test_event_code": "TIKTOKTEST123",
"access_token_configured": true,
"last_run_at": "2026-09-03T04:00:00.000Z",
"last_run_status": "ok",
"last_sent_count": 42,
"last_error": null,
"last_error_at": null,
"consecutive_failures": 0
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "<string>",
"status": 429,
"retry_after": 2
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}CDP
Update the TikTok Events destination config
Merges operator-supplied fields into the tenant’s TikTok Events destination config: enabled, pixel_code, test_event_code (empty string clears), and access_token (encrypted at rest under enc:v1:; empty string clears). Only the whitelisted non-secret fields are written — worker-owned run-status fields (last_run_status, …) can never be set from this surface. The audit log records the changed field NAMES only, never values. The response echoes the post-merge public config (access token as a presence flag). Owner / admin / developer only.
PATCH
/
api
/
v1
/
cdp
/
tiktok-events-destination
Update the TikTok Events destination config
curl --request PATCH \
--url https://api.orbit.devotel.io/api/v1/cdp/tiktok-events-destinationimport requests
url = "https://api.orbit.devotel.io/api/v1/cdp/tiktok-events-destination"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.orbit.devotel.io/api/v1/cdp/tiktok-events-destination', 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.orbit.devotel.io/api/v1/cdp/tiktok-events-destination",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/cdp/tiktok-events-destination"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.orbit.devotel.io/api/v1/cdp/tiktok-events-destination")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/tiktok-events-destination")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"enabled": true,
"pixel_code": "C8A9B2D4E6F0G1H3J5",
"test_event_code": "TIKTOKTEST123",
"access_token_configured": true,
"last_run_at": "2026-09-03T04:00:00.000Z",
"last_run_status": "ok",
"last_sent_count": 42,
"last_error": null,
"last_error_at": null,
"consecutive_failures": 0
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "<string>",
"status": 429,
"retry_after": 2
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Response
The post-merge public config — same shape as GET.
The post-merge public config — same shape as GET.
Example:
{
"data": {
"enabled": true,
"pixel_code": "C8A9B2D4E6F0G1H3J5",
"test_event_code": "TIKTOKTEST123",
"access_token_configured": true,
"last_run_at": "2026-09-03T04:00:00.000Z",
"last_run_status": "ok",
"last_sent_count": 42,
"last_error": null,
"last_error_at": null,
"consecutive_failures": 0
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2"
}
}