curl --request PATCH \
--url https://{subdomain}.nudj.cx/api/v2/admin/third-party-config \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"googleTagManager": {
"gtmId": "<string>"
},
"googleAnalytics": {
"gaId": "<string>"
},
"metaPixel": {
"pixelId": "<string>"
},
"oneTrust": {
"domainScriptId": "<string>"
}
}
'import requests
url = "https://{subdomain}.nudj.cx/api/v2/admin/third-party-config"
payload = {
"googleTagManager": { "gtmId": "<string>" },
"googleAnalytics": { "gaId": "<string>" },
"metaPixel": { "pixelId": "<string>" },
"oneTrust": { "domainScriptId": "<string>" }
}
headers = {
"x-api-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
googleTagManager: {gtmId: '<string>'},
googleAnalytics: {gaId: '<string>'},
metaPixel: {pixelId: '<string>'},
oneTrust: {domainScriptId: '<string>'}
})
};
fetch('https://{subdomain}.nudj.cx/api/v2/admin/third-party-config', 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://{subdomain}.nudj.cx/api/v2/admin/third-party-config",
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([
'googleTagManager' => [
'gtmId' => '<string>'
],
'googleAnalytics' => [
'gaId' => '<string>'
],
'metaPixel' => [
'pixelId' => '<string>'
],
'oneTrust' => [
'domainScriptId' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-token: <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://{subdomain}.nudj.cx/api/v2/admin/third-party-config"
payload := strings.NewReader("{\n \"googleTagManager\": {\n \"gtmId\": \"<string>\"\n },\n \"googleAnalytics\": {\n \"gaId\": \"<string>\"\n },\n \"metaPixel\": {\n \"pixelId\": \"<string>\"\n },\n \"oneTrust\": {\n \"domainScriptId\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-token", "<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.patch("https://{subdomain}.nudj.cx/api/v2/admin/third-party-config")
.header("x-api-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"googleTagManager\": {\n \"gtmId\": \"<string>\"\n },\n \"googleAnalytics\": {\n \"gaId\": \"<string>\"\n },\n \"metaPixel\": {\n \"pixelId\": \"<string>\"\n },\n \"oneTrust\": {\n \"domainScriptId\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.nudj.cx/api/v2/admin/third-party-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"googleTagManager\": {\n \"gtmId\": \"<string>\"\n },\n \"googleAnalytics\": {\n \"gaId\": \"<string>\"\n },\n \"metaPixel\": {\n \"pixelId\": \"<string>\"\n },\n \"oneTrust\": {\n \"domainScriptId\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"googleTagManager": {
"gtmId": "<string>"
},
"googleAnalytics": {
"gaId": "<string>"
},
"metaPixel": {
"pixelId": "<string>"
},
"oneTrust": {
"domainScriptId": "<string>"
},
"shopify": {
"isConnectionActive": true,
"shopDomain": "<string>"
}
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Update third party configuration
Update the third party configuration settings.
curl --request PATCH \
--url https://{subdomain}.nudj.cx/api/v2/admin/third-party-config \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"googleTagManager": {
"gtmId": "<string>"
},
"googleAnalytics": {
"gaId": "<string>"
},
"metaPixel": {
"pixelId": "<string>"
},
"oneTrust": {
"domainScriptId": "<string>"
}
}
'import requests
url = "https://{subdomain}.nudj.cx/api/v2/admin/third-party-config"
payload = {
"googleTagManager": { "gtmId": "<string>" },
"googleAnalytics": { "gaId": "<string>" },
"metaPixel": { "pixelId": "<string>" },
"oneTrust": { "domainScriptId": "<string>" }
}
headers = {
"x-api-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
googleTagManager: {gtmId: '<string>'},
googleAnalytics: {gaId: '<string>'},
metaPixel: {pixelId: '<string>'},
oneTrust: {domainScriptId: '<string>'}
})
};
fetch('https://{subdomain}.nudj.cx/api/v2/admin/third-party-config', 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://{subdomain}.nudj.cx/api/v2/admin/third-party-config",
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([
'googleTagManager' => [
'gtmId' => '<string>'
],
'googleAnalytics' => [
'gaId' => '<string>'
],
'metaPixel' => [
'pixelId' => '<string>'
],
'oneTrust' => [
'domainScriptId' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-token: <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://{subdomain}.nudj.cx/api/v2/admin/third-party-config"
payload := strings.NewReader("{\n \"googleTagManager\": {\n \"gtmId\": \"<string>\"\n },\n \"googleAnalytics\": {\n \"gaId\": \"<string>\"\n },\n \"metaPixel\": {\n \"pixelId\": \"<string>\"\n },\n \"oneTrust\": {\n \"domainScriptId\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-token", "<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.patch("https://{subdomain}.nudj.cx/api/v2/admin/third-party-config")
.header("x-api-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"googleTagManager\": {\n \"gtmId\": \"<string>\"\n },\n \"googleAnalytics\": {\n \"gaId\": \"<string>\"\n },\n \"metaPixel\": {\n \"pixelId\": \"<string>\"\n },\n \"oneTrust\": {\n \"domainScriptId\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.nudj.cx/api/v2/admin/third-party-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"googleTagManager\": {\n \"gtmId\": \"<string>\"\n },\n \"googleAnalytics\": {\n \"gaId\": \"<string>\"\n },\n \"metaPixel\": {\n \"pixelId\": \"<string>\"\n },\n \"oneTrust\": {\n \"domainScriptId\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"googleTagManager": {
"gtmId": "<string>"
},
"googleAnalytics": {
"gaId": "<string>"
},
"metaPixel": {
"pixelId": "<string>"
},
"oneTrust": {
"domainScriptId": "<string>"
},
"shopify": {
"isConnectionActive": true,
"shopDomain": "<string>"
}
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Authorizations
Body
Input for updating third party configuration settings. Only include fields you want to update. Set a field to null to remove that integration configuration.
Google Tag Manager integration settings
Show child attributes
Show child attributes
Google Analytics integration settings
Show child attributes
Show child attributes
Meta Pixel integration settings
Show child attributes
Show child attributes
OneTrust integration settings
Show child attributes
Show child attributes
Response
Successful response
Third party integration settings
Google Tag Manager integration settings
Show child attributes
Show child attributes
Google Analytics integration settings
Show child attributes
Show child attributes
Meta Pixel integration settings
Show child attributes
Show child attributes
OneTrust integration settings
Show child attributes
Show child attributes
Shopify integration settings
Show child attributes
Show child attributes
Was this page helpful?

