Skip to main content
PATCH
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
tracker-scans
/
{id}
Update tracker scan
curl --request PATCH \
  --url https://api.concord.tech/privacy-v1/organizations/{organizationId}/projects/{projectId}/tracker-scans/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "addedToProject": true,
  "company": "<string>",
  "domain": "<string>",
  "description": "<string>",
  "expiration": 123,
  "name": "<string>",
  "matchedTrackerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "pattern": "<string>"
}
'
import requests

url = "https://api.concord.tech/privacy-v1/organizations/{organizationId}/projects/{projectId}/tracker-scans/{id}"

payload = {
"addedToProject": True,
"company": "<string>",
"domain": "<string>",
"description": "<string>",
"expiration": 123,
"name": "<string>",
"matchedTrackerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pattern": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
addedToProject: true,
company: '<string>',
domain: '<string>',
description: '<string>',
expiration: 123,
name: '<string>',
matchedTrackerId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
pattern: '<string>'
})
};

fetch('https://api.concord.tech/privacy-v1/organizations/{organizationId}/projects/{projectId}/tracker-scans/{id}', 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.concord.tech/privacy-v1/organizations/{organizationId}/projects/{projectId}/tracker-scans/{id}",
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([
'addedToProject' => true,
'company' => '<string>',
'domain' => '<string>',
'description' => '<string>',
'expiration' => 123,
'name' => '<string>',
'matchedTrackerId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'pattern' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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://api.concord.tech/privacy-v1/organizations/{organizationId}/projects/{projectId}/tracker-scans/{id}"

payload := strings.NewReader("{\n \"addedToProject\": true,\n \"company\": \"<string>\",\n \"domain\": \"<string>\",\n \"description\": \"<string>\",\n \"expiration\": 123,\n \"name\": \"<string>\",\n \"matchedTrackerId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pattern\": \"<string>\"\n}")

req, _ := http.NewRequest("PATCH", url, payload)

req.Header.Add("x-api-key", "<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://api.concord.tech/privacy-v1/organizations/{organizationId}/projects/{projectId}/tracker-scans/{id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"addedToProject\": true,\n \"company\": \"<string>\",\n \"domain\": \"<string>\",\n \"description\": \"<string>\",\n \"expiration\": 123,\n \"name\": \"<string>\",\n \"matchedTrackerId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pattern\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.concord.tech/privacy-v1/organizations/{organizationId}/projects/{projectId}/tracker-scans/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"addedToProject\": true,\n \"company\": \"<string>\",\n \"domain\": \"<string>\",\n \"description\": \"<string>\",\n \"expiration\": 123,\n \"name\": \"<string>\",\n \"matchedTrackerId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pattern\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "addedToProject": true,
  "dateCreated": 123,
  "dateUpdated": 123,
  "domain": "<string>",
  "expiration": 123,
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "matchedTrackerId": "<string>",
  "name": "<string>",
  "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "projectDomain": "<string>",
  "company": "<string>",
  "dateDetected": 123,
  "description": "<string>",
  "pattern": "<string>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

organizationId
string<uuid>
required
projectId
string<uuid>
required
id
string<uuid>
required

Body

application/json
addedToProject
boolean
category
enum<string>
Available options:
analytics,
functional,
marketing,
strictly_necessary,
unclassified,
ignored,
malicious
company
string
domain
string
description
string
expiration
integer
name
string
Maximum string length: 256
matchType
enum<string>
Available options:
global,
project,
new
matchedTrackerId
string<uuid>
pattern
string
type
enum<string>
Available options:
cookie,
script,
iframe,
image,
link,
local_storage,
session_storage

Response

200 - application/json

Default Response

addedToProject
boolean
required
dateCreated
integer
required
dateUpdated
integer
required
domain
string
required
expiration
integer
required
id
string<uuid>
required
matchType
enum<string>
required
Available options:
global,
project,
new
matchedTrackerId
string
required
name
string
required
Maximum string length: 256
origin
enum<string>
required
Available options:
site-client,
backend
projectId
string<uuid>
required
projectDomain
string
required
type
enum<string>
required
Available options:
cookie,
script,
iframe,
image,
link,
local_storage,
session_storage
category
enum<string>
Available options:
analytics,
functional,
marketing,
strictly_necessary,
unclassified,
ignored,
malicious
company
string
dateDetected
integer
description
string
pattern
string