Preview Blueprints /
List preview blueprint runs
Lists runs of a previewBlueprint
Required permission
Project > PreviewBlueprints > Runs > Read
Path parameters
projectId
string requiredID of the projectpreviewBlueprintId
string requiredID of the preview blueprint
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.runs
[array]A preview blueprint run- {object}
id
string requiredID of the preview blueprint runname
stringOptional name for the preview blueprint rundescription
stringOptional description for the preview blueprint runstatus
string requiredStatus of the template runone ofpending, running, success, failure, aborted, aborting, queued, unknown, skipped, waiting, retrying, async_wait, approval_waitstartedAt
stringTimestamp the run started at.concluded
boolean requiredWhether the run has concluded (aborted, success, failed)concludedAt
stringTimestamp the run concluded at.createdAt
string requiredTimestamp the run was created at.updatedAt
string requiredTimestamp the run was last updated at.pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/projects/{projectId}/preview-blueprints/{previewBlueprintId}/runs
Example response
200 OK
A list of runs for this previewBlueprint.
JSON
{
"data": {
"runs": [
{
"id": "110ddb52-bdcd-482d-8ac2-05ba580afe2f",
"name": "Example run",
"description": "This is an example description",
"status": "success",
"startedAt": "2021-01-01 12:01:00.000Z",
"concluded": true,
"concludedAt": "2021-01-01 12:10:00.000Z",
"createdAt": "2021-01-01 12:00:00.000Z",
"updatedAt": "2021-01-01 12:00:00.000Z"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}