/blocks/{block_id}
GET
/blocks/{block_id}Request
Path Params
block_id
string
required
Request samples
Responses
OK(200)
Bad Request(400)
413(413)
415(415)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
A block's id along with its name.
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