Workflow definitions
Create a workflow
Changed onCreates a workflow. The request body is the definition document itself, not wrapped in any envelope.
- The workflow starts at revision 1, with the auto-maintained latest alias pointing at it.
- Nothing runs yet: triggers only register when you activate an alias.
- Referencing secrets or variables that have no value yet is fine: creation succeeds and the response lists them under warnings so you can set them afterwards.
post/workflows/definitions
Request
- Base URLhttps://api.nullplatform.com
- URLhttps://api.nullplatform.com/workflows/definitions
- AuthHTTP bearer
Request body
Example request
{
"name": "AMI drift scanner",
"key": "ami-drift-scanner",
"description": "Scans deployed scopes for outdated AMIs.",
"path": "/action-items/ami-drift",
"semanticVersion": "1.2.0"
}Response
The workflow was created.
Example response
{
"workflow": {
"id": "wf_ifWBbWfpug0n",
"key": "ami-drift-scanner",
"name": "AMI drift scanner",
"path": "/action-items/ami-drift"
},
"revision": {
"workflowId": "wf_ifWBbWfpug0n",
"revision": 3
},
"latestAlias": {
"workflowId": "wf_ifWBbWfpug0n",
"name": "live",
"revision": 3
},
"warnings": [
{
"name": "NP_API_KEY"
}
]
}Changes
- info
endpoint added
- info