Description
The "Insert" endpoint allows you to insert geometries and their associative payload into the provided collection.
Proto Definition
service BGSearch {
rpc Insert (InsertArgs) returns (InsertResult) {}
}
Input Message
Name: InsertArgs
Attribute | Type | Description |
---|---|---|
collection | string | The name of the collection. |
geometries | IndexedGeometry | The Geometries and payload to be inserted into the collection. |
message InsertArgs {
string collection = 1;
repeated IndexedGeometry geometries = 2;
}
Output Message
Name: InsertResult
Attribute | Type | Description |
---|---|---|
inserted_ids | GeometryID | IDs that were inserted. |
message InsertResult {
repeated GeometryID inserted_ids = 1;
}
Status Code
5: NOT_FOUND
if a collection with the provided name does not exist.6: ALREADY_EXISTS
if the ID of the geometry being inserted already exist.