Stage a sealed Evaluation source asset in the bound Agent workspace
POST
/v1/evaluations/runs/{runId}/source-assets/{sourceAssetId}/stageStages one immutable, digest-verified source asset referenced by the exact Evaluation case into the workspace of the Agent target pinned by the run binding. The caller must present the active run execution lease. Cross-run, cross-case, cross-version, and cross-environment staging is rejected.
How to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| runId | path | string | Yes | — |
| sourceAssetId | path | string | Yes | — |
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| caseId | string | Yes | — |
| executionLease | object | Yes | — |
| executionLease.owner | string | Yes | — |
| executionLease.token | string | Yes | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Source asset staged in the immutable target workspaceapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| attachment | object | Yes | — |
| attachment.id | string | Yes | Unique identifier. |
| attachment.filename | string | Yes | — |
| attachment.mimeType | string | Yes | — |
| attachment.size | integer | Yes | — |
| attachment.type | image | document | Yes | — |
| attachment.gcsPath | string | Yes | — |
| attachment.url | string | Yes | — |
| attachment.uploadedAt | string | Yes | — |
| attachment.workspacePath | string | Yes | — |
| attachment.environmentId | string | Yes | Computer ID. |
| attachment.immutableUri | string | Yes | — |
| attachment.sha256 | string | Yes | — |
400Invalid staging request
None.
401Missing or invalid workload credential
None.
403Workload credential or organization is out of scope
None.
404Run
None.
409Run lease or immutable target binding is no longer valid
None.
503Artifact storage or source content is unavailable
None.
Stage a sealed Evaluation source asset in the bound Agent workspace
Loading...
Response 200
Loading...