Overview
kdx run exposes resource-specific API operations discovered from the platform OpenAPI specification. Use it when you need an operation that is not covered by a stable top-level command.
kdx run use cases:
- Inspect operations available for
activities,activity-plans,document-families, orprojects. - Call a document-family export, external-data, label, touch, or status endpoint.
- Run administrative project operations exposed by the current platform.
- Prototype an integration before turning it into application code.
How Discovery Works
List available operations for a resource:Executing An Operation
Path and query parameters are passed as dynamic flags. Request bodies are passed as JSON with--body.
| Parameter type | How to pass it |
|---|---|
| Path parameter | --id <value>, --ref <value>, or the parameter name shown by kdx run <resource> |
| Query parameter | --format json, --includeIds true, --filter "slug:'invoice'" |
| Request body | --body '{"statusId":"..."}' |
| Output format | -o json, -o yaml, -o table |
Common Operations
Document Families
Activities
activities when you need to inspect the business process run itself. Use activity-plans when you need to inspect the reusable workflow definition.
Projects
Data Definitions
Use the currentdata-definitions resource name for new work:
data-definition and data-definitions.
Service Bridges
BRIDGE_CALL step in an Activity Plan. Use kdx run for inspection, troubleshooting, and one-off administrative calls exposed by the API.
Output And Scripting
When To Use run
Use kdx run when:
- You need an API operation that is not modeled as a top-level CLI command.
- You want to inspect what the current server supports.
- You are building an automation and want to verify the API call shape.
| Need | Prefer |
|---|---|
| List or inspect resources | kdx get, kdx describe |
| Create or update YAML resources | kdx apply -f |
| Validate YAML | kdx validate -f |
| Export document-family data | kdx document-family data |
| Download KDDB content | kdx document-family content download |
| Version metadata | kdx sync |
Troubleshooting
Operation Not Found
List the operations exposed by the current environment:Missing Required Parameter
The operation list shows required path and body parameters. Add the corresponding dynamic flag:Invalid JSON Body
Validate the body withjq before passing it:
Resource Name Drift
Use current resource names in new commands and docs:| Current name | Notes |
|---|---|
data-definitions | Current name for business data models |
activity-plans | Reusable workflow definitions |
activities | Running workflow instances |
task-templates | Human work templates used by Activity CREATE_TASK steps |
