Set or clear property values for an entity
curl --request PATCH \
--url https://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId} \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"propertyId": "<string>",
"value": "<string>",
"values": [
"<string>"
]
}
]
}
'import requests
url = "https://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId}"
payload = { "items": [
{
"propertyId": "<string>",
"value": "<string>",
"values": ["<string>"]
}
] }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({items: [{propertyId: '<string>', value: '<string>', values: ['<string>']}]})
};
fetch('https://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId}', 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://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId}",
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([
'items' => [
[
'propertyId' => '<string>',
'value' => '<string>',
'values' => [
'<string>'
]
]
]
]),
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://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId}"
payload := strings.NewReader("{\n \"items\": [\n {\n \"propertyId\": \"<string>\",\n \"value\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId}")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"propertyId\": \"<string>\",\n \"value\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"propertyId\": \"<string>\",\n \"value\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"applied": [
{
"action": "<string>",
"propertyId": "<string>"
}
],
"entityId": "<string>",
"errors": [
{
"error": "<string>",
"propertyId": "<string>"
}
],
"version": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Properties - Values
Set or clear property values for an entity
Apply a batch of set/clear operations to the entity’s property values. Per-item failures do not abort the batch. Multi-select properties take their selection via the values array; all other types use value.
PATCH
/
api
/
taxonomy
/
v1
/
property-values
/
{entityType}
/
{entityId}
Set or clear property values for an entity
curl --request PATCH \
--url https://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId} \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"propertyId": "<string>",
"value": "<string>",
"values": [
"<string>"
]
}
]
}
'import requests
url = "https://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId}"
payload = { "items": [
{
"propertyId": "<string>",
"value": "<string>",
"values": ["<string>"]
}
] }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({items: [{propertyId: '<string>', value: '<string>', values: ['<string>']}]})
};
fetch('https://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId}', 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://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId}",
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([
'items' => [
[
'propertyId' => '<string>',
'value' => '<string>',
'values' => [
'<string>'
]
]
]
]),
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://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId}"
payload := strings.NewReader("{\n \"items\": [\n {\n \"propertyId\": \"<string>\",\n \"value\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId}")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"propertyId\": \"<string>\",\n \"value\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/taxonomy/v1/property-values/{entityType}/{entityId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"propertyId\": \"<string>\",\n \"value\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"applied": [
{
"action": "<string>",
"propertyId": "<string>"
}
],
"entityId": "<string>",
"errors": [
{
"error": "<string>",
"propertyId": "<string>"
}
],
"version": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Query Parameters
Entity version. Required for app_version; omitted for all other types (model_version is referenced by its version UUID)
Body
application/json
Items to apply
Show child attributes
Show child attributes
Related topics
Clear all property values for an entityGet property values for an entityPropertiesCopy all property values from one entity to anotherWas this page helpful?
⌘I