API Reference / Artifacts
Verified against Flow 5.0.0-beta.39
| Name | Method | Endpoint |
|---|---|---|
| Delete a workspace artifact, by id, and its file | DELETE | /api/v2/workspace/{workspace}/artifacts/{artifactId} |
| Delete a run's artifact, by name, and its file | DELETE | /api/v2/workspace/{workspace}/workflowrun/{workflowRunId}/artifacts/{name} |
| Download an artifact's file | GET | /api/v2/workspace/{workspace}/workflowrun/{workflowRunId}/artifacts/{name} |
| List a WorkflowRun's artifacts, expired ones included | GET | /api/v2/workspace/{workspace}/workflowrun/{workflowRunId}/artifacts |
| List the workspace's artifacts, largest first | GET | /api/v2/workspace/{workspace}/artifacts |
DELETE /api/v2/workspace/{workspace}/artifacts/{artifactId}
Requires the workflowrun/delete permission, from a global, key, user, session token.
| Name | Type | Required | Description | Notes | Example |
|---|---|---|---|---|---|
| workspace | String | true | Owning workspace name. | ||
| artifactId | String | true | Artifact ID |
This endpoint does not require a request body.
One of BearerAuth, x-access-token
Not definedNot definedNo response body
curl -X DELETE "$FLOW_URL/api/v2/workspace/$WORKSPACE/artifacts/$ARTIFACT_ID" \
-H "Authorization: Bearer $FLOW_TOKEN"DELETE /api/v2/workspace/{workspace}/workflowrun/{workflowRunId}/artifacts/{name}
Requires the workflowrun/delete permission, from a global, key, user, session token.
| Name | Type | Required | Description | Notes | Example |
|---|---|---|---|---|---|
| workspace | String | true | Owning workspace name. | ||
| workflowRunId | String | true | WorkflowRun ID | ||
| name | String | true | Artifact name |
This endpoint does not require a request body.
One of BearerAuth, x-access-token
Not definedNot definedNo response body
curl -X DELETE "$FLOW_URL/api/v2/workspace/$WORKSPACE/workflowrun/$RUN_ID/artifacts/$ARTIFACT" \
-H "Authorization: Bearer $FLOW_TOKEN"GET /api/v2/workspace/{workspace}/workflowrun/{workflowRunId}/artifacts/{name}
Requires the workflowrun/read permission, from a global, key, user, session token.
| Name | Type | Required | Description | Notes | Example |
|---|---|---|---|---|---|
| workspace | String | true | Owning workspace name. | ||
| workflowRunId | String | true | WorkflowRun ID | ||
| name | String | true | Artifact name |
This endpoint does not require a request body.
One of BearerAuth, x-access-token
Not defined*/*Any
curl -X GET "$FLOW_URL/api/v2/workspace/$WORKSPACE/workflowrun/$RUN_ID/artifacts/$ARTIFACT" \
-H "Authorization: Bearer $FLOW_TOKEN"GET /api/v2/workspace/{workspace}/workflowrun/{workflowRunId}/artifacts
Requires the workflowrun/read permission, from a global, key, user, session token.
| Name | Type | Required | Description | Notes | Example |
|---|---|---|---|---|---|
| workspace | String | true | Owning workspace name. | ||
| workflowRunId | String | true | WorkflowRun ID |
This endpoint does not require a request body.
One of BearerAuth, x-access-token
Not defined*/*List of Artifact
curl -X GET "$FLOW_URL/api/v2/workspace/$WORKSPACE/workflowrun/$RUN_ID/artifacts" \
-H "Authorization: Bearer $FLOW_TOKEN"GET /api/v2/workspace/{workspace}/artifacts
Requires the workflowrun/read permission, from a global, key, user, session token.
| Name | Type | Required | Description | Notes | Example |
|---|---|---|---|---|---|
| workspace | String | true | Owning workspace name. | ||
| statuses | List of String | false | Artifact statuses to include. Defaults to available. | Enum: [uploading, available, expired] | available,expired |
| scope | String | false | Only artifacts of this scope: run or workflow. Defaults to both. | Enum: [run, workflow, log] | workflow |
| workflow | String | false | Only artifacts of this workflow, by name. | nightly-build |
|
| page | Integer | false | Page Number | Defaults to 0. |
0 |
| limit | Integer | false | Result Size | Defaults to 10. |
10 |
This endpoint does not require a request body.
One of BearerAuth, x-access-token
Not defined*/*curl -X GET "$FLOW_URL/api/v2/workspace/$WORKSPACE/artifacts" \
-H "Authorization: Bearer $FLOW_TOKEN"