Update a segment
curl --request PATCH \
--url https://api.occtoo.com/v1/card-definitions/{cardId}/segments/{segmentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"language": "<string>",
"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"
}
},
"description": "<string>",
"image": "<string>",
"tags": [
"<string>"
],
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.occtoo.com/v1/card-definitions/{cardId}/segments/{segmentId}"
payload = {
"name": "<string>",
"language": "<string>",
"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"
}
},
"description": "<string>",
"image": "<string>",
"tags": ["<string>"],
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
language: '<string>',
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'
}
},
description: '<string>',
image: '<string>',
tags: ['<string>'],
startTime: '2023-11-07T05:31:56Z',
endTime: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.occtoo.com/v1/card-definitions/{cardId}/segments/{segmentId}', 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}/segments/{segmentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'language' => '<string>',
'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'
]
],
'description' => '<string>',
'image' => '<string>',
'tags' => [
'<string>'
],
'startTime' => '2023-11-07T05:31:56Z',
'endTime' => '2023-11-07T05:31:56Z'
]),
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}/segments/{segmentId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"language\": \"<string>\",\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 \"description\": \"<string>\",\n \"image\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.occtoo.com/v1/card-definitions/{cardId}/segments/{segmentId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"language\": \"<string>\",\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 \"description\": \"<string>\",\n \"image\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/card-definitions/{cardId}/segments/{segmentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"language\": \"<string>\",\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 \"description\": \"<string>\",\n \"image\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"segmentDefinitionId": "<string>",
"cardId": "<string>",
"type": "Query",
"status": "Initializing",
"name": "<string>",
"description": "<string>",
"language": "<string>",
"image": "<string>",
"tags": [
"<string>"
],
"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",
"state": "Complete",
"step": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requirements": "Satisfied",
"completion": "Complete"
},
"firstIncompleteStepId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": {}
}{
"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>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Segments
Update a segment
Changes a segment. Omitted or null fields stay as they are; a changed where or language starts tagging again in the background. A segment evaluates part of the where language: and at the top level; or and not on a single condition; text eq/in/pattern; list contains/pattern; integer, decimal and timestamp eq/in/gte/lte; boolean eq/in; hasValue; and relation by id. Patterns are case-sensitive, and hasValue doesn’t count an empty text or list. Anything else returns 400 naming the limit.
PATCH
/
v1
/
card-definitions
/
{cardId}
/
segments
/
{segmentId}
Update a segment
curl --request PATCH \
--url https://api.occtoo.com/v1/card-definitions/{cardId}/segments/{segmentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"language": "<string>",
"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"
}
},
"description": "<string>",
"image": "<string>",
"tags": [
"<string>"
],
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.occtoo.com/v1/card-definitions/{cardId}/segments/{segmentId}"
payload = {
"name": "<string>",
"language": "<string>",
"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"
}
},
"description": "<string>",
"image": "<string>",
"tags": ["<string>"],
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
language: '<string>',
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'
}
},
description: '<string>',
image: '<string>',
tags: ['<string>'],
startTime: '2023-11-07T05:31:56Z',
endTime: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.occtoo.com/v1/card-definitions/{cardId}/segments/{segmentId}', 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}/segments/{segmentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'language' => '<string>',
'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'
]
],
'description' => '<string>',
'image' => '<string>',
'tags' => [
'<string>'
],
'startTime' => '2023-11-07T05:31:56Z',
'endTime' => '2023-11-07T05:31:56Z'
]),
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}/segments/{segmentId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"language\": \"<string>\",\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 \"description\": \"<string>\",\n \"image\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.occtoo.com/v1/card-definitions/{cardId}/segments/{segmentId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"language\": \"<string>\",\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 \"description\": \"<string>\",\n \"image\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/card-definitions/{cardId}/segments/{segmentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"language\": \"<string>\",\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 \"description\": \"<string>\",\n \"image\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"segmentDefinitionId": "<string>",
"cardId": "<string>",
"type": "Query",
"status": "Initializing",
"name": "<string>",
"description": "<string>",
"language": "<string>",
"image": "<string>",
"tags": [
"<string>"
],
"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",
"state": "Complete",
"step": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requirements": "Satisfied",
"completion": "Complete"
},
"firstIncompleteStepId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": {}
}{
"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>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
kindeOAuthbearerAuthapiKey
Path Parameters
Body
application/json
Holds changes to a segment. Omitted or null fields stay as they are.
Response
OK
Names a set of cards of one card definition, picked by a where filter or by a fixed list of card ids.
Was this page helpful?