curl --request PUT \
--url https://app.flextell.ai/api/v1/integration-connections/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Tenant: <x-tenant>' \
--data '
{
"name": "<string>",
"field_mapping": [
{
"source": "<string>",
"target": "<string>"
}
],
"external_id_path": "<string>",
"settings": [
"<string>"
]
}
'import requests
url = "https://app.flextell.ai/api/v1/integration-connections/{id}"
payload = {
"name": "<string>",
"field_mapping": [
{
"source": "<string>",
"target": "<string>"
}
],
"external_id_path": "<string>",
"settings": ["<string>"]
}
headers = {
"X-Tenant": "<x-tenant>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'X-Tenant': '<x-tenant>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
field_mapping: [{source: '<string>', target: '<string>'}],
external_id_path: '<string>',
settings: ['<string>']
})
};
fetch('https://app.flextell.ai/api/v1/integration-connections/{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://app.flextell.ai/api/v1/integration-connections/{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>',
'field_mapping' => [
[
'source' => '<string>',
'target' => '<string>'
]
],
'external_id_path' => '<string>',
'settings' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Tenant: <x-tenant>"
],
]);
$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://app.flextell.ai/api/v1/integration-connections/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"field_mapping\": [\n {\n \"source\": \"<string>\",\n \"target\": \"<string>\"\n }\n ],\n \"external_id_path\": \"<string>\",\n \"settings\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Tenant", "<x-tenant>")
req.Header.Add("Authorization", "Bearer <token>")
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://app.flextell.ai/api/v1/integration-connections/{id}")
.header("X-Tenant", "<x-tenant>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"field_mapping\": [\n {\n \"source\": \"<string>\",\n \"target\": \"<string>\"\n }\n ],\n \"external_id_path\": \"<string>\",\n \"settings\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.flextell.ai/api/v1/integration-connections/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Tenant"] = '<x-tenant>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"field_mapping\": [\n {\n \"source\": \"<string>\",\n \"target\": \"<string>\"\n }\n ],\n \"external_id_path\": \"<string>\",\n \"settings\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": "<string>",
"data": {
"id": 123,
"name": "<string>",
"integration": {
"id": 123,
"name": "<string>",
"system_name": "<string>",
"company_logo": null
},
"entity": {
"value": "<string>",
"label": "<string>"
},
"status": "<string>",
"inbound_url": "<string>",
"secret": "<string>",
"secret_header": "X-Flextell-Secret",
"field_mapping": [
{
"source": "<string>",
"target": "<string>"
}
],
"external_id_path": "<string>",
"settings": {},
"stats": {
"pending": 123,
"processed": 123,
"failed": 123,
"skipped": 123
},
"last_received_at": "2023-11-07T05:31:56Z",
"last_processed_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"success": true,
"error_code": "RESOURCE_NOT_FOUND",
"message": "<string>",
"errors": null,
"data": null
}{
"message": "<string>",
"errors": {}
}Update an integration connection
Saves the name, the field mapping, the external id path and the entity settings. Omitted keys are
left unchanged; given field_mapping and settings replace the stored ones.
curl --request PUT \
--url https://app.flextell.ai/api/v1/integration-connections/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Tenant: <x-tenant>' \
--data '
{
"name": "<string>",
"field_mapping": [
{
"source": "<string>",
"target": "<string>"
}
],
"external_id_path": "<string>",
"settings": [
"<string>"
]
}
'import requests
url = "https://app.flextell.ai/api/v1/integration-connections/{id}"
payload = {
"name": "<string>",
"field_mapping": [
{
"source": "<string>",
"target": "<string>"
}
],
"external_id_path": "<string>",
"settings": ["<string>"]
}
headers = {
"X-Tenant": "<x-tenant>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'X-Tenant': '<x-tenant>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
field_mapping: [{source: '<string>', target: '<string>'}],
external_id_path: '<string>',
settings: ['<string>']
})
};
fetch('https://app.flextell.ai/api/v1/integration-connections/{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://app.flextell.ai/api/v1/integration-connections/{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>',
'field_mapping' => [
[
'source' => '<string>',
'target' => '<string>'
]
],
'external_id_path' => '<string>',
'settings' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Tenant: <x-tenant>"
],
]);
$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://app.flextell.ai/api/v1/integration-connections/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"field_mapping\": [\n {\n \"source\": \"<string>\",\n \"target\": \"<string>\"\n }\n ],\n \"external_id_path\": \"<string>\",\n \"settings\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Tenant", "<x-tenant>")
req.Header.Add("Authorization", "Bearer <token>")
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://app.flextell.ai/api/v1/integration-connections/{id}")
.header("X-Tenant", "<x-tenant>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"field_mapping\": [\n {\n \"source\": \"<string>\",\n \"target\": \"<string>\"\n }\n ],\n \"external_id_path\": \"<string>\",\n \"settings\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.flextell.ai/api/v1/integration-connections/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Tenant"] = '<x-tenant>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"field_mapping\": [\n {\n \"source\": \"<string>\",\n \"target\": \"<string>\"\n }\n ],\n \"external_id_path\": \"<string>\",\n \"settings\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": "<string>",
"data": {
"id": 123,
"name": "<string>",
"integration": {
"id": 123,
"name": "<string>",
"system_name": "<string>",
"company_logo": null
},
"entity": {
"value": "<string>",
"label": "<string>"
},
"status": "<string>",
"inbound_url": "<string>",
"secret": "<string>",
"secret_header": "X-Flextell-Secret",
"field_mapping": [
{
"source": "<string>",
"target": "<string>"
}
],
"external_id_path": "<string>",
"settings": {},
"stats": {
"pending": 123,
"processed": 123,
"failed": 123,
"skipped": 123
},
"last_received_at": "2023-11-07T05:31:56Z",
"last_processed_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"success": true,
"error_code": "RESOURCE_NOT_FOUND",
"message": "<string>",
"errors": null,
"data": null
}{
"message": "<string>",
"errors": {}
}Yetkilendirmeler
The access token received from the authorization server in the OAuth 2.0 flow.
Başlıklar
Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.
Yol Parametreleri
The integration connection identifier
Gövde
A name that tells this connection apart.
255The full field mapping; replaces the stored one. An empty array clears it.
200Show child attributes
Show child attributes
The payload path holding the source record's own id; a record re-sent with the same id updates the record it created instead of adding a new one. Null turns updating off.
255Entity-specific options keyed as listed by the integration-entities endpoint; replaces the stored ones.