List the events that changed a task's files
GET
/tasks/{id}/replay
const url = 'http://127.0.0.1:7700/api/tasks/t3k9x2a1b2/replay';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://127.0.0.1:7700/api/tasks/t3k9x2a1b2/replay \ --header 'Authorization: Bearer <token>'The flight recorder. For each log event after which the task’s own files were different, the files
that changed. Pass an event’s seq as at to GET /tasks/{id}/diff to see the files as they were
right after it. A file over 1 MB is noted with big: true and not kept. A task keeps at most 50 MB
of snapshots, after which capped is true and nothing more is recorded.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
The task id.
Example
t3k9x2a1b2Responses
Section titled “Responses”The recorded points.
Media typeapplication/json
object
points
required
Array<object>
object
seq
required
The log event after which the files changed.
integer
changes
required
Array
object
path
required
Path inside the workspace.
string
change
required
string
big
Over 1 MB
boolean
capped
boolean
Example
{ "points": [ { "seq": 14, "changes": [ { "path": "summary.md", "change": "added" } ] }, { "seq": 19, "changes": [ { "path": "summary.md", "change": "modified" } ] } ]}No task with this id.
Media typeapplication/json
object
error
required
What went wrong
string
Example generated
{ "error": "example"}