Skip to main content

Read one immutable child compaction record

GET 

/session/agents/:agentRunId/compactions/:compactionId

Returns one child compaction record. The record must belong to both the session and the agent run in the path.

  • Select the session with the X-Session-ID header.
  • Returns 404 with code SESSION_NOT_FOUND when the session does not exist, and 404 with code NOT_FOUND (compaction not found) when the run does not belong to it or the compaction belongs to another session or another run. A caller cannot use this to probe for records it does not own.

Request​

Responses​

The child compaction record.

Response Headers
    X-Session-ID

    The session this response belongs to. For session-scoped requests it echoes the X-Session-ID request header; for POST /sessions/open and POST /sessions/system it is the session that was opened or created.

    X-Request-ID

    The request's correlation ID. When the request carried an X-Request-ID header holding a UUID, Peen echoes it; otherwise Peen generates a new UUID. The controller log records the same value for this request.