whodb_platform_action
Run supported hosted platform resource actions like deploy, run, move, restore, or purge on files, functions, ontologies, datasets, objects, and accounts.
Instructions
Run a hosted platform resource action through the selected project.
Supported actions include transform run/cancel_run, file upload/rename/move/promote_to_dataset/restore/purge, folder rename/move/restore/purge, function deploy/redeploy/execute/start_run/generate_test_input, function_run cancel, ontology add_records/execute_behavior/share/unshare/reembed/purge_data, dataset purge_data, project restore/purge, app restore/purge/generate/cancel_generation/file operations, object restore/purge/version restore, package installation and add_changelog/add_media/review, and organization administration including service accounts (create_service_account, create_service_account_key, revoke_service_account_key, delete_service_account) and teams. Read whodb://platform/schema for every action and its payload shape. Some actions create, move, deploy, or otherwise mutate hosted resources. Pass id and payload_json as required by the action. For file/upload, payload_json requires file_path and may include folderId. Default mode returns a confirmation token; do not call whodb_platform_confirm until the user approves the preview. Permission checks are enforced by the hosted platform. Accepts workspace {host, org, project} for per-call targeting without changing defaults.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Resource id for update, delete, or action operations | |
| action | No | Action name for whodb_platform_action, for example deploy, run, rename, move, promote_to_dataset | |
| payload | No | Structured mutation payload. Do not include projectId or the target id; the selected workspace and id are injected by the CLI. | |
| resource | Yes | Resource type, for example secret, ai_provider, ontology, dataset, transform, folder, file, function, source_object | |
| workspace | No | Optional target for this call only. Omit to use the session default set by whodb_platform_session_use, then process/saved defaults. Discover targets with whodb_platform_hosts, whodb_platform_orgs and whodb_platform_projects. | |
| payload_json | No | Legacy JSON object payload. Prefer payload; projectId and id are filled from selected workspace/id when appropriate. | |
| idempotency_key | No | Stable caller-provided key. Repeating a successful write with the same key will not execute it again. |