Update third party configuration
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": []
}Third Party Config
Update third party configuration
Update the third party configuration settings.
PATCH
/
third-party-config
Update third party configuration
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": []
}Body
application/json
Input for updating third party configuration settings. Only include fields you want to update. Set a field to null to remove that integration configuration.
Response
Successful response
Third party integration settings
Was this page helpful?

