Query
query WorkflowRuns {
workflowRuns {
items {
id
displayNumber
workflowId
workflow {
id
name
description
draftDefinition
draftSchemaVersion
activeVersionId
}
versionId
version {
id
workflowId
version
name
description
schemaVersion
}
}
nextCursor
totalCount
}
}Response
{
"data": {
"workflowRuns": {
"items": [
{
"id": "id",
"displayNumber": 1,
"workflowId": "id",
"workflow": {
"id": "id",
"name": "string",
"description": "string",
"draftDefinition": "value",
"draftSchemaVersion": 1,
"activeVersionId": "id"
},
"versionId": "id",
"version": {
"id": "id",
"workflowId": "id",
"version": 1,
"name": "string",
"description": "string",
"schemaVersion": 1
}
}
],
"nextCursor": "id",
"totalCount": 1
}
}
}Queries
workflowRuns
Returns a workflow run page.
QUERY
workflowRuns(workflowId: ID, agentId: ID, status: String, search: String, archive: String, first: Int, after: ID): WorkflowRunPage!Arguments
workflowId
ID
Identifier of the workflow. Omit it to leave this dimension unfiltered.
agentId
ID
Identifier of the agent. Omit it to leave this dimension unfiltered.
status
String
The status used to filter or perform the operation. Omit it to leave this dimension unfiltered.
search
String
Text used to filter matching records. Omit it to leave this dimension unfiltered.
archive
String
default:"ACTIVE"
The archive used to filter or perform the operation. Defaults to "ACTIVE".
first
Int
default:100
Maximum number of records to return. Defaults to 100.
after
ID
Cursor or identifier after which to return records. Omit it to leave this dimension unfiltered.
Returns
items
[WorkflowRun!]!
Items associated with this workflow run page.
nextCursor
ID
The next cursor associated with this workflow run page. May be null when unavailable or not applicable.
totalCount
Int!
Number of totals.
Query
query WorkflowRuns {
workflowRuns {
items {
id
displayNumber
workflowId
workflow {
id
name
description
draftDefinition
draftSchemaVersion
activeVersionId
}
versionId
version {
id
workflowId
version
name
description
schemaVersion
}
}
nextCursor
totalCount
}
}Response
{
"data": {
"workflowRuns": {
"items": [
{
"id": "id",
"displayNumber": 1,
"workflowId": "id",
"workflow": {
"id": "id",
"name": "string",
"description": "string",
"draftDefinition": "value",
"draftSchemaVersion": 1,
"activeVersionId": "id"
},
"versionId": "id",
"version": {
"id": "id",
"workflowId": "id",
"version": 1,
"name": "string",
"description": "string",
"schemaVersion": 1
}
}
],
"nextCursor": "id",
"totalCount": 1
}
}
}