Procedure executions service#
Service for creating and managing procedure executions.
OpenAPI file: nominal.procedures.executions.v1.json
Endpoints#
Batch archive procedure executions#
POST /procedures/v1/executions/archive
Archive procedure executions
Body
procedureExecutionRidsarray of string
Response
procedureExecutionRidsarray of string
Request
curl -X POST "https://api.gov.nominal.io/api/procedures/v1/executions/archive" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"procedureExecutionRids": [
"<procedure execution rids>"
]
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/procedures/v1/executions/archive",
headers={"Authorization": "Bearer <api key>"},
json={"procedureExecutionRids": ["<procedure execution rids>"]},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/procedures/v1/executions/archive",
headers={"Authorization": "Bearer <api key>"},
json={"procedureExecutionRids": ["<procedure execution rids>"]},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/procedures/v1/executions/archive",
headers={"Authorization": "Bearer <api key>"},
json={"procedureExecutionRids": ["<procedure execution rids>"]},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"procedureExecutionRids": [
"<procedure execution rids>"
]
}
Batch get procedure execution metadata#
POST /procedures/v1/executions/batch-get-metadata
Batch get procedure execution metadata
Body
procedureExecutionRidsarray of string
Response
procedureExecutionsarray ofProcedureExecutionMetadata
Fields of
ProcedureExecutionMetadataridstring
procedureRidstringThe procedure template rid this execution is based on.
procedureCommitIdstringThe commit ID of the procedure template this execution is based on. This can be overridden at the node level for individual nodes.
titlestringAt least 1 character.
descriptionstring
labelsarray of string
propertiesmap of string to string
createdBystring
createdAtstring (date-time)
updatedBystring
updatedAtstring (date-time)
startedAtstring (date-time)Will be unset until the execution transitions from NOT_STARTED to IN_PROGRESS.
startedBystring
finishedAtstring (date-time)Will be unset until the execution transitions from IN_PROGRESS to a terminal state.
finishedBystring
abortedAtstring (date-time)Will be true/set if the execution is the ABORTED terminal state.
abortedBystring
failedAtstring (date-time)Will be set if the execution is in the ERRORED terminal state.
failedBystring
failedReasonstring
assetRidsarray of stringAssets which this execution has acted on in completed steps (e.g. through an event creation action).
isArchivedboolean
Request
curl -X POST "https://api.gov.nominal.io/api/procedures/v1/executions/batch-get-metadata" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"procedureExecutionRids": [
"<procedure execution rids>"
]
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/procedures/v1/executions/batch-get-metadata",
headers={"Authorization": "Bearer <api key>"},
json={"procedureExecutionRids": ["<procedure execution rids>"]},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/procedures/v1/executions/batch-get-metadata",
headers={"Authorization": "Bearer <api key>"},
json={"procedureExecutionRids": ["<procedure execution rids>"]},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/procedures/v1/executions/batch-get-metadata",
headers={"Authorization": "Bearer <api key>"},
json={"procedureExecutionRids": ["<procedure execution rids>"]},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"procedureExecutions": [
{
"rid": "<rid>",
"procedureRid": "<procedure rid>",
"procedureCommitId": "<procedure commit id>",
"title": "<title>",
"description": "<description>",
"labels": [
"<labels>"
],
"properties": {
"<key>": "<value>"
},
"createdBy": "<created by>",
"createdAt": "2026-01-01T00:00:00Z",
"updatedBy": "<updated by>",
"updatedAt": "2026-01-01T00:00:00Z",
"startedAt": "2026-01-01T00:00:00Z",
"startedBy": "<started by>",
"finishedAt": "2026-01-01T00:00:00Z",
"finishedBy": "<finished by>",
"abortedAt": "2026-01-01T00:00:00Z",
"abortedBy": "<aborted by>",
"failedAt": "2026-01-01T00:00:00Z",
"failedBy": "<failed by>",
"failedReason": "<failed reason>",
"assetRids": [
"<asset rids>"
],
"isArchived": true
}
]
}
Create procedure execution#
POST /procedures/v1/executions/procedures/{procedureRid}
Create a new procedure execution from a procedure
Path parameters
procedureRidstring required
Body
procedureCommitIdstring
titlestringAt least 1 character.
descriptionstring
startImmediatelyboolean
Response
procedureExecutionProcedureExecution
Fields of
ProcedureExecutionridstring
metadataProcedureExecutionMetadata
Fields of
ProcedureExecutionMetadataridstring
procedureRidstringThe procedure template rid this execution is based on.
procedureCommitIdstringThe commit ID of the procedure template this execution is based on. This can be overridden at the node level for individual nodes.
titlestringAt least 1 character.
descriptionstring
labelsarray of string
propertiesmap of string to string
createdBystring
createdAtstring (date-time)
updatedBystring
updatedAtstring (date-time)
startedAtstring (date-time)Will be unset until the execution transitions from NOT_STARTED to IN_PROGRESS.
startedBystring
finishedAtstring (date-time)Will be unset until the execution transitions from IN_PROGRESS to a terminal state.
finishedBystring
abortedAtstring (date-time)Will be true/set if the execution is the ABORTED terminal state.
abortedBystring
failedAtstring (date-time)Will be set if the execution is in the ERRORED terminal state.
failedBystring
failedReasonstring
assetRidsarray of stringAssets which this execution has acted on in completed steps (e.g. through an event creation action).
isArchivedboolean
stateProcedureExecutionState
Fields of
ProcedureExecutionStateglobalFieldsmap of string toFieldOutputThe current values for the global fields in the procedure.
Fields of
FieldOutput- one of 10 fields
assetRidstringIf a global field is not yet defined, I think it’s just not present in the global_fields map option (buf.validate.oneof) = {required: true};
stringValuestring
doubleValuenumber
booleanValueboolean
intValuestring (int64)
stringsValueStrings
Fields of
Stringsvaluesarray of string
ingestJobRidstring
runRidstring
fileUploadValueFileUploadFieldValue
Fields of
FileUploadFieldValues3UploadS3UploadFileValue
Fields of
S3UploadFileValues3PathstringThe S3 path where the uploaded file is stored At least 1 character.
fileNamestringThe original filename of the uploaded file At least 1 character.
fileTypestringThe MIME type of the uploaded file Following the convention of https://developer.mozilla.org/en-US/docs/Web/API/Blob/type (from which the File api inherits, we will accept an empty string)
multiFileUploadValueMultiFileUploadFieldValue
Fields of
MultiFileUploadFieldValueuploadsarray ofFileUploadFieldValueThe list of uploads
nodesmap of string toProcedureExecutionNodeA map from execution node ID to the execution node.
Fields of
ProcedureExecutionNode- one of
section,step
sectionProcedureExecutionSectionNodeA section node is a visual grouping of other sections and steps. Execution sections are static and do not have execution state.
Fields of
ProcedureExecutionSectionNodeidstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
titlestringTitle of this section. Uses the template section’s title and cannot be changed in execution. At least 1 character.
descriptionstringDescription of this section. Uses the template section’s description and cannot be changed in execution.
templateCommitIdstringIf set, the commit ID of the procedure template this section is based on. Otherwise, the section is based on the template commit specified at the top level of the execution.
stepProcedureExecutionStepNodeExecution steps are the interactive steps in a procedure.
Fields of
ProcedureExecutionStepNodeidstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
isOutdatedbooleanExecution steps become “outdated” once any upstream steps are re-run An outdated execution step should not be further modified.
stateExecutionStepStateThe current status of the step along with metadata about the status transitions.
Fields of
ExecutionStepState- one of 6 fields
notStartedExecutionStepNotStarted
inProgressExecutionStepInProgress
Fields of
ExecutionStepInProgressstartedAtstring (date-time)
startedBystring
submittedExecutionStepSubmitted
Fields of
ExecutionStepSubmittedstartedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
skippedExecutionStepSkippedTerminal states below
Fields of
ExecutionStepSkippedskippedAtstring (date-time)
skippedBystring
skipReasonstring
startedAtstring (date-time)Optional because a step can be skipped from the NOT_STARTED state before these are set
startedBystring
submittedAtstring (date-time)Optional because a step can be skipped from the IN_PROGRESS state before these are set
submittedBystring
succeededExecutionStepSucceeded
Fields of
ExecutionStepSucceededstartedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
succeededAtstring (date-time)
succeededBystring
erroredExecutionStepErrored
Fields of
ExecutionStepErroredstartedAtstring (date-time)Optional because a step can reach ERRORED without having been started
startedBystring
submittedAtstring (date-time)Optional because a step can be errored before being submitted
submittedBystring
erroredAtstring (date-time)
erroredBystring
errorstring
skippedAtstring (date-time)Optional because a step could be skipped but then error while running completion actions
skippedBystring
skipReasonstring
succeededAtstring (date-time)Optional because a step can succeed but then error while running completion actions
succeededBystring
valueStepContentValueThe current value for the content of the step.
Fields of
StepContentValue- one of
form,startIngest,selectOrCreateAsset,wait
formFormStepValue
Fields of
FormStepValuefieldsarray ofFormFieldValue
Fields of
FormFieldValue- one of 9 fields
Request
curl -X POST "https://api.gov.nominal.io/api/procedures/v1/executions/procedures/<procedure rid>" \ -H "Authorization: Bearer <api key>" \ -H "Content-Type: application/json" \ --data '{ "procedureCommitId": "<procedure commit id>", "title": "<title>", "description": "<description>", "startImmediately": true }'
import requests response = requests.post( "https://api.gov.nominal.io/api/procedures/v1/executions/procedures/<procedure rid>", headers={"Authorization": "Bearer <api key>"}, json={ "procedureCommitId": "<procedure commit id>", "title": "<title>", "description": "<description>", "startImmediately": True, }, ) response.raise_for_status() print(response.json())
import httpx response = httpx.post( "https://api.gov.nominal.io/api/procedures/v1/executions/procedures/<procedure rid>", headers={"Authorization": "Bearer <api key>"}, json={ "procedureCommitId": "<procedure commit id>", "title": "<title>", "description": "<description>", "startImmediately": True, }, ) response.raise_for_status() print(response.json())
import asyncio import aiohttp async def main() -> None: async with aiohttp.ClientSession() as session: async with session.post( "https://api.gov.nominal.io/api/procedures/v1/executions/procedures/<procedure rid>", headers={"Authorization": "Bearer <api key>"}, json={ "procedureCommitId": "<procedure commit id>", "title": "<title>", "description": "<description>", "startImmediately": True, }, ) as response: response.raise_for_status() print(await response.json()) asyncio.run(main())
Response:
200{ "procedureExecution": { "rid": "<rid>", "metadata": { "rid": "<rid>", "procedureRid": "<procedure rid>", "procedureCommitId": "<procedure commit id>", "title": "<title>", "description": "<description>", "labels": [ "<labels>" ], "properties": { "<key>": "<value>" }, "createdBy": "<created by>", "createdAt": "2026-01-01T00:00:00Z", "updatedBy": "<updated by>", "updatedAt": "2026-01-01T00:00:00Z", "startedAt": "2026-01-01T00:00:00Z", "startedBy": "<started by>", "finishedAt": "2026-01-01T00:00:00Z", "finishedBy": "<finished by>", "abortedAt": "2026-01-01T00:00:00Z", "abortedBy": "<aborted by>", "failedAt": "2026-01-01T00:00:00Z", "failedBy": "<failed by>", "failedReason": "<failed reason>", "assetRids": [ "<asset rids>" ], "isArchived": true }, "state": { "globalFields": { "<key>": { "assetRid": "<asset rid>" } }, "nodes": { "<key>": { "section": { "id": "<id>", "templateNodeId": "<template node id>", "title": "<title>", "description": "<description>", "templateCommitId": "<template commit id>" } } }, "sectionEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } }, "stepEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } } } } }
Search procedure executions#
GET
/procedures/v1/executions/searchSearch for procedure executions. The JSON transcoder ranks literal path segments above
/{...}template captures, so the literal/searchroute wins over the/{procedure_execution_rid}template regardless of declaration order.Query parameters
query.searchTextstring
query.labelstring
query.property.namestring
query.property.valuestring
query.workspacestring
query.procedureRidstring
query.commitIdstring
query.createdBystring
query.progressStatusstring, one ofPROCEDURE_EXECUTION_PROGRESS_STATUS_UNSPECIFIED,PROCEDURE_EXECUTION_PROGRESS_STATUS_NOT_STARTED,PROCEDURE_EXECUTION_PROGRESS_STATUS_IN_PROGRESS,PROCEDURE_EXECUTION_PROGRESS_STATUS_FINISHED,PROCEDURE_EXECUTION_PROGRESS_STATUS_ABORTED
query.assetsFilter.assetRidsarray of string
query.assetsFilter.operatorstring, one ofOPERATOR_UNSPECIFIED,OPERATOR_OR,OPERATOR_AND
query.isArchivedboolean
sortOptions.isDescendingbooleanDefaults to descending
sortOptions.sortFieldstring, one ofSEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UNSPECIFIED,SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_CREATED_AT,SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_STARTED_AT,SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_FINISHED_AT,SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_UPDATED_ATrequired
pageSizeintegerPage sizes greater than 1_000 will be rejected. Default pageSize is 100. From 1 to 1,000.
nextPageTokenstring
Response
procedureExecutionsarray ofProcedureExecutionMetadata
Fields of
ProcedureExecutionMetadataridstring
procedureRidstringThe procedure template rid this execution is based on.
procedureCommitIdstringThe commit ID of the procedure template this execution is based on. This can be overridden at the node level for individual nodes.
titlestringAt least 1 character.
descriptionstring
labelsarray of string
propertiesmap of string to string
createdBystring
createdAtstring (date-time)
updatedBystring
updatedAtstring (date-time)
startedAtstring (date-time)Will be unset until the execution transitions from NOT_STARTED to IN_PROGRESS.
startedBystring
finishedAtstring (date-time)Will be unset until the execution transitions from IN_PROGRESS to a terminal state.
finishedBystring
abortedAtstring (date-time)Will be true/set if the execution is the ABORTED terminal state.
abortedBystring
failedAtstring (date-time)Will be set if the execution is in the ERRORED terminal state.
failedBystring
failedReasonstring
assetRidsarray of stringAssets which this execution has acted on in completed steps (e.g. through an event creation action).
isArchivedboolean
nextPageTokenstring
Request
curl "https://api.gov.nominal.io/api/procedures/v1/executions/search?sortOptions.sortField=SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_CREATED_AT" \ -H "Authorization: Bearer <api key>"
import requests response = requests.get( "https://api.gov.nominal.io/api/procedures/v1/executions/search?sortOptions.sortField=SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_CREATED_AT", headers={"Authorization": "Bearer <api key>"}, ) response.raise_for_status() print(response.json())
import httpx response = httpx.get( "https://api.gov.nominal.io/api/procedures/v1/executions/search?sortOptions.sortField=SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_CREATED_AT", headers={"Authorization": "Bearer <api key>"}, ) response.raise_for_status() print(response.json())
import asyncio import aiohttp async def main() -> None: async with aiohttp.ClientSession() as session: async with session.get( "https://api.gov.nominal.io/api/procedures/v1/executions/search?sortOptions.sortField=SEARCH_PROCEDURE_EXECUTIONS_SORT_FIELD_CREATED_AT", headers={"Authorization": "Bearer <api key>"}, ) as response: response.raise_for_status() print(await response.json()) asyncio.run(main())
Response:
200{ "procedureExecutions": [ { "rid": "<rid>", "procedureRid": "<procedure rid>", "procedureCommitId": "<procedure commit id>", "title": "<title>", "description": "<description>", "labels": [ "<labels>" ], "properties": { "<key>": "<value>" }, "createdBy": "<created by>", "createdAt": "2026-01-01T00:00:00Z", "updatedBy": "<updated by>", "updatedAt": "2026-01-01T00:00:00Z", "startedAt": "2026-01-01T00:00:00Z", "startedBy": "<started by>", "finishedAt": "2026-01-01T00:00:00Z", "finishedBy": "<finished by>", "abortedAt": "2026-01-01T00:00:00Z", "abortedBy": "<aborted by>", "failedAt": "2026-01-01T00:00:00Z", "failedBy": "<failed by>", "failedReason": "<failed reason>", "assetRids": [ "<asset rids>" ], "isArchived": true } ], "nextPageToken": "<next page token>" }
Batch unarchive procedure executions#
POST
/procedures/v1/executions/unarchiveUnarchive procedure executions
Body
procedureExecutionRidsarray of string
Response
procedureExecutionRidsarray of string
Request
curl -X POST "https://api.gov.nominal.io/api/procedures/v1/executions/unarchive" \ -H "Authorization: Bearer <api key>" \ -H "Content-Type: application/json" \ --data '{ "procedureExecutionRids": [ "<procedure execution rids>" ] }'
import requests response = requests.post( "https://api.gov.nominal.io/api/procedures/v1/executions/unarchive", headers={"Authorization": "Bearer <api key>"}, json={"procedureExecutionRids": ["<procedure execution rids>"]}, ) response.raise_for_status() print(response.json())
import httpx response = httpx.post( "https://api.gov.nominal.io/api/procedures/v1/executions/unarchive", headers={"Authorization": "Bearer <api key>"}, json={"procedureExecutionRids": ["<procedure execution rids>"]}, ) response.raise_for_status() print(response.json())
import asyncio import aiohttp async def main() -> None: async with aiohttp.ClientSession() as session: async with session.post( "https://api.gov.nominal.io/api/procedures/v1/executions/unarchive", headers={"Authorization": "Bearer <api key>"}, json={"procedureExecutionRids": ["<procedure execution rids>"]}, ) as response: response.raise_for_status() print(await response.json()) asyncio.run(main())
Response:
200{ "procedureExecutionRids": [ "<procedure execution rids>" ] }
Get procedure execution#
GET
/procedures/v1/executions/{procedureExecutionRid}Get a procedure execution by its RID
Path parameters
procedureExecutionRidstring required
Query parameters
includeDisplayGraphbooleanIf true, the display graph will be included in the response. Default is false.
Response
procedureExecutionProcedureExecution
Fields of
ProcedureExecutionridstring
metadataProcedureExecutionMetadata
Fields of
ProcedureExecutionMetadataridstring
procedureRidstringThe procedure template rid this execution is based on.
procedureCommitIdstringThe commit ID of the procedure template this execution is based on. This can be overridden at the node level for individual nodes.
titlestringAt least 1 character.
descriptionstring
labelsarray of string
propertiesmap of string to string
createdBystring
createdAtstring (date-time)
updatedBystring
updatedAtstring (date-time)
startedAtstring (date-time)Will be unset until the execution transitions from NOT_STARTED to IN_PROGRESS.
startedBystring
finishedAtstring (date-time)Will be unset until the execution transitions from IN_PROGRESS to a terminal state.
finishedBystring
abortedAtstring (date-time)Will be true/set if the execution is the ABORTED terminal state.
abortedBystring
failedAtstring (date-time)Will be set if the execution is in the ERRORED terminal state.
failedBystring
failedReasonstring
assetRidsarray of stringAssets which this execution has acted on in completed steps (e.g. through an event creation action).
isArchivedboolean
stateProcedureExecutionState
Fields of
ProcedureExecutionStateglobalFieldsmap of string toFieldOutputThe current values for the global fields in the procedure.
Fields of
FieldOutput- one of 10 fields
assetRidstringIf a global field is not yet defined, I think it’s just not present in the global_fields map option (buf.validate.oneof) = {required: true};
stringValuestring
doubleValuenumber
booleanValueboolean
intValuestring (int64)
stringsValueStrings
Fields of
Stringsvaluesarray of string
ingestJobRidstring
runRidstring
fileUploadValueFileUploadFieldValue
Fields of
FileUploadFieldValues3UploadS3UploadFileValue
Fields of
S3UploadFileValues3PathstringThe S3 path where the uploaded file is stored At least 1 character.
fileNamestringThe original filename of the uploaded file At least 1 character.
fileTypestringThe MIME type of the uploaded file Following the convention of https://developer.mozilla.org/en-US/docs/Web/API/Blob/type (from which the File api inherits, we will accept an empty string)
multiFileUploadValueMultiFileUploadFieldValue
Fields of
MultiFileUploadFieldValueuploadsarray ofFileUploadFieldValueThe list of uploads
nodesmap of string toProcedureExecutionNodeA map from execution node ID to the execution node.
Fields of
ProcedureExecutionNode- one of
section,step
sectionProcedureExecutionSectionNodeA section node is a visual grouping of other sections and steps. Execution sections are static and do not have execution state.
Fields of
ProcedureExecutionSectionNodeidstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
titlestringTitle of this section. Uses the template section’s title and cannot be changed in execution. At least 1 character.
descriptionstringDescription of this section. Uses the template section’s description and cannot be changed in execution.
templateCommitIdstringIf set, the commit ID of the procedure template this section is based on. Otherwise, the section is based on the template commit specified at the top level of the execution.
stepProcedureExecutionStepNodeExecution steps are the interactive steps in a procedure.
Fields of
ProcedureExecutionStepNodeidstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
isOutdatedbooleanExecution steps become “outdated” once any upstream steps are re-run An outdated execution step should not be further modified.
stateExecutionStepStateThe current status of the step along with metadata about the status transitions.
Fields of
ExecutionStepState- one of 6 fields
notStartedExecutionStepNotStarted
inProgressExecutionStepInProgress
Fields of
ExecutionStepInProgressstartedAtstring (date-time)
startedBystring
submittedExecutionStepSubmitted
Fields of
ExecutionStepSubmittedstartedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
skippedExecutionStepSkippedTerminal states below
Fields of
ExecutionStepSkippedskippedAtstring (date-time)
skippedBystring
skipReasonstring
startedAtstring (date-time)Optional because a step can be skipped from the NOT_STARTED state before these are set
startedBystring
submittedAtstring (date-time)Optional because a step can be skipped from the IN_PROGRESS state before these are set
submittedBystring
succeededExecutionStepSucceeded
Fields of
ExecutionStepSucceededstartedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
succeededAtstring (date-time)
succeededBystring
erroredExecutionStepErrored
Fields of
ExecutionStepErroredstartedAtstring (date-time)Optional because a step can reach ERRORED without having been started
startedBystring
submittedAtstring (date-time)Optional because a step can be errored before being submitted
submittedBystring
erroredAtstring (date-time)
erroredBystring
errorstring
skippedAtstring (date-time)Optional because a step could be skipped but then error while running completion actions
skippedBystring
skipReasonstring
succeededAtstring (date-time)Optional because a step can succeed but then error while running completion actions
succeededBystring
valueStepContentValueThe current value for the content of the step.
Fields of
StepContentValue- one of
form,startIngest,selectOrCreateAsset,wait
formFormStepValue
Fields of
FormStepValuefieldsarray ofFormFieldValue
Fields of
FormFieldValue- one of 9 fields
Request
curl "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>" \ -H "Authorization: Bearer <api key>"
import requests response = requests.get( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>", headers={"Authorization": "Bearer <api key>"}, ) response.raise_for_status() print(response.json())
import httpx response = httpx.get( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>", headers={"Authorization": "Bearer <api key>"}, ) response.raise_for_status() print(response.json())
import asyncio import aiohttp async def main() -> None: async with aiohttp.ClientSession() as session: async with session.get( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>", headers={"Authorization": "Bearer <api key>"}, ) as response: response.raise_for_status() print(await response.json()) asyncio.run(main())
Response:
200{ "procedureExecution": { "rid": "<rid>", "metadata": { "rid": "<rid>", "procedureRid": "<procedure rid>", "procedureCommitId": "<procedure commit id>", "title": "<title>", "description": "<description>", "labels": [ "<labels>" ], "properties": { "<key>": "<value>" }, "createdBy": "<created by>", "createdAt": "2026-01-01T00:00:00Z", "updatedBy": "<updated by>", "updatedAt": "2026-01-01T00:00:00Z", "startedAt": "2026-01-01T00:00:00Z", "startedBy": "<started by>", "finishedAt": "2026-01-01T00:00:00Z", "finishedBy": "<finished by>", "abortedAt": "2026-01-01T00:00:00Z", "abortedBy": "<aborted by>", "failedAt": "2026-01-01T00:00:00Z", "failedBy": "<failed by>", "failedReason": "<failed reason>", "assetRids": [ "<asset rids>" ], "isArchived": true }, "state": { "globalFields": { "<key>": { "assetRid": "<asset rid>" } }, "nodes": { "<key>": { "section": { "id": "<id>", "templateNodeId": "<template node id>", "title": "<title>", "description": "<description>", "templateCommitId": "<template commit id>" } } }, "sectionEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } }, "stepEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } } } }, "displayGraph": { "topLevelNodes": [ "<top level nodes>" ], "sectionToSortedChildren": { "<key>": { "nodeIds": [ "<node ids>" ] } } } }
Update procedure execution metadata#
PUT
/procedures/v1/executions/{procedureExecutionRid}/metadataUpdate the metadata of a procedure execution
Path parameters
procedureExecutionRidstring required
Body
titlestring
descriptionstring
commitIdstring
labelsLabelUpdateWrapper
Fields of
LabelUpdateWrapperlabelsarray of string
propertiesPropertyUpdateWrapper
Fields of
PropertyUpdateWrapperpropertiesmap of string to string
Response
metadataProcedureExecutionMetadata
Fields of
ProcedureExecutionMetadataridstring
procedureRidstringThe procedure template rid this execution is based on.
procedureCommitIdstringThe commit ID of the procedure template this execution is based on. This can be overridden at the node level for individual nodes.
titlestringAt least 1 character.
descriptionstring
labelsarray of string
propertiesmap of string to string
createdBystring
createdAtstring (date-time)
updatedBystring
updatedAtstring (date-time)
startedAtstring (date-time)Will be unset until the execution transitions from NOT_STARTED to IN_PROGRESS.
startedBystring
finishedAtstring (date-time)Will be unset until the execution transitions from IN_PROGRESS to a terminal state.
finishedBystring
abortedAtstring (date-time)Will be true/set if the execution is the ABORTED terminal state.
abortedBystring
failedAtstring (date-time)Will be set if the execution is in the ERRORED terminal state.
failedBystring
failedReasonstring
assetRidsarray of stringAssets which this execution has acted on in completed steps (e.g. through an event creation action).
isArchivedboolean
Request
curl -X PUT "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/metadata" \ -H "Authorization: Bearer <api key>" \ -H "Content-Type: application/json" \ --data '{ "title": "<title>", "description": "<description>", "commitId": "<commit id>", "labels": { "labels": [ "<labels>" ] }, "properties": { "properties": { "<key>": "<value>" } } }'
import requests response = requests.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/metadata", headers={"Authorization": "Bearer <api key>"}, json={ "title": "<title>", "description": "<description>", "commitId": "<commit id>", "labels": {"labels": ["<labels>"]}, "properties": {"properties": {"<key>": "<value>"}}, }, ) response.raise_for_status() print(response.json())
import httpx response = httpx.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/metadata", headers={"Authorization": "Bearer <api key>"}, json={ "title": "<title>", "description": "<description>", "commitId": "<commit id>", "labels": {"labels": ["<labels>"]}, "properties": {"properties": {"<key>": "<value>"}}, }, ) response.raise_for_status() print(response.json())
import asyncio import aiohttp async def main() -> None: async with aiohttp.ClientSession() as session: async with session.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/metadata", headers={"Authorization": "Bearer <api key>"}, json={ "title": "<title>", "description": "<description>", "commitId": "<commit id>", "labels": {"labels": ["<labels>"]}, "properties": {"properties": {"<key>": "<value>"}}, }, ) as response: response.raise_for_status() print(await response.json()) asyncio.run(main())
Response:
200{ "metadata": { "rid": "<rid>", "procedureRid": "<procedure rid>", "procedureCommitId": "<procedure commit id>", "title": "<title>", "description": "<description>", "labels": [ "<labels>" ], "properties": { "<key>": "<value>" }, "createdBy": "<created by>", "createdAt": "2026-01-01T00:00:00Z", "updatedBy": "<updated by>", "updatedAt": "2026-01-01T00:00:00Z", "startedAt": "2026-01-01T00:00:00Z", "startedBy": "<started by>", "finishedAt": "2026-01-01T00:00:00Z", "finishedBy": "<finished by>", "abortedAt": "2026-01-01T00:00:00Z", "abortedBy": "<aborted by>", "failedAt": "2026-01-01T00:00:00Z", "failedBy": "<failed by>", "failedReason": "<failed reason>", "assetRids": [ "<asset rids>" ], "isArchived": true } }
Update step channel capture status#
PUT
/procedures/v1/executions/{procedureExecutionRid}/steps/{stepId}/channel-capture-statusCalled by the backend (channel capture executor) to merge a single channel-capture status into a step’s channel_capture_statuses. Identity is (output_field_id, capture_moment); existing entries for that identity are replaced. Statuses are written incrementally as captures progress (in_progress -> terminal), so this RPC is expected to be called multiple times per capture.
Path parameters
procedureExecutionRidstring required
stepIdstring requiredThe unique identifier of the execution step to update. At least 1 character.
Body
channelCaptureStatusChannelCaptureStatusThe status to merge into the step’s channel_capture_statuses, identified by (output_field_id, capture_moment). Replaces any previously written entry with the same identity.
Fields of
ChannelCaptureStatusoutputFieldIdstringThe output_field_id of the capture. Used together with capture_moment to identify which capture this status refers to. At least 1 character.
captureMomentCaptureMomentWhich step lifecycle moment this capture corresponds to. A given output_field_id may be captured at both step start and step completion, in which case there will be one ChannelCaptureStatus entry per moment. Must be a defined, non-UNSPECIFIED CaptureMoment — capture_moment is half of the identity key used for merging, so accepting the zero value would produce a bogus key.
Values of
CaptureMomentCAPTURE_MOMENT_UNSPECIFIEDRequired zero-value enum sentinel. Do not include this in capture_moments.
CAPTURE_MOMENT_STEP_START
CAPTURE_MOMENT_STEP_COMPLETION
- one of
inProgress,succeeded,failed,skippedrequired
inProgressChannelCaptureInProgress
Fields of
ChannelCaptureInProgressstartedAtstring (date-time)
succeededChannelCaptureSucceeded
Fields of
ChannelCaptureSucceededstartedAtstring (date-time)
capturedAtstring (date-time)
valueCapturedValuerequired
Fields of
CapturedValue- one of
doubleValue,intValue,boolValue,stringValuerequired
doubleValuenumber
intValuestring (int64)
boolValueboolean
stringValuestring
- one of
failedChannelCaptureFailed
Fields of
ChannelCaptureFailedstartedAtstring (date-time)
failedAtstring (date-time)
reasonChannelCaptureFailureReason
Values of
ChannelCaptureFailureReasonCHANNEL_CAPTURE_FAILURE_REASON_UNSPECIFIED
CHANNEL_CAPTURE_FAILURE_REASON_DATA_SOURCE_NOT_FOUNDThe channel’s data_source_ref could not be resolved to a concrete data source at execution time (e.g. the named ref is not present in the execution’s data scopes or run data sources).
CHANNEL_CAPTURE_FAILURE_REASON_CHANNEL_NOT_FOUNDThe data source was resolved but the named channel (with the configured tags, if any) does not exist on it, or its metadata could not be fetched.
CHANNEL_CAPTURE_FAILURE_REASON_UNSUPPORTED_CHANNEL_TYPEThe channel’s data type cannot be represented by CapturedValue, or the channel’s data type is unset. Permanent for this channel — re-running will not help.
CHANNEL_CAPTURE_FAILURE_REASON_TIMEOUT_NO_DATANo data point arrived within the capture timeout window (subscription opened but yielded no value before the deadline).
CHANNEL_CAPTURE_FAILURE_REASON_INTERNAL_ERRORCatch-all for backend / infrastructure failures that prevented capture — e.g. websocket connect/subscribe/stream failure, missing websocket configuration, downstream event creation failure, interrupt, or any other unexpected failure. See error_message for the specific cause.
errorMessagestringFree-text detail. Must not contain unsafe content — same conventions as other user-visible error_message fields on procedure executions. Capped to bound payload size; truncate at the producer if a longer detail is available. At most 4,096 characters.
skippedChannelCaptureSkipped
Fields of
ChannelCaptureSkippedskippedAtstring (date-time)
reasonChannelCaptureSkipReason
Values of
ChannelCaptureSkipReasonCHANNEL_CAPTURE_SKIP_REASON_UNSPECIFIED
CHANNEL_CAPTURE_SKIP_REASON_RUN_SCOPED_UNSUPPORTEDThe capture targets a run-scoped channel locator, which is not yet supported.
Response
procedureExecutionProcedureExecution
Fields of
ProcedureExecutionridstring
metadataProcedureExecutionMetadata
Fields of
ProcedureExecutionMetadataridstring
procedureRidstringThe procedure template rid this execution is based on.
procedureCommitIdstringThe commit ID of the procedure template this execution is based on. This can be overridden at the node level for individual nodes.
titlestringAt least 1 character.
descriptionstring
labelsarray of string
propertiesmap of string to string
createdBystring
createdAtstring (date-time)
updatedBystring
updatedAtstring (date-time)
startedAtstring (date-time)Will be unset until the execution transitions from NOT_STARTED to IN_PROGRESS.
startedBystring
finishedAtstring (date-time)Will be unset until the execution transitions from IN_PROGRESS to a terminal state.
finishedBystring
abortedAtstring (date-time)Will be true/set if the execution is the ABORTED terminal state.
abortedBystring
failedAtstring (date-time)Will be set if the execution is in the ERRORED terminal state.
failedBystring
failedReasonstring
assetRidsarray of stringAssets which this execution has acted on in completed steps (e.g. through an event creation action).
isArchivedboolean
stateProcedureExecutionState
Fields of
ProcedureExecutionStateglobalFieldsmap of string toFieldOutputThe current values for the global fields in the procedure.
Fields of
FieldOutput- one of 10 fields
assetRidstringIf a global field is not yet defined, I think it’s just not present in the global_fields map option (buf.validate.oneof) = {required: true};
stringValuestring
doubleValuenumber
booleanValueboolean
intValuestring (int64)
stringsValueStrings
Fields of
Stringsvaluesarray of string
ingestJobRidstring
runRidstring
fileUploadValueFileUploadFieldValue
Fields of
FileUploadFieldValues3UploadS3UploadFileValue
Fields of
S3UploadFileValues3PathstringThe S3 path where the uploaded file is stored At least 1 character.
fileNamestringThe original filename of the uploaded file At least 1 character.
fileTypestringThe MIME type of the uploaded file Following the convention of https://developer.mozilla.org/en-US/docs/Web/API/Blob/type (from which the File api inherits, we will accept an empty string)
multiFileUploadValueMultiFileUploadFieldValue
Fields of
MultiFileUploadFieldValueuploadsarray ofFileUploadFieldValueThe list of uploads
nodesmap of string toProcedureExecutionNodeA map from execution node ID to the execution node.
Fields of
ProcedureExecutionNode- one of
section,step
sectionProcedureExecutionSectionNodeA section node is a visual grouping of other sections and steps. Execution sections are static and do not have execution state.
Fields of
ProcedureExecutionSectionNodeidstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
titlestringTitle of this section. Uses the template section’s title and cannot be changed in execution. At least 1 character.
descriptionstringDescription of this section. Uses the template section’s description and cannot be changed in execution.
templateCommitIdstringIf set, the commit ID of the procedure template this section is based on. Otherwise, the section is based on the template commit specified at the top level of the execution.
stepProcedureExecutionStepNodeExecution steps are the interactive steps in a procedure.
Fields of
ProcedureExecutionStepNodeidstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
isOutdatedbooleanExecution steps become “outdated” once any upstream steps are re-run An outdated execution step should not be further modified.
stateExecutionStepStateThe current status of the step along with metadata about the status transitions.
Fields of
ExecutionStepState- one of 6 fields
notStartedExecutionStepNotStarted
inProgressExecutionStepInProgress
Fields of
ExecutionStepInProgressstartedAtstring (date-time)
startedBystring
submittedExecutionStepSubmitted
Fields of
ExecutionStepSubmittedstartedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
skippedExecutionStepSkippedTerminal states below
Fields of
ExecutionStepSkippedskippedAtstring (date-time)
skippedBystring
skipReasonstring
startedAtstring (date-time)Optional because a step can be skipped from the NOT_STARTED state before these are set
startedBystring
submittedAtstring (date-time)Optional because a step can be skipped from the IN_PROGRESS state before these are set
submittedBystring
succeededExecutionStepSucceeded
Fields of
ExecutionStepSucceededstartedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
succeededAtstring (date-time)
succeededBystring
erroredExecutionStepErrored
Fields of
ExecutionStepErroredstartedAtstring (date-time)Optional because a step can reach ERRORED without having been started
startedBystring
submittedAtstring (date-time)Optional because a step can be errored before being submitted
submittedBystring
erroredAtstring (date-time)
erroredBystring
errorstring
skippedAtstring (date-time)Optional because a step could be skipped but then error while running completion actions
skippedBystring
skipReasonstring
succeededAtstring (date-time)Optional because a step can succeed but then error while running completion actions
succeededBystring
valueStepContentValueThe current value for the content of the step.
Fields of
StepContentValue- one of
form,startIngest,selectOrCreateAsset,wait
formFormStepValue
Fields of
FormStepValuefieldsarray ofFormFieldValue
Fields of
FormFieldValue- one of 9 fields
Request
curl -X PUT "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/steps/<step id>/channel-capture-status" \ -H "Authorization: Bearer <api key>" \ -H "Content-Type: application/json" \ --data '{ "channelCaptureStatus": { "outputFieldId": "<output field id>", "captureMoment": "CAPTURE_MOMENT_STEP_START", "inProgress": { "startedAt": "2026-01-01T00:00:00Z" } } }'
import requests response = requests.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/steps/<step id>/channel-capture-status", headers={"Authorization": "Bearer <api key>"}, json={ "channelCaptureStatus": { "outputFieldId": "<output field id>", "captureMoment": "CAPTURE_MOMENT_STEP_START", "inProgress": {"startedAt": "2026-01-01T00:00:00Z"}, }, }, ) response.raise_for_status() print(response.json())
import httpx response = httpx.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/steps/<step id>/channel-capture-status", headers={"Authorization": "Bearer <api key>"}, json={ "channelCaptureStatus": { "outputFieldId": "<output field id>", "captureMoment": "CAPTURE_MOMENT_STEP_START", "inProgress": {"startedAt": "2026-01-01T00:00:00Z"}, }, }, ) response.raise_for_status() print(response.json())
import asyncio import aiohttp async def main() -> None: async with aiohttp.ClientSession() as session: async with session.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/steps/<step id>/channel-capture-status", headers={"Authorization": "Bearer <api key>"}, json={ "channelCaptureStatus": { "outputFieldId": "<output field id>", "captureMoment": "CAPTURE_MOMENT_STEP_START", "inProgress": {"startedAt": "2026-01-01T00:00:00Z"}, }, }, ) as response: response.raise_for_status() print(await response.json()) asyncio.run(main())
Response:
200{ "procedureExecution": { "rid": "<rid>", "metadata": { "rid": "<rid>", "procedureRid": "<procedure rid>", "procedureCommitId": "<procedure commit id>", "title": "<title>", "description": "<description>", "labels": [ "<labels>" ], "properties": { "<key>": "<value>" }, "createdBy": "<created by>", "createdAt": "2026-01-01T00:00:00Z", "updatedBy": "<updated by>", "updatedAt": "2026-01-01T00:00:00Z", "startedAt": "2026-01-01T00:00:00Z", "startedBy": "<started by>", "finishedAt": "2026-01-01T00:00:00Z", "finishedBy": "<finished by>", "abortedAt": "2026-01-01T00:00:00Z", "abortedBy": "<aborted by>", "failedAt": "2026-01-01T00:00:00Z", "failedBy": "<failed by>", "failedReason": "<failed reason>", "assetRids": [ "<asset rids>" ], "isArchived": true }, "state": { "globalFields": { "<key>": { "assetRid": "<asset rid>" } }, "nodes": { "<key>": { "section": { "id": "<id>", "templateNodeId": "<template node id>", "title": "<title>", "description": "<description>", "templateCommitId": "<template commit id>" } } }, "sectionEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } }, "stepEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } } } } }
Repeat step#
PUT
/procedures/v1/executions/{procedureExecutionRid}/steps/{stepId}/repeatRepeat a previously finished step in a procedure execution. This can only be done if the given step is in state SUCCEEDED, SKIPPED or ERRORED. Other state transitions are managed by the backend.
Path parameters
procedureExecutionRidstring required
stepIdstring requiredThe unique identifier of the execution step to repeat/duplicate. At least 1 character.
Body
behaviorRepeatStepBehaviorBehavior for how repeating the step will affect dependants.
Values of
RepeatStepBehaviorREPEAT_STEP_BEHAVIOR_UNSPECIFIED
REPEAT_STEP_BEHAVIOR_ISOLATEDThe targeted step will be repeated, but the original graph will be preserved and only direct children will be checked for state updates
valueStepContentValueSetting the value of the step’s content.
Fields of
StepContentValue- one of
form,startIngest,selectOrCreateAsset,waitrequired
formFormStepValue
Fields of
FormStepValuefieldsarray ofFormFieldValue
Fields of
FormFieldValue- one of 9 fields required
assetAssetFieldValue
Fields of
AssetFieldValueassetReferenceAssetReference
Fields of
AssetReference- one of
rid,fieldIdrequired
ridstringa constant AssetRid
fieldIdstringThe field reference that will contain an AssetRid value. The execution will fail if the field is not set but the value is accessed.
- one of
checkboxCheckboxFieldValue
Fields of
CheckboxFieldValuevaluebooleanDefault to false if not set
textTextFieldValue
Fields of
TextFieldValuevaluestringDefault to empty string if not set
intIntFieldValue
Fields of
IntFieldValuevaluestring (int64)
doubleDoubleFieldValue
Fields of
DoubleFieldValuevaluenumber
singleEnumSingleEnumFieldValue
Fields of
SingleEnumFieldValuevaluestringDefault to empty string if not set
multiEnumMultiEnumFieldValue
Fields of
MultiEnumFieldValuevaluearray of stringDefault to empty list if not set
fileUploadFileUploadFieldValue
Fields of
FileUploadFieldValues3UploadS3UploadFileValue
Fields of
S3UploadFileValues3PathstringThe S3 path where the uploaded file is stored At least 1 character.
fileNamestringThe original filename of the uploaded file At least 1 character.
fileTypestringThe MIME type of the uploaded file Following the convention of https://developer.mozilla.org/en-US/docs/Web/API/Blob/type (from which the File api inherits, we will accept an empty string)
multiFileUploadMultiFileUploadFieldValue
Fields of
MultiFileUploadFieldValueuploadsarray ofFileUploadFieldValueThe list of uploads
startIngestStartIngestStepValue
Fields of
StartIngestStepValueingestJobRidstringThe RID of the ingest job that was started by the client. This must be populated for the step to be submitted.
selectOrCreateAssetSelectOrCreateAssetStepValue
Fields of
SelectOrCreateAssetStepValueassetReferenceAssetReferenceThe asset that was selected / created by the client. This must be populated for the step to be submitted.
waitWaitStepValue…
- one of
autoProceedConfigAutoProceedConfigSet whether the step has auto-proceed enabled.
targetStateTargetStepStateRequestSetting the state of the step. This will occur after the other updates in this request.
Fields of
TargetStepStateRequest- one of
inProgress,submitted,skipped,erroredrequired
inProgressStepInProgressRequest
submittedStepSubmittedRequest
skippedStepSkippedRequest
Fields of
StepSkippedRequestskipReasonstring
erroredStepErroredRequest
Fields of
StepErroredRequesterrorReasonstring
- one of
Response
procedureExecutionProcedureExecution
Fields of
ProcedureExecutionridstring
metadataProcedureExecutionMetadata
Fields of
ProcedureExecutionMetadataridstring
procedureRidstringThe procedure template rid this execution is based on.
procedureCommitIdstringThe commit ID of the procedure template this execution is based on. This can be overridden at the node level for individual nodes.
titlestringAt least 1 character.
descriptionstring
labelsarray of string
propertiesmap of string to string
createdBystring
createdAtstring (date-time)
updatedBystring
updatedAtstring (date-time)
startedAtstring (date-time)Will be unset until the execution transitions from NOT_STARTED to IN_PROGRESS.
startedBystring
finishedAtstring (date-time)Will be unset until the execution transitions from IN_PROGRESS to a terminal state.
finishedBystring
abortedAtstring (date-time)Will be true/set if the execution is the ABORTED terminal state.
abortedBystring
failedAtstring (date-time)Will be set if the execution is in the ERRORED terminal state.
failedBystring
failedReasonstring
assetRidsarray of stringAssets which this execution has acted on in completed steps (e.g. through an event creation action).
isArchivedboolean
stateProcedureExecutionState
Fields of
ProcedureExecutionStateglobalFieldsmap of string toFieldOutputThe current values for the global fields in the procedure.
Fields of
FieldOutput- one of 10 fields
assetRidstringIf a global field is not yet defined, I think it’s just not present in the global_fields map option (buf.validate.oneof) = {required: true};
stringValuestring
doubleValuenumber
booleanValueboolean
intValuestring (int64)
stringsValueStrings
Fields of
Stringsvaluesarray of string
ingestJobRidstring
runRidstring
fileUploadValueFileUploadFieldValue
Fields of
FileUploadFieldValues3UploadS3UploadFileValue
Fields of
S3UploadFileValues3PathstringThe S3 path where the uploaded file is stored At least 1 character.
fileNamestringThe original filename of the uploaded file At least 1 character.
fileTypestringThe MIME type of the uploaded file Following the convention of https://developer.mozilla.org/en-US/docs/Web/API/Blob/type (from which the File api inherits, we will accept an empty string)
multiFileUploadValueMultiFileUploadFieldValue
Fields of
MultiFileUploadFieldValueuploadsarray ofFileUploadFieldValueThe list of uploads
nodesmap of string toProcedureExecutionNodeA map from execution node ID to the execution node.
Fields of
ProcedureExecutionNode- one of
section,step
sectionProcedureExecutionSectionNodeA section node is a visual grouping of other sections and steps. Execution sections are static and do not have execution state.
Fields of
ProcedureExecutionSectionNodeidstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
titlestringTitle of this section. Uses the template section’s title and cannot be changed in execution. At least 1 character.
descriptionstringDescription of this section. Uses the template section’s description and cannot be changed in execution.
templateCommitIdstringIf set, the commit ID of the procedure template this section is based on. Otherwise, the section is based on the template commit specified at the top level of the execution.
stepProcedureExecutionStepNodeExecution steps are the interactive steps in a procedure.
Fields of
ProcedureExecutionStepNodeidstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
isOutdatedbooleanExecution steps become “outdated” once any upstream steps are re-run An outdated execution step should not be further modified.
stateExecutionStepStateThe current status of the step along with metadata about the status transitions.
Fields of
ExecutionStepState- one of 6 fields
notStartedExecutionStepNotStarted
inProgressExecutionStepInProgress
Fields of
ExecutionStepInProgressstartedAtstring (date-time)
startedBystring
submittedExecutionStepSubmitted
Fields of
ExecutionStepSubmittedstartedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
skippedExecutionStepSkippedTerminal states below
Fields of
ExecutionStepSkippedskippedAtstring (date-time)
skippedBystring
skipReasonstring
startedAtstring (date-time)Optional because a step can be skipped from the NOT_STARTED state before these are set
startedBystring
submittedAtstring (date-time)Optional because a step can be skipped from the IN_PROGRESS state before these are set
submittedBystring
succeededExecutionStepSucceeded
Fields of
ExecutionStepSucceededstartedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
succeededAtstring (date-time)
succeededBystring
erroredExecutionStepErrored
Fields of
ExecutionStepErroredstartedAtstring (date-time)Optional because a step can reach ERRORED without having been started
startedBystring
submittedAtstring (date-time)Optional because a step can be errored before being submitted
submittedBystring
erroredAtstring (date-time)
erroredBystring
errorstring
skippedAtstring (date-time)Optional because a step could be skipped but then error while running completion actions
skippedBystring
skipReasonstring
succeededAtstring (date-time)Optional because a step can succeed but then error while running completion actions
succeededBystring
valueStepContentValueThe current value for the content of the step.
Fields of
StepContentValue- one of
form,startIngest,selectOrCreateAsset,wait
formFormStepValue
Fields of
FormStepValuefieldsarray ofFormFieldValue
Fields of
FormFieldValue- one of 9 fields
Request
curl -X PUT "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/steps/<step id>/repeat" \ -H "Authorization: Bearer <api key>" \ -H "Content-Type: application/json" \ --data '{ "behavior": "REPEAT_STEP_BEHAVIOR_ISOLATED", "value": { "form": { "fields": [ { "asset": { "assetReference": { "rid": "<rid>" } } } ] } }, "autoProceedConfig": { "disabled": {} }, "targetState": { "inProgress": {} } }'
import requests response = requests.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/steps/<step id>/repeat", headers={"Authorization": "Bearer <api key>"}, json={ "behavior": "REPEAT_STEP_BEHAVIOR_ISOLATED", "value": {"form": {"fields": [{"asset": {"assetReference": {"rid": "<rid>"}}}]}}, "autoProceedConfig": {"disabled": {}}, "targetState": {"inProgress": {}}, }, ) response.raise_for_status() print(response.json())
import httpx response = httpx.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/steps/<step id>/repeat", headers={"Authorization": "Bearer <api key>"}, json={ "behavior": "REPEAT_STEP_BEHAVIOR_ISOLATED", "value": {"form": {"fields": [{"asset": {"assetReference": {"rid": "<rid>"}}}]}}, "autoProceedConfig": {"disabled": {}}, "targetState": {"inProgress": {}}, }, ) response.raise_for_status() print(response.json())
import asyncio import aiohttp async def main() -> None: async with aiohttp.ClientSession() as session: async with session.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/steps/<step id>/repeat", headers={"Authorization": "Bearer <api key>"}, json={ "behavior": "REPEAT_STEP_BEHAVIOR_ISOLATED", "value": { "form": { "fields": [{"asset": {"assetReference": {"rid": "<rid>"}}}], }, }, "autoProceedConfig": {"disabled": {}}, "targetState": {"inProgress": {}}, }, ) as response: response.raise_for_status() print(await response.json()) asyncio.run(main())
Response:
200{ "procedureExecution": { "rid": "<rid>", "metadata": { "rid": "<rid>", "procedureRid": "<procedure rid>", "procedureCommitId": "<procedure commit id>", "title": "<title>", "description": "<description>", "labels": [ "<labels>" ], "properties": { "<key>": "<value>" }, "createdBy": "<created by>", "createdAt": "2026-01-01T00:00:00Z", "updatedBy": "<updated by>", "updatedAt": "2026-01-01T00:00:00Z", "startedAt": "2026-01-01T00:00:00Z", "startedBy": "<started by>", "finishedAt": "2026-01-01T00:00:00Z", "finishedBy": "<finished by>", "abortedAt": "2026-01-01T00:00:00Z", "abortedBy": "<aborted by>", "failedAt": "2026-01-01T00:00:00Z", "failedBy": "<failed by>", "failedReason": "<failed reason>", "assetRids": [ "<asset rids>" ], "isArchived": true }, "state": { "globalFields": { "<key>": { "assetRid": "<asset rid>" } }, "nodes": { "<key>": { "section": { "id": "<id>", "templateNodeId": "<template node id>", "title": "<title>", "description": "<description>", "templateCommitId": "<template commit id>" } } }, "sectionEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } }, "stepEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } } } } }
Update step#
PUT
/procedures/v1/executions/{procedureExecutionRid}/steps/{stepId}/updateUpdate the status of a step in a procedure execution. This can only be done if the step is NOT_STARTED, IN_PROGRESS, or SUBMITTED. Other state transitions are managed by the backend.
Path parameters
procedureExecutionRidstring required
stepIdstring requiredThe unique identifier of the execution step to update. At least 1 character.
Body
valueStepContentValueSetting the value of the step’s content. This is only allowed if the step is NOT_STARTED or IN_PROGRESS.
Fields of
StepContentValue- one of
form,startIngest,selectOrCreateAsset,waitrequired
formFormStepValue
Fields of
FormStepValuefieldsarray ofFormFieldValue
Fields of
FormFieldValue- one of 9 fields required
assetAssetFieldValue
Fields of
AssetFieldValueassetReferenceAssetReference
Fields of
AssetReference- one of
rid,fieldIdrequired
ridstringa constant AssetRid
fieldIdstringThe field reference that will contain an AssetRid value. The execution will fail if the field is not set but the value is accessed.
- one of
checkboxCheckboxFieldValue
Fields of
CheckboxFieldValuevaluebooleanDefault to false if not set
textTextFieldValue
Fields of
TextFieldValuevaluestringDefault to empty string if not set
intIntFieldValue
Fields of
IntFieldValuevaluestring (int64)
doubleDoubleFieldValue
Fields of
DoubleFieldValuevaluenumber
singleEnumSingleEnumFieldValue
Fields of
SingleEnumFieldValuevaluestringDefault to empty string if not set
multiEnumMultiEnumFieldValue
Fields of
MultiEnumFieldValuevaluearray of stringDefault to empty list if not set
fileUploadFileUploadFieldValue
Fields of
FileUploadFieldValues3UploadS3UploadFileValue
Fields of
S3UploadFileValues3PathstringThe S3 path where the uploaded file is stored At least 1 character.
fileNamestringThe original filename of the uploaded file At least 1 character.
fileTypestringThe MIME type of the uploaded file Following the convention of https://developer.mozilla.org/en-US/docs/Web/API/Blob/type (from which the File api inherits, we will accept an empty string)
multiFileUploadMultiFileUploadFieldValue
Fields of
MultiFileUploadFieldValueuploadsarray ofFileUploadFieldValueThe list of uploads
startIngestStartIngestStepValue
Fields of
StartIngestStepValueingestJobRidstringThe RID of the ingest job that was started by the client. This must be populated for the step to be submitted.
selectOrCreateAssetSelectOrCreateAssetStepValue
Fields of
SelectOrCreateAssetStepValueassetReferenceAssetReferenceThe asset that was selected / created by the client. This must be populated for the step to be submitted.
waitWaitStepValue…
- one of
autoProceedConfigAutoProceedConfigSet whether the step has auto-proceed enabled. This is only allowed if the step is NOT_STARTED. or IN_PROGRESS.
targetStateTargetStepStateRequestSetting the state of the step. This will occur after the other updates in this request.
Fields of
TargetStepStateRequest- one of
inProgress,submitted,skipped,erroredrequired
inProgressStepInProgressRequest
submittedStepSubmittedRequest
skippedStepSkippedRequest
Fields of
StepSkippedRequestskipReasonstring
erroredStepErroredRequest
Fields of
StepErroredRequesterrorReasonstring
- one of
Response
procedureExecutionProcedureExecution
Fields of
ProcedureExecutionridstring
metadataProcedureExecutionMetadata
Fields of
ProcedureExecutionMetadataridstring
procedureRidstringThe procedure template rid this execution is based on.
procedureCommitIdstringThe commit ID of the procedure template this execution is based on. This can be overridden at the node level for individual nodes.
titlestringAt least 1 character.
descriptionstring
labelsarray of string
propertiesmap of string to string
createdBystring
createdAtstring (date-time)
updatedBystring
updatedAtstring (date-time)
startedAtstring (date-time)Will be unset until the execution transitions from NOT_STARTED to IN_PROGRESS.
startedBystring
finishedAtstring (date-time)Will be unset until the execution transitions from IN_PROGRESS to a terminal state.
finishedBystring
abortedAtstring (date-time)Will be true/set if the execution is the ABORTED terminal state.
abortedBystring
failedAtstring (date-time)Will be set if the execution is in the ERRORED terminal state.
failedBystring
failedReasonstring
assetRidsarray of stringAssets which this execution has acted on in completed steps (e.g. through an event creation action).
isArchivedboolean
stateProcedureExecutionState
Fields of
ProcedureExecutionStateglobalFieldsmap of string toFieldOutputThe current values for the global fields in the procedure.
Fields of
FieldOutput- one of 10 fields
assetRidstringIf a global field is not yet defined, I think it’s just not present in the global_fields map option (buf.validate.oneof) = {required: true};
stringValuestring
doubleValuenumber
booleanValueboolean
intValuestring (int64)
stringsValueStrings
Fields of
Stringsvaluesarray of string
ingestJobRidstring
runRidstring
fileUploadValueFileUploadFieldValue
Fields of
FileUploadFieldValues3UploadS3UploadFileValue
Fields of
S3UploadFileValues3PathstringThe S3 path where the uploaded file is stored At least 1 character.
fileNamestringThe original filename of the uploaded file At least 1 character.
fileTypestringThe MIME type of the uploaded file Following the convention of https://developer.mozilla.org/en-US/docs/Web/API/Blob/type (from which the File api inherits, we will accept an empty string)
multiFileUploadValueMultiFileUploadFieldValue
Fields of
MultiFileUploadFieldValueuploadsarray ofFileUploadFieldValueThe list of uploads
nodesmap of string toProcedureExecutionNodeA map from execution node ID to the execution node.
Fields of
ProcedureExecutionNode- one of
section,step
sectionProcedureExecutionSectionNodeA section node is a visual grouping of other sections and steps. Execution sections are static and do not have execution state.
Fields of
ProcedureExecutionSectionNodeidstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
titlestringTitle of this section. Uses the template section’s title and cannot be changed in execution. At least 1 character.
descriptionstringDescription of this section. Uses the template section’s description and cannot be changed in execution.
templateCommitIdstringIf set, the commit ID of the procedure template this section is based on. Otherwise, the section is based on the template commit specified at the top level of the execution.
stepProcedureExecutionStepNodeExecution steps are the interactive steps in a procedure.
Fields of
ProcedureExecutionStepNodeidstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
isOutdatedbooleanExecution steps become “outdated” once any upstream steps are re-run An outdated execution step should not be further modified.
stateExecutionStepStateThe current status of the step along with metadata about the status transitions.
Fields of
ExecutionStepState- one of 6 fields
notStartedExecutionStepNotStarted
inProgressExecutionStepInProgress
Fields of
ExecutionStepInProgressstartedAtstring (date-time)
startedBystring
submittedExecutionStepSubmitted
Fields of
ExecutionStepSubmittedstartedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
skippedExecutionStepSkippedTerminal states below
Fields of
ExecutionStepSkippedskippedAtstring (date-time)
skippedBystring
skipReasonstring
startedAtstring (date-time)Optional because a step can be skipped from the NOT_STARTED state before these are set
startedBystring
submittedAtstring (date-time)Optional because a step can be skipped from the IN_PROGRESS state before these are set
submittedBystring
succeededExecutionStepSucceeded
Fields of
ExecutionStepSucceededstartedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
succeededAtstring (date-time)
succeededBystring
erroredExecutionStepErrored
Fields of
ExecutionStepErroredstartedAtstring (date-time)Optional because a step can reach ERRORED without having been started
startedBystring
submittedAtstring (date-time)Optional because a step can be errored before being submitted
submittedBystring
erroredAtstring (date-time)
erroredBystring
errorstring
skippedAtstring (date-time)Optional because a step could be skipped but then error while running completion actions
skippedBystring
skipReasonstring
succeededAtstring (date-time)Optional because a step can succeed but then error while running completion actions
succeededBystring
valueStepContentValueThe current value for the content of the step.
Fields of
StepContentValue- one of
form,startIngest,selectOrCreateAsset,wait
formFormStepValue
Fields of
FormStepValuefieldsarray ofFormFieldValue
Fields of
FormFieldValue- one of 9 fields
Request
curl -X PUT "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/steps/<step id>/update" \ -H "Authorization: Bearer <api key>" \ -H "Content-Type: application/json" \ --data '{ "value": { "form": { "fields": [ { "asset": { "assetReference": { "rid": "<rid>" } } } ] } }, "autoProceedConfig": { "disabled": {} }, "targetState": { "inProgress": {} } }'
import requests response = requests.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/steps/<step id>/update", headers={"Authorization": "Bearer <api key>"}, json={ "value": {"form": {"fields": [{"asset": {"assetReference": {"rid": "<rid>"}}}]}}, "autoProceedConfig": {"disabled": {}}, "targetState": {"inProgress": {}}, }, ) response.raise_for_status() print(response.json())
import httpx response = httpx.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/steps/<step id>/update", headers={"Authorization": "Bearer <api key>"}, json={ "value": {"form": {"fields": [{"asset": {"assetReference": {"rid": "<rid>"}}}]}}, "autoProceedConfig": {"disabled": {}}, "targetState": {"inProgress": {}}, }, ) response.raise_for_status() print(response.json())
import asyncio import aiohttp async def main() -> None: async with aiohttp.ClientSession() as session: async with session.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/steps/<step id>/update", headers={"Authorization": "Bearer <api key>"}, json={ "value": { "form": { "fields": [{"asset": {"assetReference": {"rid": "<rid>"}}}], }, }, "autoProceedConfig": {"disabled": {}}, "targetState": {"inProgress": {}}, }, ) as response: response.raise_for_status() print(await response.json()) asyncio.run(main())
Response:
200{ "procedureExecution": { "rid": "<rid>", "metadata": { "rid": "<rid>", "procedureRid": "<procedure rid>", "procedureCommitId": "<procedure commit id>", "title": "<title>", "description": "<description>", "labels": [ "<labels>" ], "properties": { "<key>": "<value>" }, "createdBy": "<created by>", "createdAt": "2026-01-01T00:00:00Z", "updatedBy": "<updated by>", "updatedAt": "2026-01-01T00:00:00Z", "startedAt": "2026-01-01T00:00:00Z", "startedBy": "<started by>", "finishedAt": "2026-01-01T00:00:00Z", "finishedBy": "<finished by>", "abortedAt": "2026-01-01T00:00:00Z", "abortedBy": "<aborted by>", "failedAt": "2026-01-01T00:00:00Z", "failedBy": "<failed by>", "failedReason": "<failed reason>", "assetRids": [ "<asset rids>" ], "isArchived": true }, "state": { "globalFields": { "<key>": { "assetRid": "<asset rid>" } }, "nodes": { "<key>": { "section": { "id": "<id>", "templateNodeId": "<template node id>", "title": "<title>", "description": "<description>", "templateCommitId": "<template commit id>" } } }, "sectionEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } }, "stepEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } } } } }
Update procedure execution#
PUT
/procedures/v1/executions/{procedureExecutionRid}/updateHeavy-handed update method for procedure execution.
Path parameters
procedureExecutionRidstring required
Body
titlestring
descriptionstring
commitIdstring
labelsLabelUpdateWrapper
Fields of
LabelUpdateWrapperlabelsarray of string
propertiesPropertyUpdateWrapper
Fields of
PropertyUpdateWrapperpropertiesmap of string to string
stateProcedureExecutionState
Fields of
ProcedureExecutionStateglobalFieldsmap of string toFieldOutputThe current values for the global fields in the procedure.
Fields of
FieldOutput- one of 10 fields
assetRidstringIf a global field is not yet defined, I think it’s just not present in the global_fields map option (buf.validate.oneof) = {required: true};
stringValuestring
doubleValuenumber
booleanValueboolean
intValuestring (int64)
stringsValueStrings
Fields of
Stringsvaluesarray of string
ingestJobRidstring
runRidstring
fileUploadValueFileUploadFieldValue
Fields of
FileUploadFieldValues3UploadS3UploadFileValue
Fields of
S3UploadFileValues3PathstringThe S3 path where the uploaded file is stored At least 1 character.
fileNamestringThe original filename of the uploaded file At least 1 character.
fileTypestringThe MIME type of the uploaded file Following the convention of https://developer.mozilla.org/en-US/docs/Web/API/Blob/type (from which the File api inherits, we will accept an empty string)
multiFileUploadValueMultiFileUploadFieldValue
Fields of
MultiFileUploadFieldValueuploadsarray ofFileUploadFieldValueThe list of uploads
nodesmap of string toProcedureExecutionNodeA map from execution node ID to the execution node.
Fields of
ProcedureExecutionNode- one of
section,steprequired
sectionProcedureExecutionSectionNodeA section node is a visual grouping of other sections and steps. Execution sections are static and do not have execution state.
Fields of
ProcedureExecutionSectionNodeidstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
titlestringTitle of this section. Uses the template section’s title and cannot be changed in execution. At least 1 character.
descriptionstringDescription of this section. Uses the template section’s description and cannot be changed in execution.
templateCommitIdstringIf set, the commit ID of the procedure template this section is based on. Otherwise, the section is based on the template commit specified at the top level of the execution.
stepProcedureExecutionStepNodeExecution steps are the interactive steps in a procedure.
Fields of
ProcedureExecutionStepNodeidstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
isOutdatedbooleanExecution steps become “outdated” once any upstream steps are re-run An outdated execution step should not be further modified.
stateExecutionStepStateThe current status of the step along with metadata about the status transitions.
Fields of
ExecutionStepState- one of 6 fields required
notStartedExecutionStepNotStarted
inProgressExecutionStepInProgress
Fields of
ExecutionStepInProgressstartedAtstring (date-time)
startedBystring
submittedExecutionStepSubmitted
Fields of
ExecutionStepSubmittedstartedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
skippedExecutionStepSkippedTerminal states below
Fields of
ExecutionStepSkippedskippedAtstring (date-time)
skippedBystring
skipReasonstring
startedAtstring (date-time)Optional because a step can be skipped from the NOT_STARTED state before these are set
startedBystring
submittedAtstring (date-time)Optional because a step can be skipped from the IN_PROGRESS state before these are set
submittedBystring
succeededExecutionStepSucceeded
Fields of
ExecutionStepSucceededstartedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
succeededAtstring (date-time)
succeededBystring
erroredExecutionStepErrored
Fields of
ExecutionStepErroredstartedAtstring (date-time)Optional because a step can reach ERRORED without having been started
startedBystring
submittedAtstring (date-time)Optional because a step can be errored before being submitted
submittedBystring
erroredAtstring (date-time)
erroredBystring
errorstring
skippedAtstring (date-time)Optional because a step could be skipped but then error while running completion actions
skippedBystring
skipReasonstring
succeededAtstring (date-time)Optional because a step can succeed but then error while running completion actions
succeededBystring
valueStepContentValueThe current value for the content of the step.
Fields of
StepContentValue- one of
form,startIngest,selectOrCreateAsset,waitrequired
formFormStepValue
Fields of
FormStepValuefieldsarray ofFormFieldValue
Fields of
FormFieldValue- one of 9 fields required
assetAssetFieldValue
Request
curl -X PUT "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/update" \ -H "Authorization: Bearer <api key>" \ -H "Content-Type: application/json" \ --data '{ "title": "<title>", "description": "<description>", "commitId": "<commit id>", "labels": { "labels": [ "<labels>" ] }, "properties": { "properties": { "<key>": "<value>" } }, "state": { "globalFields": { "<key>": { "assetRid": "<asset rid>" } }, "nodes": { "<key>": { "section": { "id": "<id>", "templateNodeId": "<template node id>", "title": "<title>", "description": "<description>", "templateCommitId": "<template commit id>" } } }, "sectionEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } }, "stepEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } } }, "isAborted": true, "startedAt": "2026-01-01T00:00:00Z", "finishedAt": "2026-01-01T00:00:00Z" }'
import requests response = requests.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/update", headers={"Authorization": "Bearer <api key>"}, json={ "title": "<title>", "description": "<description>", "commitId": "<commit id>", "labels": {"labels": ["<labels>"]}, "properties": {"properties": {"<key>": "<value>"}}, "state": { "globalFields": {"<key>": {"assetRid": "<asset rid>"}}, "nodes": { "<key>": { "section": { "id": "<id>", "templateNodeId": "<template node id>", "title": "<title>", "description": "<description>", "templateCommitId": "<template commit id>", }, }, }, "sectionEdges": {"<key>": {"nodeIds": ["<node ids>"]}}, "stepEdges": {"<key>": {"nodeIds": ["<node ids>"]}}, }, "isAborted": True, "startedAt": "2026-01-01T00:00:00Z", "finishedAt": "2026-01-01T00:00:00Z", }, ) response.raise_for_status() print(response.json())
import httpx response = httpx.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/update", headers={"Authorization": "Bearer <api key>"}, json={ "title": "<title>", "description": "<description>", "commitId": "<commit id>", "labels": {"labels": ["<labels>"]}, "properties": {"properties": {"<key>": "<value>"}}, "state": { "globalFields": {"<key>": {"assetRid": "<asset rid>"}}, "nodes": { "<key>": { "section": { "id": "<id>", "templateNodeId": "<template node id>", "title": "<title>", "description": "<description>", "templateCommitId": "<template commit id>", }, }, }, "sectionEdges": {"<key>": {"nodeIds": ["<node ids>"]}}, "stepEdges": {"<key>": {"nodeIds": ["<node ids>"]}}, }, "isAborted": True, "startedAt": "2026-01-01T00:00:00Z", "finishedAt": "2026-01-01T00:00:00Z", }, ) response.raise_for_status() print(response.json())
import asyncio import aiohttp async def main() -> None: async with aiohttp.ClientSession() as session: async with session.put( "https://api.gov.nominal.io/api/procedures/v1/executions/<procedure execution rid>/update", headers={"Authorization": "Bearer <api key>"}, json={ "title": "<title>", "description": "<description>", "commitId": "<commit id>", "labels": {"labels": ["<labels>"]}, "properties": {"properties": {"<key>": "<value>"}}, "state": { "globalFields": {"<key>": {"assetRid": "<asset rid>"}}, "nodes": { "<key>": { "section": { "id": "<id>", "templateNodeId": "<template node id>", "title": "<title>", "description": "<description>", "templateCommitId": "<template commit id>", }, }, }, "sectionEdges": {"<key>": {"nodeIds": ["<node ids>"]}}, "stepEdges": {"<key>": {"nodeIds": ["<node ids>"]}}, }, "isAborted": True, "startedAt": "2026-01-01T00:00:00Z", "finishedAt": "2026-01-01T00:00:00Z", }, ) as response: response.raise_for_status() print(await response.json()) asyncio.run(main())
Response:
200{ "procedureExecution": { "rid": "<rid>", "metadata": { "rid": "<rid>", "procedureRid": "<procedure rid>", "procedureCommitId": "<procedure commit id>", "title": "<title>", "description": "<description>", "labels": [ "<labels>" ], "properties": { "<key>": "<value>" }, "createdBy": "<created by>", "createdAt": "2026-01-01T00:00:00Z", "updatedBy": "<updated by>", "updatedAt": "2026-01-01T00:00:00Z", "startedAt": "2026-01-01T00:00:00Z", "startedBy": "<started by>", "finishedAt": "2026-01-01T00:00:00Z", "finishedBy": "<finished by>", "abortedAt": "2026-01-01T00:00:00Z", "abortedBy": "<aborted by>", "failedAt": "2026-01-01T00:00:00Z", "failedBy": "<failed by>", "failedReason": "<failed reason>", "assetRids": [ "<asset rids>" ], "isArchived": true }, "state": { "globalFields": { "<key>": { "assetRid": "<asset rid>" } }, "nodes": { "<key>": { "section": { "id": "<id>", "templateNodeId": "<template node id>", "title": "<title>", "description": "<description>", "templateCommitId": "<template commit id>" } } }, "sectionEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } }, "stepEdges": { "<key>": { "nodeIds": [ "<node ids>" ] } } } } }
Errors#
Errors shows how these errors are sent.
Each error’s
errorNameisNominalProceduresExecutionsV1:followed by its name below.Status
Name
Notes
400
ProcedureExecutionsServiceErrorInvalidGraphInvalid procedure graph
400
ProcedureExecutionsServiceErrorInvalidSearchTokenInvalid search token
400
ProcedureExecutionsServiceErrorInvalidStepTransitionInvalid step transition
400
ProcedureExecutionsServiceErrorInvalidStepUpdateInvalid step update
404
ProcedureExecutionsServiceErrorInvalidNodeInvalid node
404
ProcedureExecutionsServiceErrorNodeNotFoundNode not found
404
ProcedureExecutionsServiceErrorNotFoundProcedure execution not found
404
ProcedureExecutionsServiceErrorProcNotFoundProcedure not found
Types#
AndSuccessCondition#
conditionsarray ofSuccessConditionStatus
ApplyChecklistsResult#
An ApplyChecklists action results in a list of DataReviewRids if successful.
dataReviewRidsarray of string
ApplyWorkbookTemplatesResult#
An ApplyWorkbookTemplates action results in a list of workbook RIDs if successful.
workbookRidsarray of string
AssetFieldValue#
assetReferenceAssetReference
AssetReference#
A reference to a single asset
Set exactly one of the fields below.
- one of
rid,fieldIdrequired
ridstringa constant AssetRid
fieldIdstringThe field reference that will contain an AssetRid value. The execution will fail if the field is not set but the value is accessed.
AutoProceedConfig#
AutoProceedConfig is a configuration that determines whether a step should automatically proceed (submit the contents and check success_conditions) when some set of criteria are met. By default this will be
disabled.Set exactly one of the fields below.
- one of
disabled,enabledrequired
CapturedValue#
Set exactly one of the fields below.
- one of
doubleValue,intValue,boolValue,stringValuerequired
doubleValuenumber
intValuestring (int64)
boolValueboolean
stringValuestring
CaptureMoment#
When in the step lifecycle to capture a channel value.
CAPTURE_MOMENT_UNSPECIFIEDRequired zero-value enum sentinel. Do not include this in capture_moments.
CAPTURE_MOMENT_STEP_START
CAPTURE_MOMENT_STEP_COMPLETION
ChannelCaptureConfig#
Shared configuration for capturing a single channel value where the source channel is supplied by the parent config.
At execution time, the backend reads the channel’s value at the configured moment(s) and writes it into event metadata under dotted keys derived from output_field_id.
outputFieldIdstringBase field ID used to namespace event property keys (and downstream procedure outputs).
captureMomentsarray ofCaptureMomentWhen to capture relative to the step lifecycle. Empty means no capture occurs — at least one moment must be specified. No duplicates.
ChannelCaptureFailed#
The capture terminated with a failure. The structured reason enum drives UI grouping and downstream alerting; error_message provides a free-text detail for operator debugging. Whether a failed capture transitions the containing step to ERRORED is a backend policy decision outside this message — do not assume failure always implies step ERRORED.
startedAtstring (date-time)
failedAtstring (date-time)
reasonChannelCaptureFailureReason
errorMessagestringFree-text detail. Must not contain unsafe content — same conventions as other user-visible error_message fields on procedure executions. Capped to bound payload size; truncate at the producer if a longer detail is available. At most 4,096 characters.
ChannelCaptureFailureReason#
Categorizes why a channel capture failed. New reasons should be added here as additional failure modes are recognized.
CHANNEL_CAPTURE_FAILURE_REASON_UNSPECIFIED
CHANNEL_CAPTURE_FAILURE_REASON_DATA_SOURCE_NOT_FOUNDThe channel’s data_source_ref could not be resolved to a concrete data source at execution time (e.g. the named ref is not present in the execution’s data scopes or run data sources).
CHANNEL_CAPTURE_FAILURE_REASON_CHANNEL_NOT_FOUNDThe data source was resolved but the named channel (with the configured tags, if any) does not exist on it, or its metadata could not be fetched.
CHANNEL_CAPTURE_FAILURE_REASON_UNSUPPORTED_CHANNEL_TYPEThe channel’s data type cannot be represented by CapturedValue, or the channel’s data type is unset. Permanent for this channel — re-running will not help.
CHANNEL_CAPTURE_FAILURE_REASON_TIMEOUT_NO_DATANo data point arrived within the capture timeout window (subscription opened but yielded no value before the deadline).
CHANNEL_CAPTURE_FAILURE_REASON_INTERNAL_ERRORCatch-all for backend / infrastructure failures that prevented capture — e.g. websocket connect/subscribe/stream failure, missing websocket configuration, downstream event creation failure, interrupt, or any other unexpected failure. See error_message for the specific cause.
ChannelCaptureInProgress#
The capture has been initiated (the value read / WebSocket subscription opened) but no terminal outcome has been written yet. The frontend can render a “capturing…” affordance from this state.
startedAtstring (date-time)
ChannelCaptureSkipped#
The capture was intentionally not attempted because the system does not currently support this capture configuration and purposefully skips rather than fails.
skippedAtstring (date-time)
reasonChannelCaptureSkipReason
ChannelCaptureSkipReason#
Categorizes why a channel capture was skipped without being attempted. Skipped statuses are soft outcomes and do not transition the step to ERRORED.
CHANNEL_CAPTURE_SKIP_REASON_UNSPECIFIED
CHANNEL_CAPTURE_SKIP_REASON_RUN_SCOPED_UNSUPPORTEDThe capture targets a run-scoped channel locator, which is not yet supported.
ChannelCaptureStatus#
The status of a single channel capture attempt for a specific (output_field_id, capture_moment) pair on a step. Mirrors the lifecycle-oneof shape used by SuccessConditionStatus so that the frontend can render an in-progress “capturing…” affordance, a terminal value/error, or a soft skip (e.g. system limitation), all from a single self-describing message.
Identity within a step = (output_field_id, capture_moment). The backend merges incoming statuses by this key, replacing any previously written entry for that identity. The channel locator is not echoed here — consumers resolve it by looking up output_field_id in the step’s capture config.
Set exactly one of
inProgress,succeeded,failed,skipped.outputFieldIdstringThe output_field_id of the capture. Used together with capture_moment to identify which capture this status refers to. At least 1 character.
captureMomentCaptureMomentWhich step lifecycle moment this capture corresponds to. A given output_field_id may be captured at both step start and step completion, in which case there will be one ChannelCaptureStatus entry per moment. Must be a defined, non-UNSPECIFIED CaptureMoment — capture_moment is half of the identity key used for merging, so accepting the zero value would produce a bogus key.
- one of
inProgress,succeeded,failed,skippedrequired
inProgressChannelCaptureInProgress
succeededChannelCaptureSucceeded
failedChannelCaptureFailed
skippedChannelCaptureSkipped
ChannelCaptureSucceeded#
The capture terminated successfully with a value.
startedAtstring (date-time)
capturedAtstring (date-time)
valueCapturedValuerequired
ChannelLocator#
Locates a specific channel within a data source for validation. Uses symbolic reference names that are resolved to concrete resources at execution time, allowing procedure templates to be defined before the actual data sources exist.
Set exactly one of
asset,run.dataSourceRefstringSymbolic name for the data source (e.g., “main”, “test_data”). This name is resolved to a concrete DataSourceRid at execution time by looking up the name in the data scopes (for assets) or data sources (for runs) specified by asset_or_run. This is NOT a field reference - it’s a literal string that must match a data source ref name. At least 1 character.
channelNamestringThe name of the channel within the data source to validate. At least 1 character.
tagsmap of string to stringOptional series tags to filter the channel data. Used to select specific series when multiple series exist for the same channel name.
- one of
asset,runrequired
assetAssetReference
runRunReference
ChannelValidationSuccessCondition#
Defines a success condition that compares channel data against a threshold value. The step succeeds when the comparison (channel_value COMPARATOR threshold) evaluates to true within the timeout period. For example, checking if a channel value is greater than 100. Use COMPARATOR_EXISTS for capture-only conditions that succeed as soon as any channel value is observed.
channelChannelLocatorrequiredThe channel to validate against the threshold. If the data_source_ref or channel_name cannot be resolved at execution time, the step will transition to ERRORED state immediately.
comparatorCOMPARATORrequiredThe comparison operator to use. COMPARATOR_UNSPECIFIED should never be used and will be rejected at runtime.
thresholdnumberThe threshold value to compare the channel data against. The comparison is: channel_value COMPARATOR threshold Using double for better precision. Note: When using COMPARATOR_EQUAL or COMPARATOR_NOT_EQUAL with floating-point channel data, be aware of potential precision issues inherent to IEEE 754. Ignored when comparator is COMPARATOR_EXISTS.
timeoutMillisintegerMaximum time in milliseconds to wait for the condition to be satisfied. If the timeout expires before the comparison evaluates to true, the step moves to ERRORED. Must be greater than zero and at most one hour (3,600,000 milliseconds). Greater than 0 and at most 3,600,000.
pointPersistenceinteger (int64)optionally specify a persistence of individual points Greater than 0.
timePersistenceinteger (int64)optionally specify a persistence duration in milliseconds (max 5 minutes) for which the condition must hold true Greater than 0 and at most 300,000.
channelCapturesarray ofChannelCaptureConfigChannel values to capture while evaluating this success condition. These captures use the condition’s channel field as their source. Each config produces dot-namespaced event-metadata properties keyed by output_field_id.
ChannelValidationSuccessConditionStatus#
conditionChannelValidationSuccessCondition
consecutiveMatchesintegerPersistence tracking state for channel validation conditions. Tracks consecutive successful evaluations for point_persistence.
firstSatisfiedAtstring (date-time)Timestamp when the condition first became satisfied. Used for time_persistence to track how long the condition has held true.
CheckboxFieldValue#
valuebooleanDefault to false if not set
COMPARATOR#
Comparison operator to evaluate channel value against threshold. The condition is satisfied when: channel_value COMPARATOR threshold Example: COMPARATOR_GREATER_THAN with threshold 100.0 means channel_value > 100.0
Evaluation semantics: The most recent channel value within the timeout period is used for comparison. If the channel has no data, the condition will continuously retry until timeout_millis expires.
COMPARATOR_UNSPECIFIEDUnspecified comparator. This is an invalid state and should never be used. Required by proto3 convention as the zero value. Will be rejected at runtime.
COMPARATOR_GREATER_THAN
COMPARATOR_GREATER_THAN_OR_EQUAL
COMPARATOR_LESS_THAN
COMPARATOR_LESS_THAN_OR_EQUAL
COMPARATOR_EQUAL
COMPARATOR_NOT_EQUAL
COMPARATOR_EXISTSSucceeds when any channel value exists. The threshold field is ignored.
CompletionActionState#
Set exactly one of the fields below.
- one of
notRun,succeeded,error,inProgressrequired
notRunNotRunThe action was not run
succeededSucceededThe action was run and succeeded. The result is available in CompletionActionStatus.result
errorstringThe action was run and errored. This field contains the error message.
inProgressInProgressThe action execution is in progress
CompletionActionStatus#
The status of a completion action and its result (if any).
Set at most one of
createEvent,createRun,applyWorkbookTemplates,applyChecklists,updateRun.stateCompletionActionState
- one of 5 fields
createEventCreateEventResult
createRunCreateRunResult
applyWorkbookTemplatesApplyWorkbookTemplatesResult
applyChecklistsApplyChecklistsResult
updateRunUpdateRunResult…
CreateEventResult#
A CreateEvent action results in an EventRid if successful.
eventRidstring
CreateRunResult#
A CreateRun action results in a RunRid if successful.
runRidstring
Disabled#
An empty JSON object,
{}.DoubleFieldValue#
valuenumber
Enabled#
An empty JSON object,
{}.ExecutionStepErrored#
An execution step reaches the ERRORED state if something went wrong while trying to complete the step. This could be due to a badly configured procedure, an error/timeout in the completion condition, or an error/timeout in one of the completion actions. This is a terminal state, the step’s values cannot be modified by the user.
startedAtstring (date-time)Optional because a step can reach ERRORED without having been started
startedBystring
submittedAtstring (date-time)Optional because a step can be errored before being submitted
submittedBystring
erroredAtstring (date-time)
erroredBystring
errorstring
skippedAtstring (date-time)Optional because a step could be skipped but then error while running completion actions
skippedBystring
skipReasonstring
succeededAtstring (date-time)Optional because a step can succeed but then error while running completion actions
succeededBystring
ExecutionStepInProgress#
An execution step is in the IN_PROGRESS state once it has been started from NOT_STARTED, either manually or automatically. In this state, the step’s values can be modified by the user.
startedAtstring (date-time)
startedBystring
ExecutionStepNotStarted#
All execution steps start in the NOT_STARTED state. In this state, the step’s values can be modified by the user.
An empty JSON object,
{}.ExecutionStepSkipped#
An execution step is in the SKIPPED state if it was skipped by a user. An execution step cannot be skipped if it is in a terminal state (SUCCEEDED or ERRORED). This is a terminal state, the step’s values cannot be modified by the user.
skippedAtstring (date-time)
skippedBystring
skipReasonstring
startedAtstring (date-time)Optional because a step can be skipped from the NOT_STARTED state before these are set
startedBystring
submittedAtstring (date-time)Optional because a step can be skipped from the IN_PROGRESS state before these are set
submittedBystring
ExecutionStepState#
The read-side state for an execution step. Here is the state machine: All steps start in the NOT_STARTED state. From NOT_STARTED, a step can transition to IN_PROGRESS or SKIPPED. - Transitioning to IN_PROGRESS can be done manually by a user or automatically if auto-start is enabled. This transition can only happen if the step’s dependencies are in a completed state (SUCCEEDED or SKIPPED) From IN_PROGRESS, a step can transition to SUBMITTED or SKIPPED. - Transitioning to SUBMITTED can be done manually by a user or automatically if auto-proceed is enabled. This transition can only happen if the step’s content has its required values set. - Transitioning to SKIPPED can be done manually by a user. From SUBMITTED, a step can transition to SUCCEEDED, ERRORED, or SKIPPED. - Transitioning to SUCCEEDED or ERRORED is done by the backend after monitoring the completion condition (if any) and executing the completion actions (if any). - Transitioning to SKIPPED can be done manually by a user.
Set exactly one of the fields below.
- one of 6 fields required
notStartedExecutionStepNotStarted
inProgressExecutionStepInProgress
submittedExecutionStepSubmitted
skippedExecutionStepSkippedTerminal states below
succeededExecutionStepSucceeded
erroredExecutionStepErrored
ExecutionStepSubmitted#
An execution step is in the SUBMITTED state once it has been submitted from the IN_PROGRESS state, either manually or automatically. In this state, the step’s values are considered submitted and cannot be modified by the user. In this state, the backend will monitor the completion condition (if any) and execute the completion actions (if any) once the condition is satisfied.
startedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
ExecutionStepSucceeded#
An execution step reaches the SUCCEEDED state if all conditions were met and all actions successfully ran. This is a terminal state, the step’s values cannot be modified by the user.
startedAtstring (date-time)
startedBystring
submittedAtstring (date-time)
submittedBystring
succeededAtstring (date-time)
succeededBystring
FieldOutput#
This is different from FormFieldValue in that this represents the resolved value after the step has been completed. Eg, this would contain an AssetRid while the FormFieldValue could contain an AssetReference
Set at most one of the fields below.
- one of 10 fields
assetRidstringIf a global field is not yet defined, I think it’s just not present in the global_fields map option (buf.validate.oneof) = {required: true};
stringValuestring
doubleValuenumber
booleanValueboolean
intValuestring (int64)
stringsValueStrings
ingestJobRidstring
runRidstring
fileUploadValueFileUploadFieldValue
multiFileUploadValueMultiFileUploadFieldValue
FileUploadFieldValue#
Corresponds to usage of the upload api
s3UploadS3UploadFileValue
FormFieldValue#
The value chosen for a form field. This differs from FieldOutput in that this should map 1:1 with FormField types, while FieldOutput contains the resolved values after the execution step is complete.
Set exactly one of the fields below.
- one of 9 fields required
assetAssetFieldValue
checkboxCheckboxFieldValue
textTextFieldValue
intIntFieldValue
doubleDoubleFieldValue
singleEnumSingleEnumFieldValue
multiEnumMultiEnumFieldValue
fileUploadFileUploadFieldValue
multiFileUploadMultiFileUploadFieldValue
FormStepValue#
fieldsarray ofFormFieldValue
IngestJobSuccessCondition#
The step will succeed when the associated ingest job succeeds. If the ingest job fails, the step will move to ERRORED.
fieldIdstringThe field ID that contains the IngestJobRid of the ingest job to monitor.
InProgress#
An empty JSON object,
{}.IntFieldValue#
valuestring (int64)
LabelUpdateWrapper#
Wrapper classes to allow for optional fields on update requests
labelsarray of string
MultiEnumFieldValue#
valuearray of stringDefault to empty list if not set
MultiFileUploadFieldValue#
uploadsarray ofFileUploadFieldValueThe list of uploads
NodeList#
A list of node IDs.
nodeIdsarray of string
NotRun#
An empty JSON object,
{}.ProcedureDisplayGraph#
A simpler representation of the procedure graph that is used for display in a UI.
topLevelNodesarray of stringSections or steps that do not belong to any parent sections. This is ordered in a topological ordering of steps.
sectionToSortedChildrenmap of string toNodeListMap of section node IDs to their topologically sorted children
ProcedureExecution#
ridstring
metadataProcedureExecutionMetadata
stateProcedureExecutionState
ProcedureExecutionMetadata#
ridstring
procedureRidstringThe procedure template rid this execution is based on.
procedureCommitIdstringThe commit ID of the procedure template this execution is based on. This can be overridden at the node level for individual nodes.
titlestringAt least 1 character.
descriptionstring
labelsarray of string
propertiesmap of string to string
createdBystring
createdAtstring (date-time)
updatedBystring
updatedAtstring (date-time)
startedAtstring (date-time)Will be unset until the execution transitions from NOT_STARTED to IN_PROGRESS.
startedBystring
finishedAtstring (date-time)Will be unset until the execution transitions from IN_PROGRESS to a terminal state.
finishedBystring
abortedAtstring (date-time)Will be true/set if the execution is the ABORTED terminal state.
abortedBystring
failedAtstring (date-time)Will be set if the execution is in the ERRORED terminal state.
failedBystring
failedReasonstring
assetRidsarray of stringAssets which this execution has acted on in completed steps (e.g. through an event creation action).
isArchivedboolean
ProcedureExecutionNode#
A procedure execution node is either a section or a step.
Set exactly one of the fields below.
- one of
section,steprequired
sectionProcedureExecutionSectionNodeA section node is a visual grouping of other sections and steps. Execution sections are static and do not have execution state.
stepProcedureExecutionStepNodeExecution steps are the interactive steps in a procedure.
ProcedureExecutionSectionNode#
A section node is a visual grouping of other sections and steps.
idstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
titlestringTitle of this section. Uses the template section’s title and cannot be changed in execution. At least 1 character.
descriptionstringDescription of this section. Uses the template section’s description and cannot be changed in execution.
templateCommitIdstringIf set, the commit ID of the procedure template this section is based on. Otherwise, the section is based on the template commit specified at the top level of the execution.
ProcedureExecutionState#
ProcedureExecutionState is the state of an executing procedure.
globalFieldsmap of string toFieldOutputThe current values for the global fields in the procedure.
nodesmap of string toProcedureExecutionNodeA map from execution node ID to the execution node.
sectionEdgesmap of string toNodeListSection edges represent the visual grouping of sections and steps. All keys are IDs for section nodes, and all values are lists of IDs for section or step nodes. { A, [B, C] } means that section A visually groups nodes B and C together.
stepEdgesmap of string toNodeListStep edges represent the dependencies between steps. All keys and values are IDs for step nodes. { A, [B, C] } means that steps B and C depend on step A to complete to be started
ProcedureExecutionStepNode#
Execution steps are the interactive steps in a procedure.
idstringUnique identifier of this execution node. At least 1 character.
templateNodeIdstringUnique identifier of the template node this execution node is based on. At least 1 character.
isOutdatedbooleanExecution steps become “outdated” once any upstream steps are re-run An outdated execution step should not be further modified.
stateExecutionStepStateThe current status of the step along with metadata about the status transitions.
valueStepContentValueThe current value for the content of the step.
autoProceedConfigAutoProceedConfigWhether the step has auto-proceed enabled.
successConditionStatusSuccessConditionStatusCompletion_condition_status is the status of the completion condition for the step The backend manages this property and will update it while it monitors the completion_condition if set. This property will be unset if no completion_condition is set on the step or if the execution step’s contents has not been submitted yet.
completionActionStatusesarray ofCompletionActionStatusCompletion_action_statuses are the status of the completion actions for the step The backend manages this property and will update it after performing completion_actions.
outputsmap of string toFieldOutputOutputs are the values of the fields within this step, set by the backend after the step has reached the SUCCEEDED state. The backend will know how to introspect the node and determine these values, for example looking for form fields with ids in a FormStep. These outputs can be consumed by other steps later in the procedure by referencing
{output_id}:{field_id}templateCommitIdstringIf set, the commit ID of the procedure template this step is based on. Otherwise, the step is based on the template commit specified at the top level of the execution.
channelCaptureStatusesarray ofChannelCaptureStatusChannel capture statuses are the per-(output_field_id, capture_moment) statuses of the channel captures configured for this step. The backend manages this property and writes entries incrementally as captures progress through their lifecycle.
PropertyUpdateWrapper#
propertiesmap of string to string
RepeatStepBehavior#
REPEAT_STEP_BEHAVIOR_UNSPECIFIED
REPEAT_STEP_BEHAVIOR_ISOLATEDThe targeted step will be repeated, but the original graph will be preserved and only direct children will be checked for state updates
RunReference#
A reference to a single run
fieldIdstringThe field id that will contain a RunRid value. The execution will fail if the field is not set properly.
S3UploadFileValue#
s3PathstringThe S3 path where the uploaded file is stored At least 1 character.
fileNamestringThe original filename of the uploaded file At least 1 character.
fileTypestringThe MIME type of the uploaded file Following the convention of https://developer.mozilla.org/en-US/docs/Web/API/Blob/type (from which the File api inherits, we will accept an empty string)
SelectOrCreateAssetStepValue#
assetReferenceAssetReferenceThe asset that was selected / created by the client. This must be populated for the step to be submitted.
SingleEnumFieldValue#
valuestringDefault to empty string if not set
StartIngestStepValue#
ingestJobRidstringThe RID of the ingest job that was started by the client. This must be populated for the step to be submitted.
StepContentValue#
The value for a step’s content. Should match the ProcedureStepNode type.
Set exactly one of the fields below.
- one of
form,startIngest,selectOrCreateAsset,waitrequired
formFormStepValue
startIngestStartIngestStepValue
selectOrCreateAssetSelectOrCreateAssetStepValue
waitWaitStepValue…
StepErroredRequest#
errorReasonstring
StepInProgressRequest#
An empty JSON object,
{}.StepSkippedRequest#
skipReasonstring
StepSubmittedRequest#
An empty JSON object,
{}.Strings#
valuesarray of string
Succeeded#
An empty JSON object,
{}.SuccessConditionCanceled#
startedAtstring (date-time)
canceledAtstring (date-time)
SuccessConditionFailed#
startedAtstring (date-time)
failedAtstring (date-time)
failureReasonstring
SuccessConditionInProgress#
startedAtstring (date-time)
SuccessConditionSatisfied#
startedAtstring (date-time)
satisfiedAtstring (date-time)
SuccessConditionStatus#
Represents the current status of one or more nested completion conditions. Mirrors the recursive SuccessCondition in nominal.procedures.v1
Set exactly one of
and,timer,ingestJob,channelValidation,webhook. Set exactly one ofinProgress,satisfied,failed,canceled,submitted.- one of 5 fields required
andAndSuccessCondition
timerTimerSuccessCondition
ingestJobIngestJobSuccessCondition
channelValidationChannelValidationSuccessConditionStatus
webhookWebhookConditionStatusOrSuccessConditionOrStatus or = 5;
- one of 5 fields required
inProgressSuccessConditionInProgress
satisfiedSuccessConditionSatisfied
failedSuccessConditionFailed
canceledSuccessConditionCanceled
submittedSuccessConditionSubmitted
SuccessConditionSubmitted#
submittedAtstring (date-time)
TargetStepStateRequest#
A request to update the state of an execution step.
Set exactly one of the fields below.
- one of
inProgress,submitted,skipped,erroredrequired
inProgressStepInProgressRequest
submittedStepSubmittedRequest
skippedStepSkippedRequest
erroredStepErroredRequest
TextFieldValue#
valuestringDefault to empty string if not set
TimerSuccessCondition#
A timer condition that will succeed the step after a specified duration.
durationSecondsintegerDuration in seconds to wait before succeeding the step. This value must be non-negative. This duration is a minimum bound; the actual duration may be longer. At least 0.
UpdateRunResult#
An UpdateRun action results in the list of RunRids that were updated.
runRidsarray of string
WaitStepValue#
An empty JSON object,
{}.WebhookConditionStatus#
Status tracking for webhook success conditions. Tracks delivery attempts, retry timing, and the last response from the external system. Note: Secret management for retries is handled internally in workflow state, not exposed in this public API message.
conditionWebhookSuccessConditionThe original webhook condition configuration being monitored
deliveryAttemptsintegerNumber of delivery attempts made so far At least 0.
lastAttemptTimestring (date-time)Timestamp of the last delivery attempt
nextRetryTimestring (date-time)Timestamp when the next retry should be attempted (null if no retry scheduled)
lastDeliveryIdstringUnique ID of the last delivery attempt (unset if no attempts made yet) Generated per-attempt to correlate webhook deliveries with external system logs
lastHttpStatusintegerHTTP status code from the last delivery attempt From 100 to 599.
lastErrorMessagestringError message from the last delivery attempt (if failed)
startedAtstring (date-time)Timestamp when webhook condition evaluation started
terminalFailureReasonWebhookFailureReasonTerminal failure reason for this webhook condition. Only set when the condition transitions to FAILED status. Remains unset during retries (use last_error_message for intermediate failures).
WebhookDeliveryConfig#
Configuration for webhook delivery retry logic and timeouts.
maxRetriesintegerMaximum delivery attempts (default: 3, max: 10) From 0 to 10.
retryIntervalSecondsstring (int64)Initial retry interval seconds (default: 15, min: 5, max: 300) From 5 to 300.
exponentialBackoffbooleanUse exponential backoff (default: true)
maxRetryIntervalSecondsstring (int64)Max retry interval seconds (default: 300, max: 3600) From 5 to 3,600.
timeoutSecondsstring (int64)Overall timeout seconds (default: 600, max: 86400) From 1 to 86,400.
WebhookFailureReason#
Categorizes why a webhook success condition failed. This enum represents terminal failure states - failures that caused the condition to permanently fail.
WEBHOOK_FAILURE_REASON_UNSPECIFIEDUnspecified/unknown failure reason. Should not be used in normal operation.
WEBHOOK_FAILURE_REASON_CLIENT_ERRORExternal system returned 4XX client error (permanent failure, no retry attempted). Indicates misconfiguration or invalid request that won’t succeed on retry. Common causes: 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found.
WEBHOOK_FAILURE_REASON_SERVER_ERROR_MAX_RETRIES_EXCEEDEDExternal system returned 5XX server error and max retries were exhausted. Server errors are typically transient and retries were attempted. Common causes: 500 Internal Server Error, 502 Bad Gateway, 503 Service Unavailable.
WEBHOOK_FAILURE_REASON_TIMEOUT_MAX_RETRIES_EXCEEDEDIndividual HTTP request timed out and max retries were exhausted. The external system didn’t respond within the per-request timeout window.
WEBHOOK_FAILURE_REASON_OVERALL_TIMEOUT_EXCEEDEDOverall condition timeout exceeded before receiving successful 2xx response. The webhook delivery config’s timeout_seconds was reached. This can occur even if individual requests completed (returned responses) but took too long cumulatively between retry delays, without receiving 2xx.
WEBHOOK_FAILURE_REASON_NETWORK_ERROR_MAX_RETRIES_EXCEEDEDNetwork-level failure prevented request delivery and max retries were exhausted. Common causes: DNS resolution failure, connection refused, TLS handshake failure.
WEBHOOK_FAILURE_REASON_PAYLOAD_ERRORTemplate rendering or payload serialization failed (permanent failure). The payload_template could not be rendered to valid JSON. Common causes: Invalid Handlebars syntax, circular references, invalid JSON after rendering.
WEBHOOK_FAILURE_REASON_REDIRECT_LOOPToo many redirects encountered (typically indicates redirect loop). Follows HTTP standard - most clients limit to 20 redirects.
WEBHOOK_FAILURE_REASON_INTEGRATION_CONFIG_ERRORIntegration configuration is invalid or missing required fields. Common causes: Integration RID not found, missing URL, invalid HMAC config.
WebhookSuccessCondition#
A webhook success condition that waits for external system approval via HTTP webhook. The step succeeds when the external system responds with 2xx status code.
Failure behavior: - 4xx responses: Permanent failure, no retry (CLIENT_ERROR) - 5xx responses: Retry with exponential backoff until max_retries (SERVER_ERROR_MAX_RETRIES_EXCEEDED) - Network errors: Retry until max_retries (NETWORK_ERROR_MAX_RETRIES_EXCEEDED) - Timeout: Retry until timeout_seconds exceeded (OVERALL_TIMEOUT_EXCEEDED) - Redirects: Followed automatically, fails if redirect loop detected (REDIRECT_LOOP)
integrationRidstringRID reference to a WebhookIntegration (the advanced integration type with HMAC signing) At least 1 character.
deliveryConfigWebhookDeliveryConfigWebhook delivery configuration. If not provided, server uses documented defaults.
eventTypestringEvent type to send (e.g., “procedure.step_waiting”) At least 1 character.
payloadTemplatestringJSON payload template using Handlebars syntax (https://handlebarsjs.com/) Supports variable references using {{variable_name}} syntax: - {{execution_rid}} - Procedure execution RID - {{step_id}} - Current step ID - {{step_name}} - Current step name/title - {{procedure_name}} - Procedure name - {{field_id}} - Any global form field value (e.g., {{environment}}, {{approval_level}}) - {{asset_rid}} - Asset RID if step has asset context - {{asset_name}} - Asset name if step has asset context Advanced features: - Conditionals: {{#if environment}}production mode{{/if}} - Loops: {{#each tags}}{{this}}{{/each}} - Comparisons: {{#if (eq priority “HIGH”)}}urgent{{/if}} - Default values: {{default environment “unknown”}} Example template: { “event”: “approval_required”, “execution_id”: “{{execution_rid}}”, “step”: “{{step_name}}”, “environment”: “{{environment}}”, {{#if asset_name}} “asset”: “{{asset_name}}”, {{/if}} “is_production”: {{#if (eq environment “production”)}}true{{else}}false{{/if}} } Variables that cannot be resolved will be replaced with empty string. Invalid JSON after template evaluation will cause the condition to fail with PAYLOAD_ERROR reason. At least 1 character.
Page design based on Scalar, MIT License.
- one of
- one of
- one of
- one of
- one of
- one of
- one of
- one of
- one of
- one of
- one of
- one of