Browse Batches
curl --request GET \
--url https://api.{tenant}.getomneo.com/api/v3/batchesimport requests
url = "https://api.{tenant}.getomneo.com/api/v3/batches"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.{tenant}.getomneo.com/api/v3/batches', 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://api.{tenant}.getomneo.com/api/v3/batches",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.{tenant}.getomneo.com/api/v3/batches"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.{tenant}.getomneo.com/api/v3/batches")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/batches")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"import_job_id": 123,
"entity_type": "<string>",
"total_count": 123,
"status": "<string>",
"success_count": "<string>",
"failed_count": "<string>",
"processed_count": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"items": [
{
"id": 123,
"entity_id": "<string>",
"external_id": "<string>",
"status": "<string>",
"error": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
]
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}Batch
Browse Batches
A GET to the /batches endpoint allows your application to retrieve import batches with item success and failure counts.
GET
/
v3
/
batches
Browse Batches
curl --request GET \
--url https://api.{tenant}.getomneo.com/api/v3/batchesimport requests
url = "https://api.{tenant}.getomneo.com/api/v3/batches"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.{tenant}.getomneo.com/api/v3/batches', 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://api.{tenant}.getomneo.com/api/v3/batches",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.{tenant}.getomneo.com/api/v3/batches"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.{tenant}.getomneo.com/api/v3/batches")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/batches")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"import_job_id": 123,
"entity_type": "<string>",
"total_count": 123,
"status": "<string>",
"success_count": "<string>",
"failed_count": "<string>",
"processed_count": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"items": [
{
"id": 123,
"entity_id": "<string>",
"external_id": "<string>",
"status": "<string>",
"error": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
]
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}Filtering
This endpoint accepts
filter and sort query parameters. See Filtering, sorting, and search for paging and for the shared search_with, custom_field, and json_contains filters.Examples
curl -X GET "https://api.[tenant].getomneo.com/api/v3/batches?filter[uuid]={uuid}" \
-H "Authorization: Bearer ${TOKEN}"
curl -X GET "https://api.[tenant].getomneo.com/api/v3/batches?filter[uuid][nullable]=0" \
-H "Authorization: Bearer ${TOKEN}"
Operators
| Operator | Meaning | Example |
|---|---|---|
eq | Equal to. Applied when you give no operator. | filter[uuid]={uuid} |
ne | Not equal to. | filter[uuid][ne]={uuid} |
gt | Greater than. | filter[total_count][gt]=100 |
gte | Greater than or equal to. | filter[total_count][gte]=100 |
lt | Less than. | filter[total_count][lt]=250 |
lte | Less than or equal to. | filter[total_count][lte]=250 |
in | Matches any value in a comma separated list. | filter[import_job_id][in]=123,456 |
not_in | Excludes every value in a comma separated list. | filter[import_job_id][not_in]=123,456 |
nullable | 1 returns records where the attribute is empty. Any other value returns records where it is set. | filter[uuid][nullable]=1 |
not_has operator applies to related attributes, which this endpoint does not have.
Filter attributes
| Attribute | Attribute | Attribute |
|---|---|---|
uuid | import_job_id | entity_type |
total_count |
sort key, for example ?sort=-uuid for descending order.⌘I