Commit one episode revision (trim / prompts / tier / tags / review)
POST
/v1/datasets/episode-revision
const url = 'https://example.com/v1/datasets/episode-revision';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"episode_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","operation_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","note":"","expected_parent_rev":0,"trim_start_s":1,"trim_end_s":1,"clear_trim":false,"task":"example","subtasks":[{}],"clear_subtasks":false,"tier":"example","tags":["example"],"review_state":"unreviewed"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/datasets/episode-revision \ --header 'Content-Type: application/json' \ --data '{ "episode_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "operation_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "note": "", "expected_parent_rev": 0, "trim_start_s": 1, "trim_end_s": 1, "clear_trim": false, "task": "example", "subtasks": [ {} ], "clear_subtasks": false, "tier": "example", "tags": [ "example" ], "review_state": "unreviewed" }'Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” account_id
Act on this account (active)
string | null format: uuid
Act on this account (active)
Header Parameters
Section titled “Header Parameters ” x-api-key
string | null
Request Body required
Section titled “Request Body required ” Media type application/json
CreateEpisodeRevisionBody
object
episode_id
required
string format: uuid
operation_id
required
string format: uuid
note
string
expected_parent_rev
integer
trim_start_s
number | null
trim_end_s
number | null
clear_trim
boolean
task
string | null
subtasks
Array<object>
object
key
additional properties
any
clear_subtasks
boolean
tier
string | null
tags
Array<string>
review_state
string
Responses
Section titled “ Responses ”Successful Response
Media type application/json
Example generated
exampleValidation Error
Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationErrorobject
loc
required
Location
Array<string | integer>
msg
required
Message
string
type
required
Error Type
string
input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}