Update a connector
curl --request PUT \
--url https://api.databar.ai/v1/connectors/{connector_id} \
--header 'Content-Type: application/json' \
--header 'x-apikey: <x-apikey>' \
--data '
{
"name": "<string>",
"method": "<string>",
"url": "<string>",
"type": "enrichment",
"headers": [
{
"name": "<string>",
"value": ""
}
],
"parameters": [
{
"name": "<string>",
"value": ""
}
],
"body": [
{
"name": "<string>",
"value": ""
}
],
"body_template": "<string>",
"rate_limit": 2,
"max_concurrency": 2
}
'import requests
url = "https://api.databar.ai/v1/connectors/{connector_id}"
payload = {
"name": "<string>",
"method": "<string>",
"url": "<string>",
"type": "enrichment",
"headers": [
{
"name": "<string>",
"value": ""
}
],
"parameters": [
{
"name": "<string>",
"value": ""
}
],
"body": [
{
"name": "<string>",
"value": ""
}
],
"body_template": "<string>",
"rate_limit": 2,
"max_concurrency": 2
}
headers = {
"x-apikey": "<x-apikey>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-apikey': '<x-apikey>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
method: '<string>',
url: '<string>',
type: 'enrichment',
headers: [{name: '<string>', value: ''}],
parameters: [{name: '<string>', value: ''}],
body: JSON.stringify([{name: '<string>', value: ''}]),
body_template: '<string>',
rate_limit: 2,
max_concurrency: 2
})
};
fetch('https://api.databar.ai/v1/connectors/{connector_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.databar.ai/v1/connectors/{connector_id}",
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([
'name' => '<string>',
'method' => '<string>',
'url' => '<string>',
'type' => 'enrichment',
'headers' => [
[
'name' => '<string>',
'value' => ''
]
],
'parameters' => [
[
'name' => '<string>',
'value' => ''
]
],
'body' => [
[
'name' => '<string>',
'value' => ''
]
],
'body_template' => '<string>',
'rate_limit' => 2,
'max_concurrency' => 2
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-apikey: <x-apikey>"
],
]);
$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.databar.ai/v1/connectors/{connector_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"method\": \"<string>\",\n \"url\": \"<string>\",\n \"type\": \"enrichment\",\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"parameters\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"body\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"body_template\": \"<string>\",\n \"rate_limit\": 2,\n \"max_concurrency\": 2\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-apikey", "<x-apikey>")
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.databar.ai/v1/connectors/{connector_id}")
.header("x-apikey", "<x-apikey>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"method\": \"<string>\",\n \"url\": \"<string>\",\n \"type\": \"enrichment\",\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"parameters\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"body\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"body_template\": \"<string>\",\n \"rate_limit\": 2,\n \"max_concurrency\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.databar.ai/v1/connectors/{connector_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-apikey"] = '<x-apikey>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"method\": \"<string>\",\n \"url\": \"<string>\",\n \"type\": \"enrichment\",\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"parameters\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"body\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"body_template\": \"<string>\",\n \"rate_limit\": 2,\n \"max_concurrency\": 2\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"type": "<string>",
"method": "<string>",
"url": "<string>",
"headers": [],
"parameters": [],
"body": [],
"body_template": "<string>",
"rate_limit": 123,
"max_concurrency": 123,
"created_at": "<string>"
}{
"error": "<string>",
"detail": "<string>",
"fields": [
{
"loc": [
"<string>"
],
"msg": "<string>"
}
]
}Connectors
Update custom connector
Replaces the configuration of an existing custom API connector.
PUT
/
v1
/
connectors
/
{connector_id}
Update a connector
curl --request PUT \
--url https://api.databar.ai/v1/connectors/{connector_id} \
--header 'Content-Type: application/json' \
--header 'x-apikey: <x-apikey>' \
--data '
{
"name": "<string>",
"method": "<string>",
"url": "<string>",
"type": "enrichment",
"headers": [
{
"name": "<string>",
"value": ""
}
],
"parameters": [
{
"name": "<string>",
"value": ""
}
],
"body": [
{
"name": "<string>",
"value": ""
}
],
"body_template": "<string>",
"rate_limit": 2,
"max_concurrency": 2
}
'import requests
url = "https://api.databar.ai/v1/connectors/{connector_id}"
payload = {
"name": "<string>",
"method": "<string>",
"url": "<string>",
"type": "enrichment",
"headers": [
{
"name": "<string>",
"value": ""
}
],
"parameters": [
{
"name": "<string>",
"value": ""
}
],
"body": [
{
"name": "<string>",
"value": ""
}
],
"body_template": "<string>",
"rate_limit": 2,
"max_concurrency": 2
}
headers = {
"x-apikey": "<x-apikey>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-apikey': '<x-apikey>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
method: '<string>',
url: '<string>',
type: 'enrichment',
headers: [{name: '<string>', value: ''}],
parameters: [{name: '<string>', value: ''}],
body: JSON.stringify([{name: '<string>', value: ''}]),
body_template: '<string>',
rate_limit: 2,
max_concurrency: 2
})
};
fetch('https://api.databar.ai/v1/connectors/{connector_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.databar.ai/v1/connectors/{connector_id}",
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([
'name' => '<string>',
'method' => '<string>',
'url' => '<string>',
'type' => 'enrichment',
'headers' => [
[
'name' => '<string>',
'value' => ''
]
],
'parameters' => [
[
'name' => '<string>',
'value' => ''
]
],
'body' => [
[
'name' => '<string>',
'value' => ''
]
],
'body_template' => '<string>',
'rate_limit' => 2,
'max_concurrency' => 2
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-apikey: <x-apikey>"
],
]);
$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.databar.ai/v1/connectors/{connector_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"method\": \"<string>\",\n \"url\": \"<string>\",\n \"type\": \"enrichment\",\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"parameters\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"body\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"body_template\": \"<string>\",\n \"rate_limit\": 2,\n \"max_concurrency\": 2\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-apikey", "<x-apikey>")
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.databar.ai/v1/connectors/{connector_id}")
.header("x-apikey", "<x-apikey>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"method\": \"<string>\",\n \"url\": \"<string>\",\n \"type\": \"enrichment\",\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"parameters\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"body\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"body_template\": \"<string>\",\n \"rate_limit\": 2,\n \"max_concurrency\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.databar.ai/v1/connectors/{connector_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-apikey"] = '<x-apikey>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"method\": \"<string>\",\n \"url\": \"<string>\",\n \"type\": \"enrichment\",\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"parameters\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"body\": [\n {\n \"name\": \"<string>\",\n \"value\": \"\"\n }\n ],\n \"body_template\": \"<string>\",\n \"rate_limit\": 2,\n \"max_concurrency\": 2\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"type": "<string>",
"method": "<string>",
"url": "<string>",
"headers": [],
"parameters": [],
"body": [],
"body_template": "<string>",
"rate_limit": 123,
"max_concurrency": 123,
"created_at": "<string>"
}{
"error": "<string>",
"detail": "<string>",
"fields": [
{
"loc": [
"<string>"
],
"msg": "<string>"
}
]
}Body
application/json
Full API endpoint URL (e.g. https://api.example.com/v1/score)
Maximum string length:
512Response
Successful Response