Body
application/json · object[]
import requests
url = "http://api/apollo/index-pipelines/{id}/collections/{collection}/indexMultiple"
payload = [{ "doc": {
"id": "<string>",
"metadata": {},
"commands": [{}],
"hints": {}
} }]
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)[
{
"docs": [
{
"id": "<string>",
"fields": [
{
"name": "<string>",
"value": {},
"metadata": {},
"annotations": [
{
"type": "<string>",
"start": 123,
"end": 123,
"features": {},
"label": "<string>",
"featureCount": 123
}
]
}
],
"metadata": {},
"commands": [
{
"name": "<string>",
"params": {}
}
],
"hints": {}
}
],
"stats": {}
}
]import requests
url = "http://api/apollo/index-pipelines/{id}/collections/{collection}/indexMultiple"
payload = [{ "doc": {
"id": "<string>",
"metadata": {},
"commands": [{}],
"hints": {}
} }]
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)[
{
"docs": [
{
"id": "<string>",
"fields": [
{
"name": "<string>",
"value": {},
"metadata": {},
"annotations": [
{
"type": "<string>",
"start": 123,
"end": 123,
"features": {},
"label": "<string>",
"featureCount": 123
}
]
}
],
"metadata": {},
"commands": [
{
"name": "<string>",
"params": {}
}
],
"hints": {}
}
],
"stats": {}
}
]Show child attributes
Was this page helpful?