Skip to main content

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.
Examples of good kdx run use cases:
  • Inspect operations available for activities, activity-plans, document-families, or projects.
  • 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:
The operation list comes from the connected environment. If an operation is missing after a platform upgrade, refresh the discovery cache:

Executing An Operation

Path and query parameters are passed as dynamic flags. Request bodies are passed as JSON with --body.
Parameter handling:

Common Operations

Document Families

For routine data export, prefer the stable wrapper:

Activities

Use activities when you need to inspect the business process run itself. Use activity-plans when you need to inspect the reusable workflow definition.

Projects

For creating a project from a template, prefer:

Data Definitions

Use the current data-definitions resource name for new work:
Some servers still expose compatibility aliases for older names. New documentation and new metadata should use data-definition and data-definitions.

Service Bridges

For Activity workflow calls, prefer defining a 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.
Use a stable command when it exists:

Troubleshooting

Operation Not Found

List the operations exposed by the current environment:
Then refresh discovery if needed:

Missing Required Parameter

The operation list shows required path and body parameters. Add the corresponding dynamic flag:

Invalid JSON Body

Validate the body with jq before passing it:

Resource Name Drift

Use current resource names in new commands and docs: