Upsert an identity rule
curl --request PUT \
--url https://api.orbit.devotel.io/api/v1/cdp/identity-rules \
--header 'Content-Type: application/json' \
--data '
{
"priority": 123,
"enabled": true
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/cdp/identity-rules"
payload = {
"priority": 123,
"enabled": True
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({priority: 123, enabled: true})
};
fetch('https://api.orbit.devotel.io/api/v1/cdp/identity-rules', 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/identity-rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'priority' => 123,
'enabled' => true
]),
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/identity-rules"
payload := strings.NewReader("{\n \"priority\": 123,\n \"enabled\": true\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.orbit.devotel.io/api/v1/cdp/identity-rules")
.header("Content-Type", "application/json")
.body("{\n \"priority\": 123,\n \"enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/identity-rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"priority\": 123,\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "cdpidrl_01J9A2B3C4D5E6F7G8H9J0",
"match_type": "phone",
"priority": 10,
"enabled": true,
"created_at": "2026-09-01T12:00:00.000Z",
"updated_at": "2026-09-03T09:30:00.000Z"
},
"meta": {
"request_id": "req_01J9A2B3C4D5E6F7G8H9J1",
"timestamp": "2026-09-03T09:30:00.000Z"
}
}{
"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
Upsert an identity rule
Creates or updates one identity rule keyed on its match_type — one row per match shape per tenant, so re-PUTting an existing match type updates it in place. priority orders rules in the resolution pass (ascending); enabled = false keeps the row for audit but makes the resolver skip it. Audit-logged on write.
PUT
/
api
/
v1
/
cdp
/
identity-rules
Upsert an identity rule
curl --request PUT \
--url https://api.orbit.devotel.io/api/v1/cdp/identity-rules \
--header 'Content-Type: application/json' \
--data '
{
"priority": 123,
"enabled": true
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/cdp/identity-rules"
payload = {
"priority": 123,
"enabled": True
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({priority: 123, enabled: true})
};
fetch('https://api.orbit.devotel.io/api/v1/cdp/identity-rules', 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/identity-rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'priority' => 123,
'enabled' => true
]),
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/identity-rules"
payload := strings.NewReader("{\n \"priority\": 123,\n \"enabled\": true\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.orbit.devotel.io/api/v1/cdp/identity-rules")
.header("Content-Type", "application/json")
.body("{\n \"priority\": 123,\n \"enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/identity-rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"priority\": 123,\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "cdpidrl_01J9A2B3C4D5E6F7G8H9J0",
"match_type": "phone",
"priority": 10,
"enabled": true,
"created_at": "2026-09-01T12:00:00.000Z",
"updated_at": "2026-09-03T09:30:00.000Z"
},
"meta": {
"request_id": "req_01J9A2B3C4D5E6F7G8H9J1",
"timestamp": "2026-09-03T09:30:00.000Z"
}
}{
"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>"
}
}Body
application/json
The MDM-safe identifier shape this rule permits as a merge key.
Available options:
external_id, phone, email, anonymous_id Rule precedence 1–1000; lower numbers resolve first.
False keeps the row for audit but makes the resolver skip it.
Response
The upserted (or created) identity-rule row: id, match type, priority, enabled flag, timestamps.
The upserted (or created) identity-rule row: id, match type, priority, enabled flag, timestamps.