Update record
Update record
Path Parameters
contentGenerationId int64 required
The Content Generation id.
recordId int64 required
The Record id.
application/json
Request Body required
completion string
has_upvote boolean required
This indicates whether the user upvoted the completion.
is_accepted boolean required
This indicates whether the completion is accepted by the user.
Responses
- 200
- 401
- 404
Found.
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
completion string
content_generation_id int64 required
The parent content generation id.
data object
The data from knowledge graph after applying the graphql query.
errors object[]
The set of errors found for record.
levelEnum LevelEnum
Possible values: [RECOMMENDED
, REQUIRED
]
The rule level.
name string
result string
Possible values: [PASS
, FAIL
, SKIP
, FIXED
]
has_upvote boolean required
This indicates whether the user upvoted the completion.
id int64
is_accepted boolean required
This indicates whether the completion is accepted by the user.
modified_at date-time
The last modified date-time.
prompt string required
The prompt.
warnings object[]
The set of errors found for record.
levelEnum LevelEnum
Possible values: [RECOMMENDED
, REQUIRED
]
The rule level.
name string
result string
Possible values: [PASS
, FAIL
, SKIP
, FIXED
]
{
"completion": "string",
"content_generation_id": 0,
"data": {},
"errors": [
{
"levelEnum": "RECOMMENDED",
"name": "string",
"result": "PASS"
}
],
"has_upvote": true,
"id": 0,
"is_accepted": true,
"modified_at": "2024-05-07T14:20:50.869Z",
"prompt": "string",
"warnings": [
{
"levelEnum": "RECOMMENDED",
"name": "string",
"result": "PASS"
}
]
}
Authentication Failure
Not Found
Loading...