Update a computed-trait rule
curl --request PUT \
--url https://api.orbit.devotel.io/api/v1/cdp/computed-traits/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.orbit.devotel.io/api/v1/cdp/computed-traits/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.orbit.devotel.io/api/v1/cdp/computed-traits/{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.orbit.devotel.io/api/v1/cdp/computed-traits/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/cdp/computed-traits/{id}"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/computed-traits/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/computed-traits/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "ctr_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"name": "High-value active",
"description": "LTV over $750 and seen in the last 30 days.",
"output_tag": "high-value-active",
"predicate": {
"all_of": [
{
"kind": "numeric",
"trait": "ltv",
"op": "gte",
"value": 750
},
{
"kind": "date",
"trait": "last_seen_at",
"op": "within_days",
"value": 30
}
]
},
"enabled": true,
"created_by": "user_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"created_at": "2026-08-01T09:00:00.000Z",
"updated_at": "2026-08-07T12:00:00.000Z"
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-07T12:00:00.000Z"
}
}CDP
Update a computed-trait rule
Applies a partial update to one computed-trait rule identified by :id — any of name, description, output_tag, predicate, or enabled. A supplied predicate is re-validated for depth and leaf budget before it is stored, and a changed output_tag must stay unique. Use it to edit a rule or toggle it on/off. Returns the updated rule; an unknown id is 404 and a duplicate tag is 409. Owner / admin / developer only.
PUT
/
api
/
v1
/
cdp
/
computed-traits
/
{id}
Update a computed-trait rule
curl --request PUT \
--url https://api.orbit.devotel.io/api/v1/cdp/computed-traits/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.orbit.devotel.io/api/v1/cdp/computed-traits/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.orbit.devotel.io/api/v1/cdp/computed-traits/{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.orbit.devotel.io/api/v1/cdp/computed-traits/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/cdp/computed-traits/{id}"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/computed-traits/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/computed-traits/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "ctr_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"name": "High-value active",
"description": "LTV over $750 and seen in the last 30 days.",
"output_tag": "high-value-active",
"predicate": {
"all_of": [
{
"kind": "numeric",
"trait": "ltv",
"op": "gte",
"value": 750
},
{
"kind": "date",
"trait": "last_seen_at",
"op": "within_days",
"value": 30
}
]
},
"enabled": true,
"created_by": "user_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"created_at": "2026-08-01T09:00:00.000Z",
"updated_at": "2026-08-07T12:00:00.000Z"
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-07T12:00:00.000Z"
}
}⌘I