Update one ad platform's conversion-forwarding mapping
curl --request PATCH \
--url https://api.orbit.devotel.io/api/v1/cdp/conversions/config/{platform} \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"nango_connection_id": "<string>",
"destination_id": "<string>",
"event_mappings": {}
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/cdp/conversions/config/{platform}"
payload = {
"enabled": True,
"nango_connection_id": "<string>",
"destination_id": "<string>",
"event_mappings": {}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
nango_connection_id: '<string>',
destination_id: '<string>',
event_mappings: {}
})
};
fetch('https://api.orbit.devotel.io/api/v1/cdp/conversions/config/{platform}', 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/conversions/config/{platform}",
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([
'enabled' => true,
'nango_connection_id' => '<string>',
'destination_id' => '<string>',
'event_mappings' => [
]
]),
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.orbit.devotel.io/api/v1/cdp/conversions/config/{platform}"
payload := strings.NewReader("{\n \"enabled\": true,\n \"nango_connection_id\": \"<string>\",\n \"destination_id\": \"<string>\",\n \"event_mappings\": {}\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.orbit.devotel.io/api/v1/cdp/conversions/config/{platform}")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"nango_connection_id\": \"<string>\",\n \"destination_id\": \"<string>\",\n \"event_mappings\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/conversions/config/{platform}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"nango_connection_id\": \"<string>\",\n \"destination_id\": \"<string>\",\n \"event_mappings\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"platform": "facebook",
"enabled": true,
"configured": true,
"nango_connection_id": "conn_01J8Z9K3P4",
"destination_id": "px_1234567890",
"event_mappings": {
"order_completed": "Purchase",
"lead_submitted": "Lead"
},
"last_forward_at": null,
"last_forward_status": null
},
"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 one ad platform's conversion-forwarding mapping
Partially updates the conversion mapping for one platform (facebook | google | tiktok | linkedin | snapchat | pinterest | reddit). Only the supplied keys are merged; siblings and other settings stay untouched. Enabling a mapping requires a destination id and a wired integration connection id, otherwise forward batches skip dispatch — the server enforces the same precondition the dashboard blocks on. Owner / admin / developer.
PATCH
/
api
/
v1
/
cdp
/
conversions
/
config
/
{platform}
Update one ad platform's conversion-forwarding mapping
curl --request PATCH \
--url https://api.orbit.devotel.io/api/v1/cdp/conversions/config/{platform} \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"nango_connection_id": "<string>",
"destination_id": "<string>",
"event_mappings": {}
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/cdp/conversions/config/{platform}"
payload = {
"enabled": True,
"nango_connection_id": "<string>",
"destination_id": "<string>",
"event_mappings": {}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
nango_connection_id: '<string>',
destination_id: '<string>',
event_mappings: {}
})
};
fetch('https://api.orbit.devotel.io/api/v1/cdp/conversions/config/{platform}', 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/conversions/config/{platform}",
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([
'enabled' => true,
'nango_connection_id' => '<string>',
'destination_id' => '<string>',
'event_mappings' => [
]
]),
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.orbit.devotel.io/api/v1/cdp/conversions/config/{platform}"
payload := strings.NewReader("{\n \"enabled\": true,\n \"nango_connection_id\": \"<string>\",\n \"destination_id\": \"<string>\",\n \"event_mappings\": {}\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.orbit.devotel.io/api/v1/cdp/conversions/config/{platform}")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"nango_connection_id\": \"<string>\",\n \"destination_id\": \"<string>\",\n \"event_mappings\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/conversions/config/{platform}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"nango_connection_id\": \"<string>\",\n \"destination_id\": \"<string>\",\n \"event_mappings\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"platform": "facebook",
"enabled": true,
"configured": true,
"nango_connection_id": "conn_01J8Z9K3P4",
"destination_id": "px_1234567890",
"event_mappings": {
"order_completed": "Purchase",
"lead_submitted": "Lead"
},
"last_forward_at": null,
"last_forward_status": null
},
"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>"
}
}