Search the entries related to one card entry
curl --request POST \
--url https://api.occtoo.com/v1/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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": null,
"sort": [
{
"property": "<string>"
}
],
"properties": "<array>",
"lifecycleIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"limit": 123,
"after": "<string>",
"includeEntries": true,
"includeTotalCount": true,
"includeSegments": true,
"facets": [
{
"property": "<string>",
"contains": "<string>",
"ignoreCase": false,
"sort": {},
"first": 50,
"after": "<string>",
"exclude": [
"<string>"
]
}
]
}
'import requests
url = "https://api.occtoo.com/v1/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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": None,
"sort": [{ "property": "<string>" }],
"properties": "<array>",
"lifecycleIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"limit": 123,
"after": "<string>",
"includeEntries": True,
"includeTotalCount": True,
"includeSegments": True,
"facets": [
{
"property": "<string>",
"contains": "<string>",
"ignoreCase": False,
"sort": {},
"first": 50,
"after": "<string>",
"exclude": ["<string>"]
}
]
}
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: null,
sort: [{property: '<string>'}],
properties: '<array>',
lifecycleIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
limit: 123,
after: '<string>',
includeEntries: true,
includeTotalCount: true,
includeSegments: true,
facets: [
{
property: '<string>',
contains: '<string>',
ignoreCase: false,
sort: {},
first: 50,
after: '<string>',
exclude: ['<string>']
}
]
})
};
fetch('https://api.occtoo.com/v1/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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' => null,
'sort' => [
[
'property' => '<string>'
]
],
'properties' => '<array>',
'lifecycleIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'limit' => 123,
'after' => '<string>',
'includeEntries' => true,
'includeTotalCount' => true,
'includeSegments' => true,
'facets' => [
[
'property' => '<string>',
'contains' => '<string>',
'ignoreCase' => false,
'sort' => [
],
'first' => 50,
'after' => '<string>',
'exclude' => [
'<string>'
]
]
]
]),
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/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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\": null,\n \"sort\": [\n {\n \"property\": \"<string>\"\n }\n ],\n \"properties\": \"<array>\",\n \"lifecycleIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"limit\": 123,\n \"after\": \"<string>\",\n \"includeEntries\": true,\n \"includeTotalCount\": true,\n \"includeSegments\": true,\n \"facets\": [\n {\n \"property\": \"<string>\",\n \"contains\": \"<string>\",\n \"ignoreCase\": false,\n \"sort\": {},\n \"first\": 50,\n \"after\": \"<string>\",\n \"exclude\": [\n \"<string>\"\n ]\n }\n ]\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/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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\": null,\n \"sort\": [\n {\n \"property\": \"<string>\"\n }\n ],\n \"properties\": \"<array>\",\n \"lifecycleIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"limit\": 123,\n \"after\": \"<string>\",\n \"includeEntries\": true,\n \"includeTotalCount\": true,\n \"includeSegments\": true,\n \"facets\": [\n {\n \"property\": \"<string>\",\n \"contains\": \"<string>\",\n \"ignoreCase\": false,\n \"sort\": {},\n \"first\": 50,\n \"after\": \"<string>\",\n \"exclude\": [\n \"<string>\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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\": null,\n \"sort\": [\n {\n \"property\": \"<string>\"\n }\n ],\n \"properties\": \"<array>\",\n \"lifecycleIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"limit\": 123,\n \"after\": \"<string>\",\n \"includeEntries\": true,\n \"includeTotalCount\": true,\n \"includeSegments\": true,\n \"facets\": [\n {\n \"property\": \"<string>\",\n \"contains\": \"<string>\",\n \"ignoreCase\": false,\n \"sort\": {},\n \"first\": 50,\n \"after\": \"<string>\",\n \"exclude\": [\n \"<string>\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"properties": [
{
"id": "<string>",
"value": "<string>",
"type": "Text",
"delimiter": "<string>",
"lastUpdated": "2023-11-07T05:31:56Z",
"language": "<string>"
}
],
"lifecycles": [
{
"lifecycleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activeRevision": 123,
"assessment": {
"revision": 123,
"evaluatedAt": "2023-11-07T05:31:56Z",
"state": "Complete",
"firstIncompleteStepId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"steps": [
{
"stepId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requirementsSatisfied": true,
"complete": true,
"locked": true,
"completionReason": "RequirementsSatisfied"
}
]
}
}
],
"segments": [
"<string>"
]
}
],
"after": "<string>",
"totalCount": 123,
"lifecycleStates": [
{
"lifecycleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activeRevision": 123,
"state": "Draft"
}
],
"facets": [
{
"property": "<string>",
"items": [
{
"value": "<string>",
"count": 123
}
],
"after": "<string>",
"totalCount": 123
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}Card entries
Search the entries related to one card entry
Returns the entries on the other side of the relation, in the card search response shape. where, sort, properties, language, limit (1–100, default 25), after, includeEntries, includeTotalCount and includeSegments apply to the related card definition. Sort by @position alone to follow the relation’s own order. lifecycleIds and facets are not supported and return 400; lifecycles is always empty. An unknown card definition, entry or relation returns 404. Request limit 1 MiB, response limit 8 MiB.
POST
/
v1
/
card-definitions
/
{cardId}
/
entries
/
{entryId}
/
relations
/
{relationId}
/
search
Search the entries related to one card entry
curl --request POST \
--url https://api.occtoo.com/v1/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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": null,
"sort": [
{
"property": "<string>"
}
],
"properties": "<array>",
"lifecycleIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"limit": 123,
"after": "<string>",
"includeEntries": true,
"includeTotalCount": true,
"includeSegments": true,
"facets": [
{
"property": "<string>",
"contains": "<string>",
"ignoreCase": false,
"sort": {},
"first": 50,
"after": "<string>",
"exclude": [
"<string>"
]
}
]
}
'import requests
url = "https://api.occtoo.com/v1/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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": None,
"sort": [{ "property": "<string>" }],
"properties": "<array>",
"lifecycleIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"limit": 123,
"after": "<string>",
"includeEntries": True,
"includeTotalCount": True,
"includeSegments": True,
"facets": [
{
"property": "<string>",
"contains": "<string>",
"ignoreCase": False,
"sort": {},
"first": 50,
"after": "<string>",
"exclude": ["<string>"]
}
]
}
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: null,
sort: [{property: '<string>'}],
properties: '<array>',
lifecycleIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
limit: 123,
after: '<string>',
includeEntries: true,
includeTotalCount: true,
includeSegments: true,
facets: [
{
property: '<string>',
contains: '<string>',
ignoreCase: false,
sort: {},
first: 50,
after: '<string>',
exclude: ['<string>']
}
]
})
};
fetch('https://api.occtoo.com/v1/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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' => null,
'sort' => [
[
'property' => '<string>'
]
],
'properties' => '<array>',
'lifecycleIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'limit' => 123,
'after' => '<string>',
'includeEntries' => true,
'includeTotalCount' => true,
'includeSegments' => true,
'facets' => [
[
'property' => '<string>',
'contains' => '<string>',
'ignoreCase' => false,
'sort' => [
],
'first' => 50,
'after' => '<string>',
'exclude' => [
'<string>'
]
]
]
]),
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/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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\": null,\n \"sort\": [\n {\n \"property\": \"<string>\"\n }\n ],\n \"properties\": \"<array>\",\n \"lifecycleIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"limit\": 123,\n \"after\": \"<string>\",\n \"includeEntries\": true,\n \"includeTotalCount\": true,\n \"includeSegments\": true,\n \"facets\": [\n {\n \"property\": \"<string>\",\n \"contains\": \"<string>\",\n \"ignoreCase\": false,\n \"sort\": {},\n \"first\": 50,\n \"after\": \"<string>\",\n \"exclude\": [\n \"<string>\"\n ]\n }\n ]\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/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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\": null,\n \"sort\": [\n {\n \"property\": \"<string>\"\n }\n ],\n \"properties\": \"<array>\",\n \"lifecycleIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"limit\": 123,\n \"after\": \"<string>\",\n \"includeEntries\": true,\n \"includeTotalCount\": true,\n \"includeSegments\": true,\n \"facets\": [\n {\n \"property\": \"<string>\",\n \"contains\": \"<string>\",\n \"ignoreCase\": false,\n \"sort\": {},\n \"first\": 50,\n \"after\": \"<string>\",\n \"exclude\": [\n \"<string>\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/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\": null,\n \"sort\": [\n {\n \"property\": \"<string>\"\n }\n ],\n \"properties\": \"<array>\",\n \"lifecycleIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"limit\": 123,\n \"after\": \"<string>\",\n \"includeEntries\": true,\n \"includeTotalCount\": true,\n \"includeSegments\": true,\n \"facets\": [\n {\n \"property\": \"<string>\",\n \"contains\": \"<string>\",\n \"ignoreCase\": false,\n \"sort\": {},\n \"first\": 50,\n \"after\": \"<string>\",\n \"exclude\": [\n \"<string>\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"properties": [
{
"id": "<string>",
"value": "<string>",
"type": "Text",
"delimiter": "<string>",
"lastUpdated": "2023-11-07T05:31:56Z",
"language": "<string>"
}
],
"lifecycles": [
{
"lifecycleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activeRevision": 123,
"assessment": {
"revision": 123,
"evaluatedAt": "2023-11-07T05:31:56Z",
"state": "Complete",
"firstIncompleteStepId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"steps": [
{
"stepId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requirementsSatisfied": true,
"complete": true,
"locked": true,
"completionReason": "RequirementsSatisfied"
}
]
}
}
],
"segments": [
"<string>"
]
}
],
"after": "<string>",
"totalCount": 123,
"lifecycleStates": [
{
"lifecycleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activeRevision": 123,
"state": "Draft"
}
],
"facets": [
{
"property": "<string>",
"items": [
{
"value": "<string>",
"count": 123
}
],
"after": "<string>",
"totalCount": 123
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>"
}Authorizations
kindeOAuthbearerAuthapiKey
Body
application/json
Was this page helpful?