/blocks/query
POST
/blocks/queryRequest
Body Params application/json
filter
object (BlockFilter)
optional
createdAfter
string <date-time> | null
optional
Default:
null
formula
optional
ids
array[string <uuid>]
optional
search
string
optional
Default:
sortBy
object (SortBy_for_BlockSortBy)
optional
teamIds
array[string <uuid>]
optional
updatedAfter
string <date-time> | null
optional
Default:
null
page
integer <int64>
optional
Default:
1
pageSize
integer <int64>
optional
Default:
48
query
object (BlockQuery)
optional
assignments
boolean
optional
Default:
false
children
boolean
optional
Default:
false
data
boolean
optional
Default:
false
Example
{
"filter": {
"createdAfter": null,
"formula": "yes",
"ids": [],
"search": "",
"sortBy": {
"key": "id",
"order": "asc"
},
"teamIds": [],
"updatedAfter": null
},
"page": 1,
"pageSize": 48,
"query": {
"assignments": false,
"children": false,
"data": false
}
}
Request samples
Responses
OK(200)
Bad Request(400)
413(413)
415(415)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
array of:
assignments
array[object (BlockAssignment) {3}] | null
optional
attributeId
string <uuid>
required
id
string <uuid>
required
value
string
required
children
array[string <uuid>] | null
optional
createdAt
string <date-time>
required
data
optional
Any of
A block's data and type.
One of
frequencyPenalty
number <float> | null
optional
Between -2.0 and 2.0 (defaults to 0.0).
Default:
null
kind
enum<string>
required
Allowed value:
ai
model
string | null
optional
Which model to use.
Default:
null
presencePenalty
number <float> | null
optional
Between -2.0 and 2.0 (defaults to 0.0).
Default:
null
systemPrompt
string | null
optional
System prompt.
Default:
null
temperature
number <float> | null
optional
Between 0.0 and 2.0 (defaults to 1.0).
Default:
null
topP
number <float> | null
optional
Between 0.0 and 1.0 (defaults to 1.0).
Default:
null
id
string <uuid>
required
kind
enum<string>
required
The type of a block.
Allowed values:
aiaiBetaapiCallchoiceconditionalfileBetagroupimageparagraphpptragword
name
string
required
updatedAt
string <date-time>
required
Example
[
{
"assignments": [
{
"attributeId": "4373db18-af63-40d4-ad40-80a2c734bfcf",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"value": "string"
}
],
"children": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"createdAt": "2019-08-24T14:15:22.123Z",
"data": {
"frequencyPenalty": null,
"kind": "ai",
"model": null,
"presencePenalty": null,
"systemPrompt": null,
"temperature": null,
"topP": null
},
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"kind": "ai",
"name": "string",
"updatedAt": "2019-08-24T14:15:22.123Z"
}
]
Last modified: 11 days ago