RoderRun
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/agent/roder/run/swarm_activity |
create |
Activity batch accepted |
POST |
/api/v1/agent/roder/run/swarm_stack |
create |
Replay of an already received stack; the existing receipt |
POST |
/api/v1/agent/roder/run/swarm_transcript |
create |
The transcript is stored and attached |
POST |
/api/v1/agent/roder/run/workspace_authorization |
create |
Success |
Fields
| Field | Type | Required | Description |
|---|
create
POST /api/v1/agent/roder/run/swarm_activity
Operation ID: api_v1_roder_run_swarm_activity.
Authentication: bearer token (bearerAuth).
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
events |
array of object |
Yes | |
events[].duration_ms |
integer |
No | |
events[].exit_code |
integer |
No | |
events[].kind |
enum: shell, shell_exit, read_file, write_file, commit, export, ... |
Yes | |
events[].path |
string |
No | |
events[].payload |
object |
No | |
events[].summary |
string |
Yes | |
events[].ts |
string (date-time) |
No |
Responses
200: Activity batch accepted
application/json
| Property | Type | Required | Description |
|---|---|---|---|
accepted |
integer |
Yes | |
last_seq |
integer |
Yes |
401: Swarm not visible to the current user
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
403: Forbidden
404: Not found
409: Swarm not visible to the current user
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
422: Swarm not visible to the current user
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
429: Swarm not visible to the current user
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
502: Bad gateway
POST /api/v1/agent/roder/run/swarm_stack
Operation ID: api_v1_roder_run_swarm_stack.
Authentication: bearer token (bearerAuth).
Request body
application/json
The request body is object.
Responses
200: Replay of an already received stack; the existing receipt
application/json
The response is object.
201: Stack received and composed; the receipt
application/json
The response is object.
202: The receipt is still composing in another request
application/json
The response is object.
401: Unauthorized
409: stack_payload_conflict or attempt_fenced
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes | |
receipt |
object |
No | |
refusal |
object |
Yes | |
refusal.code |
string |
Yes | |
refusal.detail |
string |
No |
413: stack_too_large (detail bytes); the body exceeds 25 MiB declared or decoded
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes | |
receipt |
object |
No | |
refusal |
object |
Yes | |
refusal.code |
string |
Yes | |
refusal.detail |
string |
No |
422: invalid_payload, an unreadable body, or a refused stack with its receipt
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes | |
receipt |
object |
No | |
refusal |
object |
Yes | |
refusal.code |
string |
Yes | |
refusal.detail |
string |
No |
POST /api/v1/agent/roder/run/swarm_transcript
Operation ID: api_v1_roder_run_swarm_transcript.
Authentication: bearer token (bearerAuth).
Request body
application/json
The request body is object.
Responses
200: The transcript is stored and attached
application/json
| Property | Type | Required | Description |
|---|---|---|---|
attached_commit_ids |
array of string |
Yes | |
checkpoint_id |
string |
Yes | |
session_id |
string |
Yes |
401: Unauthorized
413: The body exceeds the transcript cap
422: An invalid payload or an archive that failed verification
502: jj-backend refused or failed the attachment
POST /api/v1/agent/roder/run/workspace_authorization
Operation ID: api_v1_roder_run_workspace_authorization.
Authentication: bearer token (bearerAuth).
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.