Bulk Create Documents
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/documents/bulk \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"items": [
{
"title": "<string>",
"content": "<string>",
"source_id": "<string>",
"parent_id": "<string>",
"page_id": "<string>",
"position": 123,
"status": "<string>",
"default_language": "en"
}
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/documents/bulk"
payload = { "items": [
{
"title": "<string>",
"content": "<string>",
"source_id": "<string>",
"parent_id": "<string>",
"page_id": "<string>",
"position": 123,
"status": "<string>",
"default_language": "en"
}
] }
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({
items: [
{
title: '<string>',
content: '<string>',
source_id: '<string>',
parent_id: '<string>',
page_id: '<string>',
position: 123,
status: '<string>',
default_language: 'en'
}
]
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/documents/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"created": [
{}
],
"errors": [
{}
],
"total_created": 123,
"total_errors": 123,
"object": "bulk_result",
"updated": [],
"total_updated": 0
}Documents
Bulk Create Documents
Bulk create knowledge documents (max 100 per request).
An item carrying a ‘page_id’ that already exists in the target source updates that document instead of creating a duplicate, so re-running an import is safe.
POST
/
api
/
v1
/
documents
/
bulk
Bulk Create Documents
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/documents/bulk \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"items": [
{
"title": "<string>",
"content": "<string>",
"source_id": "<string>",
"parent_id": "<string>",
"page_id": "<string>",
"position": 123,
"status": "<string>",
"default_language": "en"
}
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/documents/bulk"
payload = { "items": [
{
"title": "<string>",
"content": "<string>",
"source_id": "<string>",
"parent_id": "<string>",
"page_id": "<string>",
"position": 123,
"status": "<string>",
"default_language": "en"
}
] }
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({
items: [
{
title: '<string>',
content: '<string>',
source_id: '<string>',
parent_id: '<string>',
page_id: '<string>',
position: 123,
status: '<string>',
default_language: 'en'
}
]
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/documents/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"created": [
{}
],
"errors": [
{}
],
"total_created": 123,
"total_errors": 123,
"object": "bulk_result",
"updated": [],
"total_updated": 0
}Authorizations
Body
application/json
Schema for bulk creating documents. Max 100 items per request.
Show child attributes
Show child attributes
