List Records
List Records
Path Parameters
- contentGenerationId int64 required
The Content Generation id.
Query Parameters
- cursor string required
The cursor
- limit integer required
Default value:
10
The maximum number of results
- status Status required
Possible values: [
VALID
,WARNING
,ERROR
,ACCEPTED
]The record status
- q string required
Search query
- 200
- 401
Found.
- application/json
- Schema
- Example (from schema)
Schema
- first string nullable required
The link to the first page.
items object[] required
An array of objects.
Array [completion string requiredcontent_generation_id int64 requiredThe parent content generation id.
data object requiredThe data from knowledge graph after applying the graphql query.
errors object[]
The set of errors found for record.
Array [levelEnum LevelEnum requiredPossible values: [
RECOMMENDED
,REQUIRED
]The rule level.
name string requiredresult string requiredPossible values: [
PASS
,FAIL
,SKIP
,FIXED
]]has_upvote boolean requiredThis indicates whether the user upvoted the completion.
id int64 requiredis_accepted boolean requiredThis indicates whether the completion is accepted by the user.
modified_at date-time requiredThe last modified date-time.
prompt string requiredThe prompt.
warnings object[]
The set of errors found for record.
Array [levelEnum LevelEnum requiredPossible values: [
RECOMMENDED
,REQUIRED
]The rule level.
name string requiredresult string requiredPossible values: [
PASS
,FAIL
,SKIP
,FIXED
]]]- last string nullable required
The link to the last page.
- next string nullable required
The link to the next page or
null
if there's no page. - prev string nullable required
The link to the previous page or
null
if there's no page. - self string nullable required
The link to the current page.
{
"first": "string",
"items": [
{
"completion": "string",
"content_generation_id": 0,
"data": {},
"errors": [
{
"levelEnum": "RECOMMENDED",
"name": "string",
"result": "PASS"
}
],
"has_upvote": true,
"id": 0,
"is_accepted": true,
"modified_at": "2023-07-20T12:14:49.159Z",
"prompt": "string",
"warnings": [
{
"levelEnum": "RECOMMENDED",
"name": "string",
"result": "PASS"
}
]
}
],
"last": "string",
"next": "string",
"prev": "string",
"self": "string"
}
Authentication Failure