Skip to content
GurtOS

List the events that changed a task's files

GET
/tasks/{id}/replay
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.

id
required
string

The task id.

Example

t3k9x2a1b2

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
Allowed values: added modified deleted
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"
}