v52

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0189112274.5 KB
task-retention

Rehydrate Task

Restore content-bearing rows from a snapshot.

Two modes:

  • Inline: caller provides messages and task_states in the request body.
  • URL: caller provides snapshot_url; Agentex downloads and parses it.

Refuses if the task isn't currently in a cleaned state, or if any supplied message/state ID already exists in Mongo (catches double-rehydrate).

post/tasks/{task_id}/rehydrate

Path parameters

task_idstring required

Request body

task_idstring required
snapshot_urlstring uri nullable

Presigned GET URL whose body is a JSON-encoded TaskSnapshotEntity. Must be https; must resolve to a public address. When set, messages/task_states must be empty.

Response

Successful Response