Upsert Rows
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/custom-data-sources/{id_or_slug}/rows \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"rows": [
{
"external_id": "<string>",
"data": {},
"tags": [
"<string>"
],
"metadata": {},
"searchable_text": "<string>",
"content": "<string>"
}
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/custom-data-sources/{id_or_slug}/rows"
payload = { "rows": [
{
"external_id": "<string>",
"data": {},
"tags": ["<string>"],
"metadata": {},
"searchable_text": "<string>",
"content": "<string>"
}
] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rows: [
{
external_id: '<string>',
data: {},
tags: ['<string>'],
metadata: {},
searchable_text: '<string>',
content: '<string>'
}
]
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/custom-data-sources/{id_or_slug}/rows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Custom Data Sources
Upsert Rows
Insert or update rows by external_id.
POST
/
api
/
v1
/
custom-data-sources
/
{id_or_slug}
/
rows
Upsert Rows
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/custom-data-sources/{id_or_slug}/rows \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"rows": [
{
"external_id": "<string>",
"data": {},
"tags": [
"<string>"
],
"metadata": {},
"searchable_text": "<string>",
"content": "<string>"
}
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/custom-data-sources/{id_or_slug}/rows"
payload = { "rows": [
{
"external_id": "<string>",
"data": {},
"tags": ["<string>"],
"metadata": {},
"searchable_text": "<string>",
"content": "<string>"
}
] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rows: [
{
external_id: '<string>',
data: {},
tags: ['<string>'],
metadata: {},
searchable_text: '<string>',
content: '<string>'
}
]
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/custom-data-sources/{id_or_slug}/rows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));⌘I
