Set enrichment config override for a property
curl --request PUT \
--url https://api.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-config \
--header 'Content-Type: application/json' \
--data '
{
"ai_matching_guidance": "<string>",
"enrichment_config": {
"extraction_hint": "<string>",
"generation_context_fields": [
"<string>"
],
"generation_prompt": "<string>",
"llm_model": "<string>",
"max_length": 123,
"overwrite_merchant_input": true,
"source_priority": [
"<string>"
],
"strategies": [
"<string>"
]
},
"prompt_name": "<string>"
}
'import requests
url = "https://api.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-config"
payload = {
"ai_matching_guidance": "<string>",
"enrichment_config": {
"extraction_hint": "<string>",
"generation_context_fields": ["<string>"],
"generation_prompt": "<string>",
"llm_model": "<string>",
"max_length": 123,
"overwrite_merchant_input": True,
"source_priority": ["<string>"],
"strategies": ["<string>"]
},
"prompt_name": "<string>"
}
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({
ai_matching_guidance: '<string>',
enrichment_config: {
extraction_hint: '<string>',
generation_context_fields: ['<string>'],
generation_prompt: '<string>',
llm_model: '<string>',
max_length: 123,
overwrite_merchant_input: true,
source_priority: ['<string>'],
strategies: ['<string>']
},
prompt_name: '<string>'
})
};
fetch('https://api.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-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://api.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-config",
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([
'ai_matching_guidance' => '<string>',
'enrichment_config' => [
'extraction_hint' => '<string>',
'generation_context_fields' => [
'<string>'
],
'generation_prompt' => '<string>',
'llm_model' => '<string>',
'max_length' => 123,
'overwrite_merchant_input' => true,
'source_priority' => [
'<string>'
],
'strategies' => [
'<string>'
]
],
'prompt_name' => '<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://api.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-config"
payload := strings.NewReader("{\n \"ai_matching_guidance\": \"<string>\",\n \"enrichment_config\": {\n \"extraction_hint\": \"<string>\",\n \"generation_context_fields\": [\n \"<string>\"\n ],\n \"generation_prompt\": \"<string>\",\n \"llm_model\": \"<string>\",\n \"max_length\": 123,\n \"overwrite_merchant_input\": true,\n \"source_priority\": [\n \"<string>\"\n ],\n \"strategies\": [\n \"<string>\"\n ]\n },\n \"prompt_name\": \"<string>\"\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.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-config")
.header("Content-Type", "application/json")
.body("{\n \"ai_matching_guidance\": \"<string>\",\n \"enrichment_config\": {\n \"extraction_hint\": \"<string>\",\n \"generation_context_fields\": [\n \"<string>\"\n ],\n \"generation_prompt\": \"<string>\",\n \"llm_model\": \"<string>\",\n \"max_length\": 123,\n \"overwrite_merchant_input\": true,\n \"source_priority\": [\n \"<string>\"\n ],\n \"strategies\": [\n \"<string>\"\n ]\n },\n \"prompt_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-config")
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 \"ai_matching_guidance\": \"<string>\",\n \"enrichment_config\": {\n \"extraction_hint\": \"<string>\",\n \"generation_context_fields\": [\n \"<string>\"\n ],\n \"generation_prompt\": \"<string>\",\n \"llm_model\": \"<string>\",\n \"max_length\": 123,\n \"overwrite_merchant_input\": true,\n \"source_priority\": [\n \"<string>\"\n ],\n \"strategies\": [\n \"<string>\"\n ]\n },\n \"prompt_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"has_override": true,
"product_type_key": "<string>",
"property_key": "<string>",
"ai_matching_guidance": "<string>",
"enrichment_config": {},
"prompt_name": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Product Types
Set enrichment config override for a property
Set or update enrichment config override for a property on a product type.
PUT
/
api
/
product-types
/
{key}
/
properties
/
{prop_key}
/
enrichment-config
Set enrichment config override for a property
curl --request PUT \
--url https://api.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-config \
--header 'Content-Type: application/json' \
--data '
{
"ai_matching_guidance": "<string>",
"enrichment_config": {
"extraction_hint": "<string>",
"generation_context_fields": [
"<string>"
],
"generation_prompt": "<string>",
"llm_model": "<string>",
"max_length": 123,
"overwrite_merchant_input": true,
"source_priority": [
"<string>"
],
"strategies": [
"<string>"
]
},
"prompt_name": "<string>"
}
'import requests
url = "https://api.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-config"
payload = {
"ai_matching_guidance": "<string>",
"enrichment_config": {
"extraction_hint": "<string>",
"generation_context_fields": ["<string>"],
"generation_prompt": "<string>",
"llm_model": "<string>",
"max_length": 123,
"overwrite_merchant_input": True,
"source_priority": ["<string>"],
"strategies": ["<string>"]
},
"prompt_name": "<string>"
}
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({
ai_matching_guidance: '<string>',
enrichment_config: {
extraction_hint: '<string>',
generation_context_fields: ['<string>'],
generation_prompt: '<string>',
llm_model: '<string>',
max_length: 123,
overwrite_merchant_input: true,
source_priority: ['<string>'],
strategies: ['<string>']
},
prompt_name: '<string>'
})
};
fetch('https://api.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-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://api.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-config",
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([
'ai_matching_guidance' => '<string>',
'enrichment_config' => [
'extraction_hint' => '<string>',
'generation_context_fields' => [
'<string>'
],
'generation_prompt' => '<string>',
'llm_model' => '<string>',
'max_length' => 123,
'overwrite_merchant_input' => true,
'source_priority' => [
'<string>'
],
'strategies' => [
'<string>'
]
],
'prompt_name' => '<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://api.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-config"
payload := strings.NewReader("{\n \"ai_matching_guidance\": \"<string>\",\n \"enrichment_config\": {\n \"extraction_hint\": \"<string>\",\n \"generation_context_fields\": [\n \"<string>\"\n ],\n \"generation_prompt\": \"<string>\",\n \"llm_model\": \"<string>\",\n \"max_length\": 123,\n \"overwrite_merchant_input\": true,\n \"source_priority\": [\n \"<string>\"\n ],\n \"strategies\": [\n \"<string>\"\n ]\n },\n \"prompt_name\": \"<string>\"\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.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-config")
.header("Content-Type", "application/json")
.body("{\n \"ai_matching_guidance\": \"<string>\",\n \"enrichment_config\": {\n \"extraction_hint\": \"<string>\",\n \"generation_context_fields\": [\n \"<string>\"\n ],\n \"generation_prompt\": \"<string>\",\n \"llm_model\": \"<string>\",\n \"max_length\": 123,\n \"overwrite_merchant_input\": true,\n \"source_priority\": [\n \"<string>\"\n ],\n \"strategies\": [\n \"<string>\"\n ]\n },\n \"prompt_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.merchantops.ai/api/product-types/{key}/properties/{prop_key}/enrichment-config")
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 \"ai_matching_guidance\": \"<string>\",\n \"enrichment_config\": {\n \"extraction_hint\": \"<string>\",\n \"generation_context_fields\": [\n \"<string>\"\n ],\n \"generation_prompt\": \"<string>\",\n \"llm_model\": \"<string>\",\n \"max_length\": 123,\n \"overwrite_merchant_input\": true,\n \"source_priority\": [\n \"<string>\"\n ],\n \"strategies\": [\n \"<string>\"\n ]\n },\n \"prompt_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"has_override": true,
"product_type_key": "<string>",
"property_key": "<string>",
"ai_matching_guidance": "<string>",
"enrichment_config": {},
"prompt_name": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Cookies
Body
application/json