Search the entries a destination endpoint publishes
curl --request POST \
--url https://api.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"where": {
"and": "<array>",
"or": "<array>",
"not": "<unknown>",
"text": {
"property": "<string>",
"eq": "<string>",
"neq": "<string>",
"in": [
"<string>"
],
"contains": "<string>",
"pattern": "<string>",
"ignoreCase": false,
"languages": "<array>",
"regex": "<string>",
"length": {
"eq": 123,
"gt": 123,
"gte": 123,
"lt": 123,
"lte": 123
}
},
"integer": {
"property": "<string>",
"eq": 123,
"neq": 123,
"in": [
123
],
"lt": 123,
"lte": 123,
"gt": 123,
"gte": 123
},
"decimal": {
"property": "<string>",
"eq": 123,
"neq": 123,
"in": [
123
],
"lt": 123,
"lte": 123,
"gt": 123,
"gte": 123
},
"timestamp": {
"property": "<string>",
"eq": "2023-11-07T05:31:56Z",
"neq": "2023-11-07T05:31:56Z",
"in": [
"2023-11-07T05:31:56Z"
],
"lt": "2023-11-07T05:31:56Z",
"lte": "2023-11-07T05:31:56Z",
"gt": "2023-11-07T05:31:56Z",
"gte": "2023-11-07T05:31:56Z"
},
"boolean": {
"property": "<string>",
"eq": true,
"neq": true,
"in": [
true
]
},
"list": {
"property": "<string>",
"contains": "<string>",
"pattern": "<string>",
"ignoreCase": false,
"languages": "<array>",
"length": {
"eq": 123,
"gt": 123,
"gte": 123,
"lt": 123,
"lte": 123
},
"only": [
"<string>"
]
},
"hasValue": {
"property": "<string>",
"languages": "<array>"
},
"segment": {
"definitionId": "<string>",
"id": "<string>"
},
"relation": {
"id": "<string>",
"where": "<unknown>",
"count": {
"eq": 123,
"gt": 123,
"gte": 123,
"lt": 123,
"lte": 123
}
},
"lifecycle": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"firstIncompleteStepId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"language": "<string>",
"sort": [
{
"property": "<string>"
}
],
"limit": 123,
"after": "<string>",
"includeTotalCount": true
}
'import requests
url = "https://api.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search"
payload = {
"where": {
"and": "<array>",
"or": "<array>",
"not": "<unknown>",
"text": {
"property": "<string>",
"eq": "<string>",
"neq": "<string>",
"in": ["<string>"],
"contains": "<string>",
"pattern": "<string>",
"ignoreCase": False,
"languages": "<array>",
"regex": "<string>",
"length": {
"eq": 123,
"gt": 123,
"gte": 123,
"lt": 123,
"lte": 123
}
},
"integer": {
"property": "<string>",
"eq": 123,
"neq": 123,
"in": [123],
"lt": 123,
"lte": 123,
"gt": 123,
"gte": 123
},
"decimal": {
"property": "<string>",
"eq": 123,
"neq": 123,
"in": [123],
"lt": 123,
"lte": 123,
"gt": 123,
"gte": 123
},
"timestamp": {
"property": "<string>",
"eq": "2023-11-07T05:31:56Z",
"neq": "2023-11-07T05:31:56Z",
"in": ["2023-11-07T05:31:56Z"],
"lt": "2023-11-07T05:31:56Z",
"lte": "2023-11-07T05:31:56Z",
"gt": "2023-11-07T05:31:56Z",
"gte": "2023-11-07T05:31:56Z"
},
"boolean": {
"property": "<string>",
"eq": True,
"neq": True,
"in": [True]
},
"list": {
"property": "<string>",
"contains": "<string>",
"pattern": "<string>",
"ignoreCase": False,
"languages": "<array>",
"length": {
"eq": 123,
"gt": 123,
"gte": 123,
"lt": 123,
"lte": 123
},
"only": ["<string>"]
},
"hasValue": {
"property": "<string>",
"languages": "<array>"
},
"segment": {
"definitionId": "<string>",
"id": "<string>"
},
"relation": {
"id": "<string>",
"where": "<unknown>",
"count": {
"eq": 123,
"gt": 123,
"gte": 123,
"lt": 123,
"lte": 123
}
},
"lifecycle": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" },
"firstIncompleteStepId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"language": "<string>",
"sort": [{ "property": "<string>" }],
"limit": 123,
"after": "<string>",
"includeTotalCount": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
where: {
and: '<array>',
or: '<array>',
not: '<unknown>',
text: {
property: '<string>',
eq: '<string>',
neq: '<string>',
in: ['<string>'],
contains: '<string>',
pattern: '<string>',
ignoreCase: false,
languages: '<array>',
regex: '<string>',
length: {eq: 123, gt: 123, gte: 123, lt: 123, lte: 123}
},
integer: {
property: '<string>',
eq: 123,
neq: 123,
in: [123],
lt: 123,
lte: 123,
gt: 123,
gte: 123
},
decimal: {
property: '<string>',
eq: 123,
neq: 123,
in: [123],
lt: 123,
lte: 123,
gt: 123,
gte: 123
},
timestamp: {
property: '<string>',
eq: '2023-11-07T05:31:56Z',
neq: '2023-11-07T05:31:56Z',
in: ['2023-11-07T05:31:56Z'],
lt: '2023-11-07T05:31:56Z',
lte: '2023-11-07T05:31:56Z',
gt: '2023-11-07T05:31:56Z',
gte: '2023-11-07T05:31:56Z'
},
boolean: {property: '<string>', eq: true, neq: true, in: [true]},
list: {
property: '<string>',
contains: '<string>',
pattern: '<string>',
ignoreCase: false,
languages: '<array>',
length: {eq: 123, gt: 123, gte: 123, lt: 123, lte: 123},
only: ['<string>']
},
hasValue: {property: '<string>', languages: '<array>'},
segment: {definitionId: '<string>', id: '<string>'},
relation: {
id: '<string>',
where: '<unknown>',
count: {eq: 123, gt: 123, gte: 123, lt: 123, lte: 123}
},
lifecycle: {
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
step: {id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'},
firstIncompleteStepId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
},
language: '<string>',
sort: [{property: '<string>'}],
limit: 123,
after: '<string>',
includeTotalCount: true
})
};
fetch('https://api.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search', 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.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'where' => [
'and' => '<array>',
'or' => '<array>',
'not' => '<unknown>',
'text' => [
'property' => '<string>',
'eq' => '<string>',
'neq' => '<string>',
'in' => [
'<string>'
],
'contains' => '<string>',
'pattern' => '<string>',
'ignoreCase' => false,
'languages' => '<array>',
'regex' => '<string>',
'length' => [
'eq' => 123,
'gt' => 123,
'gte' => 123,
'lt' => 123,
'lte' => 123
]
],
'integer' => [
'property' => '<string>',
'eq' => 123,
'neq' => 123,
'in' => [
123
],
'lt' => 123,
'lte' => 123,
'gt' => 123,
'gte' => 123
],
'decimal' => [
'property' => '<string>',
'eq' => 123,
'neq' => 123,
'in' => [
123
],
'lt' => 123,
'lte' => 123,
'gt' => 123,
'gte' => 123
],
'timestamp' => [
'property' => '<string>',
'eq' => '2023-11-07T05:31:56Z',
'neq' => '2023-11-07T05:31:56Z',
'in' => [
'2023-11-07T05:31:56Z'
],
'lt' => '2023-11-07T05:31:56Z',
'lte' => '2023-11-07T05:31:56Z',
'gt' => '2023-11-07T05:31:56Z',
'gte' => '2023-11-07T05:31:56Z'
],
'boolean' => [
'property' => '<string>',
'eq' => true,
'neq' => true,
'in' => [
true
]
],
'list' => [
'property' => '<string>',
'contains' => '<string>',
'pattern' => '<string>',
'ignoreCase' => false,
'languages' => '<array>',
'length' => [
'eq' => 123,
'gt' => 123,
'gte' => 123,
'lt' => 123,
'lte' => 123
],
'only' => [
'<string>'
]
],
'hasValue' => [
'property' => '<string>',
'languages' => '<array>'
],
'segment' => [
'definitionId' => '<string>',
'id' => '<string>'
],
'relation' => [
'id' => '<string>',
'where' => '<unknown>',
'count' => [
'eq' => 123,
'gt' => 123,
'gte' => 123,
'lt' => 123,
'lte' => 123
]
],
'lifecycle' => [
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'step' => [
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'firstIncompleteStepId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'language' => '<string>',
'sort' => [
[
'property' => '<string>'
]
],
'limit' => 123,
'after' => '<string>',
'includeTotalCount' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search"
payload := strings.NewReader("{\n \"where\": {\n \"and\": \"<array>\",\n \"or\": \"<array>\",\n \"not\": \"<unknown>\",\n \"text\": {\n \"property\": \"<string>\",\n \"eq\": \"<string>\",\n \"neq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ],\n \"contains\": \"<string>\",\n \"pattern\": \"<string>\",\n \"ignoreCase\": false,\n \"languages\": \"<array>\",\n \"regex\": \"<string>\",\n \"length\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n }\n },\n \"integer\": {\n \"property\": \"<string>\",\n \"eq\": 123,\n \"neq\": 123,\n \"in\": [\n 123\n ],\n \"lt\": 123,\n \"lte\": 123,\n \"gt\": 123,\n \"gte\": 123\n },\n \"decimal\": {\n \"property\": \"<string>\",\n \"eq\": 123,\n \"neq\": 123,\n \"in\": [\n 123\n ],\n \"lt\": 123,\n \"lte\": 123,\n \"gt\": 123,\n \"gte\": 123\n },\n \"timestamp\": {\n \"property\": \"<string>\",\n \"eq\": \"2023-11-07T05:31:56Z\",\n \"neq\": \"2023-11-07T05:31:56Z\",\n \"in\": [\n \"2023-11-07T05:31:56Z\"\n ],\n \"lt\": \"2023-11-07T05:31:56Z\",\n \"lte\": \"2023-11-07T05:31:56Z\",\n \"gt\": \"2023-11-07T05:31:56Z\",\n \"gte\": \"2023-11-07T05:31:56Z\"\n },\n \"boolean\": {\n \"property\": \"<string>\",\n \"eq\": true,\n \"neq\": true,\n \"in\": [\n true\n ]\n },\n \"list\": {\n \"property\": \"<string>\",\n \"contains\": \"<string>\",\n \"pattern\": \"<string>\",\n \"ignoreCase\": false,\n \"languages\": \"<array>\",\n \"length\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n },\n \"only\": [\n \"<string>\"\n ]\n },\n \"hasValue\": {\n \"property\": \"<string>\",\n \"languages\": \"<array>\"\n },\n \"segment\": {\n \"definitionId\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"relation\": {\n \"id\": \"<string>\",\n \"where\": \"<unknown>\",\n \"count\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n }\n },\n \"lifecycle\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"step\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"firstIncompleteStepId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n },\n \"language\": \"<string>\",\n \"sort\": [\n {\n \"property\": \"<string>\"\n }\n ],\n \"limit\": 123,\n \"after\": \"<string>\",\n \"includeTotalCount\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"where\": {\n \"and\": \"<array>\",\n \"or\": \"<array>\",\n \"not\": \"<unknown>\",\n \"text\": {\n \"property\": \"<string>\",\n \"eq\": \"<string>\",\n \"neq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ],\n \"contains\": \"<string>\",\n \"pattern\": \"<string>\",\n \"ignoreCase\": false,\n \"languages\": \"<array>\",\n \"regex\": \"<string>\",\n \"length\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n }\n },\n \"integer\": {\n \"property\": \"<string>\",\n \"eq\": 123,\n \"neq\": 123,\n \"in\": [\n 123\n ],\n \"lt\": 123,\n \"lte\": 123,\n \"gt\": 123,\n \"gte\": 123\n },\n \"decimal\": {\n \"property\": \"<string>\",\n \"eq\": 123,\n \"neq\": 123,\n \"in\": [\n 123\n ],\n \"lt\": 123,\n \"lte\": 123,\n \"gt\": 123,\n \"gte\": 123\n },\n \"timestamp\": {\n \"property\": \"<string>\",\n \"eq\": \"2023-11-07T05:31:56Z\",\n \"neq\": \"2023-11-07T05:31:56Z\",\n \"in\": [\n \"2023-11-07T05:31:56Z\"\n ],\n \"lt\": \"2023-11-07T05:31:56Z\",\n \"lte\": \"2023-11-07T05:31:56Z\",\n \"gt\": \"2023-11-07T05:31:56Z\",\n \"gte\": \"2023-11-07T05:31:56Z\"\n },\n \"boolean\": {\n \"property\": \"<string>\",\n \"eq\": true,\n \"neq\": true,\n \"in\": [\n true\n ]\n },\n \"list\": {\n \"property\": \"<string>\",\n \"contains\": \"<string>\",\n \"pattern\": \"<string>\",\n \"ignoreCase\": false,\n \"languages\": \"<array>\",\n \"length\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n },\n \"only\": [\n \"<string>\"\n ]\n },\n \"hasValue\": {\n \"property\": \"<string>\",\n \"languages\": \"<array>\"\n },\n \"segment\": {\n \"definitionId\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"relation\": {\n \"id\": \"<string>\",\n \"where\": \"<unknown>\",\n \"count\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n }\n },\n \"lifecycle\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"step\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"firstIncompleteStepId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n },\n \"language\": \"<string>\",\n \"sort\": [\n {\n \"property\": \"<string>\"\n }\n ],\n \"limit\": 123,\n \"after\": \"<string>\",\n \"includeTotalCount\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"where\": {\n \"and\": \"<array>\",\n \"or\": \"<array>\",\n \"not\": \"<unknown>\",\n \"text\": {\n \"property\": \"<string>\",\n \"eq\": \"<string>\",\n \"neq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ],\n \"contains\": \"<string>\",\n \"pattern\": \"<string>\",\n \"ignoreCase\": false,\n \"languages\": \"<array>\",\n \"regex\": \"<string>\",\n \"length\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n }\n },\n \"integer\": {\n \"property\": \"<string>\",\n \"eq\": 123,\n \"neq\": 123,\n \"in\": [\n 123\n ],\n \"lt\": 123,\n \"lte\": 123,\n \"gt\": 123,\n \"gte\": 123\n },\n \"decimal\": {\n \"property\": \"<string>\",\n \"eq\": 123,\n \"neq\": 123,\n \"in\": [\n 123\n ],\n \"lt\": 123,\n \"lte\": 123,\n \"gt\": 123,\n \"gte\": 123\n },\n \"timestamp\": {\n \"property\": \"<string>\",\n \"eq\": \"2023-11-07T05:31:56Z\",\n \"neq\": \"2023-11-07T05:31:56Z\",\n \"in\": [\n \"2023-11-07T05:31:56Z\"\n ],\n \"lt\": \"2023-11-07T05:31:56Z\",\n \"lte\": \"2023-11-07T05:31:56Z\",\n \"gt\": \"2023-11-07T05:31:56Z\",\n \"gte\": \"2023-11-07T05:31:56Z\"\n },\n \"boolean\": {\n \"property\": \"<string>\",\n \"eq\": true,\n \"neq\": true,\n \"in\": [\n true\n ]\n },\n \"list\": {\n \"property\": \"<string>\",\n \"contains\": \"<string>\",\n \"pattern\": \"<string>\",\n \"ignoreCase\": false,\n \"languages\": \"<array>\",\n \"length\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n },\n \"only\": [\n \"<string>\"\n ]\n },\n \"hasValue\": {\n \"property\": \"<string>\",\n \"languages\": \"<array>\"\n },\n \"segment\": {\n \"definitionId\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"relation\": {\n \"id\": \"<string>\",\n \"where\": \"<unknown>\",\n \"count\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n }\n },\n \"lifecycle\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"step\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"firstIncompleteStepId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n },\n \"language\": \"<string>\",\n \"sort\": [\n {\n \"property\": \"<string>\"\n }\n ],\n \"limit\": 123,\n \"after\": \"<string>\",\n \"includeTotalCount\": true\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"content": "<unknown>"
}
],
"after": "<string>",
"totalCount": 123
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Destination entries
Search the entries a destination endpoint publishes
Returns the entries of one endpoint of one destination version, each with the content the endpoint
publishes. where and sort use the property ids of the endpoint. limit: 1–500, default 50.
Pass the returned after to read the next page; it is null on the last page. The total is counted
only when includeTotalCount is true.
POST
/
v1
/
destinations
/
{destinationId}
/
versions
/
{version}
/
endpoints
/
{endpoint}
/
entries
/
search
Search the entries a destination endpoint publishes
curl --request POST \
--url https://api.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"where": {
"and": "<array>",
"or": "<array>",
"not": "<unknown>",
"text": {
"property": "<string>",
"eq": "<string>",
"neq": "<string>",
"in": [
"<string>"
],
"contains": "<string>",
"pattern": "<string>",
"ignoreCase": false,
"languages": "<array>",
"regex": "<string>",
"length": {
"eq": 123,
"gt": 123,
"gte": 123,
"lt": 123,
"lte": 123
}
},
"integer": {
"property": "<string>",
"eq": 123,
"neq": 123,
"in": [
123
],
"lt": 123,
"lte": 123,
"gt": 123,
"gte": 123
},
"decimal": {
"property": "<string>",
"eq": 123,
"neq": 123,
"in": [
123
],
"lt": 123,
"lte": 123,
"gt": 123,
"gte": 123
},
"timestamp": {
"property": "<string>",
"eq": "2023-11-07T05:31:56Z",
"neq": "2023-11-07T05:31:56Z",
"in": [
"2023-11-07T05:31:56Z"
],
"lt": "2023-11-07T05:31:56Z",
"lte": "2023-11-07T05:31:56Z",
"gt": "2023-11-07T05:31:56Z",
"gte": "2023-11-07T05:31:56Z"
},
"boolean": {
"property": "<string>",
"eq": true,
"neq": true,
"in": [
true
]
},
"list": {
"property": "<string>",
"contains": "<string>",
"pattern": "<string>",
"ignoreCase": false,
"languages": "<array>",
"length": {
"eq": 123,
"gt": 123,
"gte": 123,
"lt": 123,
"lte": 123
},
"only": [
"<string>"
]
},
"hasValue": {
"property": "<string>",
"languages": "<array>"
},
"segment": {
"definitionId": "<string>",
"id": "<string>"
},
"relation": {
"id": "<string>",
"where": "<unknown>",
"count": {
"eq": 123,
"gt": 123,
"gte": 123,
"lt": 123,
"lte": 123
}
},
"lifecycle": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"firstIncompleteStepId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"language": "<string>",
"sort": [
{
"property": "<string>"
}
],
"limit": 123,
"after": "<string>",
"includeTotalCount": true
}
'import requests
url = "https://api.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search"
payload = {
"where": {
"and": "<array>",
"or": "<array>",
"not": "<unknown>",
"text": {
"property": "<string>",
"eq": "<string>",
"neq": "<string>",
"in": ["<string>"],
"contains": "<string>",
"pattern": "<string>",
"ignoreCase": False,
"languages": "<array>",
"regex": "<string>",
"length": {
"eq": 123,
"gt": 123,
"gte": 123,
"lt": 123,
"lte": 123
}
},
"integer": {
"property": "<string>",
"eq": 123,
"neq": 123,
"in": [123],
"lt": 123,
"lte": 123,
"gt": 123,
"gte": 123
},
"decimal": {
"property": "<string>",
"eq": 123,
"neq": 123,
"in": [123],
"lt": 123,
"lte": 123,
"gt": 123,
"gte": 123
},
"timestamp": {
"property": "<string>",
"eq": "2023-11-07T05:31:56Z",
"neq": "2023-11-07T05:31:56Z",
"in": ["2023-11-07T05:31:56Z"],
"lt": "2023-11-07T05:31:56Z",
"lte": "2023-11-07T05:31:56Z",
"gt": "2023-11-07T05:31:56Z",
"gte": "2023-11-07T05:31:56Z"
},
"boolean": {
"property": "<string>",
"eq": True,
"neq": True,
"in": [True]
},
"list": {
"property": "<string>",
"contains": "<string>",
"pattern": "<string>",
"ignoreCase": False,
"languages": "<array>",
"length": {
"eq": 123,
"gt": 123,
"gte": 123,
"lt": 123,
"lte": 123
},
"only": ["<string>"]
},
"hasValue": {
"property": "<string>",
"languages": "<array>"
},
"segment": {
"definitionId": "<string>",
"id": "<string>"
},
"relation": {
"id": "<string>",
"where": "<unknown>",
"count": {
"eq": 123,
"gt": 123,
"gte": 123,
"lt": 123,
"lte": 123
}
},
"lifecycle": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" },
"firstIncompleteStepId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"language": "<string>",
"sort": [{ "property": "<string>" }],
"limit": 123,
"after": "<string>",
"includeTotalCount": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
where: {
and: '<array>',
or: '<array>',
not: '<unknown>',
text: {
property: '<string>',
eq: '<string>',
neq: '<string>',
in: ['<string>'],
contains: '<string>',
pattern: '<string>',
ignoreCase: false,
languages: '<array>',
regex: '<string>',
length: {eq: 123, gt: 123, gte: 123, lt: 123, lte: 123}
},
integer: {
property: '<string>',
eq: 123,
neq: 123,
in: [123],
lt: 123,
lte: 123,
gt: 123,
gte: 123
},
decimal: {
property: '<string>',
eq: 123,
neq: 123,
in: [123],
lt: 123,
lte: 123,
gt: 123,
gte: 123
},
timestamp: {
property: '<string>',
eq: '2023-11-07T05:31:56Z',
neq: '2023-11-07T05:31:56Z',
in: ['2023-11-07T05:31:56Z'],
lt: '2023-11-07T05:31:56Z',
lte: '2023-11-07T05:31:56Z',
gt: '2023-11-07T05:31:56Z',
gte: '2023-11-07T05:31:56Z'
},
boolean: {property: '<string>', eq: true, neq: true, in: [true]},
list: {
property: '<string>',
contains: '<string>',
pattern: '<string>',
ignoreCase: false,
languages: '<array>',
length: {eq: 123, gt: 123, gte: 123, lt: 123, lte: 123},
only: ['<string>']
},
hasValue: {property: '<string>', languages: '<array>'},
segment: {definitionId: '<string>', id: '<string>'},
relation: {
id: '<string>',
where: '<unknown>',
count: {eq: 123, gt: 123, gte: 123, lt: 123, lte: 123}
},
lifecycle: {
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
step: {id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'},
firstIncompleteStepId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
},
language: '<string>',
sort: [{property: '<string>'}],
limit: 123,
after: '<string>',
includeTotalCount: true
})
};
fetch('https://api.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search', 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.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'where' => [
'and' => '<array>',
'or' => '<array>',
'not' => '<unknown>',
'text' => [
'property' => '<string>',
'eq' => '<string>',
'neq' => '<string>',
'in' => [
'<string>'
],
'contains' => '<string>',
'pattern' => '<string>',
'ignoreCase' => false,
'languages' => '<array>',
'regex' => '<string>',
'length' => [
'eq' => 123,
'gt' => 123,
'gte' => 123,
'lt' => 123,
'lte' => 123
]
],
'integer' => [
'property' => '<string>',
'eq' => 123,
'neq' => 123,
'in' => [
123
],
'lt' => 123,
'lte' => 123,
'gt' => 123,
'gte' => 123
],
'decimal' => [
'property' => '<string>',
'eq' => 123,
'neq' => 123,
'in' => [
123
],
'lt' => 123,
'lte' => 123,
'gt' => 123,
'gte' => 123
],
'timestamp' => [
'property' => '<string>',
'eq' => '2023-11-07T05:31:56Z',
'neq' => '2023-11-07T05:31:56Z',
'in' => [
'2023-11-07T05:31:56Z'
],
'lt' => '2023-11-07T05:31:56Z',
'lte' => '2023-11-07T05:31:56Z',
'gt' => '2023-11-07T05:31:56Z',
'gte' => '2023-11-07T05:31:56Z'
],
'boolean' => [
'property' => '<string>',
'eq' => true,
'neq' => true,
'in' => [
true
]
],
'list' => [
'property' => '<string>',
'contains' => '<string>',
'pattern' => '<string>',
'ignoreCase' => false,
'languages' => '<array>',
'length' => [
'eq' => 123,
'gt' => 123,
'gte' => 123,
'lt' => 123,
'lte' => 123
],
'only' => [
'<string>'
]
],
'hasValue' => [
'property' => '<string>',
'languages' => '<array>'
],
'segment' => [
'definitionId' => '<string>',
'id' => '<string>'
],
'relation' => [
'id' => '<string>',
'where' => '<unknown>',
'count' => [
'eq' => 123,
'gt' => 123,
'gte' => 123,
'lt' => 123,
'lte' => 123
]
],
'lifecycle' => [
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'step' => [
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'firstIncompleteStepId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'language' => '<string>',
'sort' => [
[
'property' => '<string>'
]
],
'limit' => 123,
'after' => '<string>',
'includeTotalCount' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search"
payload := strings.NewReader("{\n \"where\": {\n \"and\": \"<array>\",\n \"or\": \"<array>\",\n \"not\": \"<unknown>\",\n \"text\": {\n \"property\": \"<string>\",\n \"eq\": \"<string>\",\n \"neq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ],\n \"contains\": \"<string>\",\n \"pattern\": \"<string>\",\n \"ignoreCase\": false,\n \"languages\": \"<array>\",\n \"regex\": \"<string>\",\n \"length\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n }\n },\n \"integer\": {\n \"property\": \"<string>\",\n \"eq\": 123,\n \"neq\": 123,\n \"in\": [\n 123\n ],\n \"lt\": 123,\n \"lte\": 123,\n \"gt\": 123,\n \"gte\": 123\n },\n \"decimal\": {\n \"property\": \"<string>\",\n \"eq\": 123,\n \"neq\": 123,\n \"in\": [\n 123\n ],\n \"lt\": 123,\n \"lte\": 123,\n \"gt\": 123,\n \"gte\": 123\n },\n \"timestamp\": {\n \"property\": \"<string>\",\n \"eq\": \"2023-11-07T05:31:56Z\",\n \"neq\": \"2023-11-07T05:31:56Z\",\n \"in\": [\n \"2023-11-07T05:31:56Z\"\n ],\n \"lt\": \"2023-11-07T05:31:56Z\",\n \"lte\": \"2023-11-07T05:31:56Z\",\n \"gt\": \"2023-11-07T05:31:56Z\",\n \"gte\": \"2023-11-07T05:31:56Z\"\n },\n \"boolean\": {\n \"property\": \"<string>\",\n \"eq\": true,\n \"neq\": true,\n \"in\": [\n true\n ]\n },\n \"list\": {\n \"property\": \"<string>\",\n \"contains\": \"<string>\",\n \"pattern\": \"<string>\",\n \"ignoreCase\": false,\n \"languages\": \"<array>\",\n \"length\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n },\n \"only\": [\n \"<string>\"\n ]\n },\n \"hasValue\": {\n \"property\": \"<string>\",\n \"languages\": \"<array>\"\n },\n \"segment\": {\n \"definitionId\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"relation\": {\n \"id\": \"<string>\",\n \"where\": \"<unknown>\",\n \"count\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n }\n },\n \"lifecycle\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"step\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"firstIncompleteStepId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n },\n \"language\": \"<string>\",\n \"sort\": [\n {\n \"property\": \"<string>\"\n }\n ],\n \"limit\": 123,\n \"after\": \"<string>\",\n \"includeTotalCount\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"where\": {\n \"and\": \"<array>\",\n \"or\": \"<array>\",\n \"not\": \"<unknown>\",\n \"text\": {\n \"property\": \"<string>\",\n \"eq\": \"<string>\",\n \"neq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ],\n \"contains\": \"<string>\",\n \"pattern\": \"<string>\",\n \"ignoreCase\": false,\n \"languages\": \"<array>\",\n \"regex\": \"<string>\",\n \"length\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n }\n },\n \"integer\": {\n \"property\": \"<string>\",\n \"eq\": 123,\n \"neq\": 123,\n \"in\": [\n 123\n ],\n \"lt\": 123,\n \"lte\": 123,\n \"gt\": 123,\n \"gte\": 123\n },\n \"decimal\": {\n \"property\": \"<string>\",\n \"eq\": 123,\n \"neq\": 123,\n \"in\": [\n 123\n ],\n \"lt\": 123,\n \"lte\": 123,\n \"gt\": 123,\n \"gte\": 123\n },\n \"timestamp\": {\n \"property\": \"<string>\",\n \"eq\": \"2023-11-07T05:31:56Z\",\n \"neq\": \"2023-11-07T05:31:56Z\",\n \"in\": [\n \"2023-11-07T05:31:56Z\"\n ],\n \"lt\": \"2023-11-07T05:31:56Z\",\n \"lte\": \"2023-11-07T05:31:56Z\",\n \"gt\": \"2023-11-07T05:31:56Z\",\n \"gte\": \"2023-11-07T05:31:56Z\"\n },\n \"boolean\": {\n \"property\": \"<string>\",\n \"eq\": true,\n \"neq\": true,\n \"in\": [\n true\n ]\n },\n \"list\": {\n \"property\": \"<string>\",\n \"contains\": \"<string>\",\n \"pattern\": \"<string>\",\n \"ignoreCase\": false,\n \"languages\": \"<array>\",\n \"length\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n },\n \"only\": [\n \"<string>\"\n ]\n },\n \"hasValue\": {\n \"property\": \"<string>\",\n \"languages\": \"<array>\"\n },\n \"segment\": {\n \"definitionId\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"relation\": {\n \"id\": \"<string>\",\n \"where\": \"<unknown>\",\n \"count\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n }\n },\n \"lifecycle\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"step\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"firstIncompleteStepId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n },\n \"language\": \"<string>\",\n \"sort\": [\n {\n \"property\": \"<string>\"\n }\n ],\n \"limit\": 123,\n \"after\": \"<string>\",\n \"includeTotalCount\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"where\": {\n \"and\": \"<array>\",\n \"or\": \"<array>\",\n \"not\": \"<unknown>\",\n \"text\": {\n \"property\": \"<string>\",\n \"eq\": \"<string>\",\n \"neq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ],\n \"contains\": \"<string>\",\n \"pattern\": \"<string>\",\n \"ignoreCase\": false,\n \"languages\": \"<array>\",\n \"regex\": \"<string>\",\n \"length\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n }\n },\n \"integer\": {\n \"property\": \"<string>\",\n \"eq\": 123,\n \"neq\": 123,\n \"in\": [\n 123\n ],\n \"lt\": 123,\n \"lte\": 123,\n \"gt\": 123,\n \"gte\": 123\n },\n \"decimal\": {\n \"property\": \"<string>\",\n \"eq\": 123,\n \"neq\": 123,\n \"in\": [\n 123\n ],\n \"lt\": 123,\n \"lte\": 123,\n \"gt\": 123,\n \"gte\": 123\n },\n \"timestamp\": {\n \"property\": \"<string>\",\n \"eq\": \"2023-11-07T05:31:56Z\",\n \"neq\": \"2023-11-07T05:31:56Z\",\n \"in\": [\n \"2023-11-07T05:31:56Z\"\n ],\n \"lt\": \"2023-11-07T05:31:56Z\",\n \"lte\": \"2023-11-07T05:31:56Z\",\n \"gt\": \"2023-11-07T05:31:56Z\",\n \"gte\": \"2023-11-07T05:31:56Z\"\n },\n \"boolean\": {\n \"property\": \"<string>\",\n \"eq\": true,\n \"neq\": true,\n \"in\": [\n true\n ]\n },\n \"list\": {\n \"property\": \"<string>\",\n \"contains\": \"<string>\",\n \"pattern\": \"<string>\",\n \"ignoreCase\": false,\n \"languages\": \"<array>\",\n \"length\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n },\n \"only\": [\n \"<string>\"\n ]\n },\n \"hasValue\": {\n \"property\": \"<string>\",\n \"languages\": \"<array>\"\n },\n \"segment\": {\n \"definitionId\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"relation\": {\n \"id\": \"<string>\",\n \"where\": \"<unknown>\",\n \"count\": {\n \"eq\": 123,\n \"gt\": 123,\n \"gte\": 123,\n \"lt\": 123,\n \"lte\": 123\n }\n },\n \"lifecycle\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"step\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"firstIncompleteStepId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n },\n \"language\": \"<string>\",\n \"sort\": [\n {\n \"property\": \"<string>\"\n }\n ],\n \"limit\": 123,\n \"after\": \"<string>\",\n \"includeTotalCount\": true\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"content": "<unknown>"
}
],
"after": "<string>",
"totalCount": 123
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
kindeOAuthbearerAuthapiKey
Body
application/json
Was this page helpful?