はじめに
最適な製品を選ぶ
Edge、Cloud、Enterprise から適切な Tier0 エディションを選びます。
各製品の詳しい機能は料金ページで確認し、用途に合うエディションを選んでください。
- UNS 上でアプリを構築 — Enterprise に Tier0 アプリを構築・デプロイします。
- インストール — 選んだエディションのセットアップ手順に従います。
Edge、Cloud、Enterprise から適切な Tier0 エディションを選びます。
各製品の詳しい機能は料金ページで確認し、用途に合うエディションを選んでください。
エディション別に Tier0 をインストールします。
Tier0 には 3 つのエディションがあります。
要件に最も合うエディションを選ぶには、最適なバージョンを選ぶ を参照してください。
Tier0 Cloud を試す前に、トライアルアカウントを申請してください。
sha256sum -c tier0-enterprise-offline-standard-YYYYmmddTHHMMSS.tar.gz.sha256tar -xzf tier0-enterprise-offline-standard-YYYYmmddTHHMMSS.tar.gzcd tier0-enterprise-offline-standard-YYYYmmddTHHMMSSinstall.env を編集し、デプロイを開始します。
vi install.envbash install.sh./install.sh --check-only./full-cleanup.sh --env install.env --yesこのコマンドは、VM、OS、インストール済み Docker ソフトウェアを残したまま、Tier0 のランタイムデータとデータベースバックアップを削除します。
runtime/install-reports/<timestamp>/deployment-report.mdレポートに FAIL 項目がある場合は、プロジェクトを引き渡さず、先にサポートに連絡してください。
Tier0 を使い始めるための推奨手順。
flowchart TD app["アプリを構築"] namespace["Namespace を作成"] external["外部データを接続(任意)"] use["アプリで統合データを利用"] app --> namespace --> external --> use namespace -.->|"任意の手順を省略"| use classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717 class use t0accent
| 操作 | 担当 | エディション | 説明 |
|---|---|---|---|
| アプリを構築 | あなた | Cloud | Agent と対話してカスタムアプリを作成します。 |
| Namespace を作成 | Agent | Cloud | アプリの業務ロジックに基づいて Namespace とデータモデルを作成します。 |
| 外部データを接続(任意) | あなた | Cloud、Enterprise | 必要に応じて、接続する既存の業務システムやデバイスの情報を Agent に提供します。 |
| データを統合 | Agent | Cloud、Enterprise | 外部データを既存のアプリのモデルにマッピング、変換、統合します。 |
AI との対話でカスタム産業アプリを構築します。
AI との対話でカスタム産業アプリを構築します。アプリは工場データを利用でき、ロールによるアクセス制御、バージョン管理、外部へのデプロイ機能を備えます。
アプリの目的、機能、外部データが必要かどうかを示します。
工場技術者向けの設備保全アプリを作成してください。設備の状態監視、保全依頼、修理状況の追跡を可能にしてください。xxx table のアラーム記録と保全履歴を使ってください。アプリはロールベースアクセス制御(RBAC)でメンバーのアクセスと操作を管理します。
完成したアプリは Preview ページから外部環境や Tier0 Enterprise 向けにエクスポートできます。
デジタルツインの構築 — 工場データを運用状況の可視化に活用します。
アプリ向けの外部データを接続し、Tier0 でモデル化・統合します。
Tier0 はカスタムアプリのデータ基盤を作ります。アプリから業務データを受け取り、既存のシステムやデバイスに接続し、アプリで使える統一モデルにデータを統合します。
すべてのデータは Namespace 配下の Tables にモデル化され、データ型に応じて整理されます。
flowchart TB namespace["Namespace"] --> table["Table"] table --> record["Record テーブル<br/>リレーショナルデータ"] table --> sample["Sample テーブル<br/>時系列データ"] classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717 class table t0accent
業務データはアプリの利用または外部システムから取得します。時系列データは主に接続したデバイスから取得します。
flowchart LR app["アプリ"] -->|"業務データ"| record["Record"] stream["Stream"] -->|"デバイスデータ"| sample["Sample"] classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717 class record,sample t0accent
flowchart LR source["Source<br/>サーバーに接続"] --> stream["Stream<br/>収集と処理"] classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717 class source,stream t0accent
プロンプトで明示しない限り、Agent がアプリの業務ロジックからデータモデルを自動生成します。
Enterprise のデータ基盤構築手順は今後追加します。
Edge のデータ基盤構築手順は今後追加します。
ライブ UNS データを 3D モデルにバインドし、完全な工場シーンとして組み立てて Digital Twin 可視化を行います。
Tier0 に接続された工場データは、リアルな動きと環境を持つ Digital Twin として可視化できます。流れは、データを 3D モデルへマッピングし、その後モデルを組み合わせて完全な工場シーンを構築する形です。
共有できるのはインスタンスのみで、モデル単位またはシーン単位で共有できます。
センターノードから、接続されたエッジノード上のデータをシームレスに管理します。
Tier0 のエッジとセンターの連携により、エッジデバイスでデータを収集し、センタープラットフォームで管理できます。
まず、センターノードで Fleet ノードを作成します。
センターノードで生成されたトークンを使用して、各エッジノードを接続します。
MQTT と API で UNS データを操作し、API リファレンスを参照します。
MQTT と API を通じて UNS データを操作できます。
Tier0 で生成した認証情報を使って MQTT クライアントを UNS broker に接続できます。
Connect > Source > MQTT Device で MQTT 認証情報を生成し、記録します。
{ "Host": "mqtt.tier0.dev", "Port": 1883, "Client ID": "<generated client ID>", "Username": "<generated username>", "Password": "<generated password>"}{ "Protocol": "mqtt://", "Host": "mqtt.tier0.dev", "Port": 1883, "Username": "<generated username>", "Password": "<generated password>"}mqtt in ノードに次の情報でサーバーを追加します。
{ {/* under Connection */} "Server": "mqtt://mqtt.tier0.dev", "Port": 1883, "Client ID": "<generated clientId>", {/* under Security */} "Username": "<generated username>", "Password": "<generated password>"}https://<your-tier0-host>/openapi/v2x-api-key ヘッダーに指定します。POST /uns/metadata:find — Tables を一覧表示して Table ID を取得
const base = "https://your-tier0-host/openapi/v2";const response = await fetch(`${base}/uns/metadata:find`, { method: "POST", headers: { "content-type": "application/json", "x-api-key": "your-api-key" }, body: JSON.stringify({"kind": "collection", "filter": {}, "page": {"mode": "offset", "page": 1, "size": 20}}),});const result = await response.json();if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);console.log(result.data.items);import requests
response = requests.post( "https://your-tier0-host/openapi/v2/uns/metadata:find", headers={"x-api-key": "your-api-key"}, json={"kind": "collection", "filter": {}, "page": {"mode": "offset", "page": 1, "size": 20}}, timeout=30,)response.raise_for_status()result = response.json()if result["code"] != 0: raise RuntimeError(result.get("error", result.get("msg")))print(result["data"]["items"])curl --fail-with-body -X POST "https://your-tier0-host/openapi/v2/uns/metadata:find" \ -H "content-type: application/json" \ -H "x-api-key: your-api-key" \ -d '{"kind": "collection", "filter": {}, "page": {"mode": "offset", "page": 1, "size": 20}}'POST /uns/collections/{collectionId}/records:find — Records を一覧表示して Record ID を取得
const base = "https://your-tier0-host/openapi/v2";const collectionId = "your-collection-id";const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/records:find`, { method: "POST", headers: { "content-type": "application/json", "x-api-key": "your-api-key" }, body: JSON.stringify({"limit": 20}),});const result = await response.json();if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);console.log(result.data);import requests
response = requests.post( "https://your-tier0-host/openapi/v2/uns/collections/your-collection-id/records:find", headers={"x-api-key": "your-api-key"}, json={"limit": 20}, timeout=30,)response.raise_for_status()result = response.json()if result["code"] != 0: raise RuntimeError(result.get("error", result.get("msg")))print(result["data"])curl --fail-with-body -X POST "https://your-tier0-host/openapi/v2/uns/collections/your-collection-id/records:find" \ -H "content-type: application/json" \ -H "x-api-key: your-api-key" \ -d '{"limit": 20}'POST /uns/collections/{collectionId}/samples:latest — Record の最新 Sample を取得
const base = "https://your-tier0-host/openapi/v2";const collectionId = "your-collection-id";const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/samples:latest`, { method: "POST", headers: { "content-type": "application/json", "x-api-key": "your-api-key" }, body: JSON.stringify({"recordIds": ["record_123"]}),});const result = await response.json();if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);console.log(result.data);import requests
response = requests.post( "https://your-tier0-host/openapi/v2/uns/collections/your-collection-id/samples:latest", headers={"x-api-key": "your-api-key"}, json={"recordIds": ["record_123"]}, timeout=30,)response.raise_for_status()result = response.json()if result["code"] != 0: raise RuntimeError(result.get("error", result.get("msg")))print(result["data"])curl --fail-with-body -X POST "https://your-tier0-host/openapi/v2/uns/collections/your-collection-id/samples:latest" \ -H "content-type: application/json" \ -H "x-api-key: your-api-key" \ -d '{"recordIds": ["record_123"]}'POST /uns/collections/{collectionId}/samples:find — 指定期間の Samples を取得
const base = "https://your-tier0-host/openapi/v2";const collectionId = "your-collection-id";const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/samples:find`, { method: "POST", headers: { "content-type": "application/json", "x-api-key": "your-api-key" }, body: JSON.stringify({"recordIds": ["record_123"], "from": 1792454400000, "to": 1792540800000, "filter": {"temperature": {"$gt": 20}}, "limit": 20}),});const result = await response.json();if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);console.log(result.data);import requests
response = requests.post( "https://your-tier0-host/openapi/v2/uns/collections/your-collection-id/samples:find", headers={"x-api-key": "your-api-key"}, json={"recordIds": ["record_123"], "from": 1792454400000, "to": 1792540800000, "filter": {"temperature": {"$gt": 20}}, "limit": 20}, timeout=30,)response.raise_for_status()result = response.json()if result["code"] != 0: raise RuntimeError(result.get("error", result.get("msg")))print(result["data"])curl --fail-with-body -X POST "https://your-tier0-host/openapi/v2/uns/collections/your-collection-id/samples:find" \ -H "content-type: application/json" \ -H "x-api-key: your-api-key" \ -d '{"recordIds": ["record_123"], "from": 1792454400000, "to": 1792540800000, "filter": {"temperature": {"$gt": 20}}, "limit": 20}'MCP を介して AI Agent を Tier0 に接続します。
MCP を介して AI Agent を Tier0 に接続します。Agent は付与された権限の範囲でプラットフォーム API を検索して使用できます。
{ "Authorization": "Bearer <your-personal-api-key>" }whoami を実行させ、接続を確認します。codex mcp add tier0 --url https://your-tier0-url/mcp --oauth-client-registration dcrcodex mcp login tier0 --oauth-client-registration dcrwhoami を実行させ、接続を確認します。| MCP ツール | 用途 |
|---|---|
whoami |
ID と権限を確認します。 |
docs |
API ドキュメントを読みます。 |
search |
API 操作を探します。 |
execute |
API 操作を呼び出します。 |
まず docs と search で操作を探し、次に execute で呼び出します。例:
Workspace の `Plant/Line1/Metric/Temperature` の現在値を読み取ってください。工場データの操作 — Tier0 が工場データを整理、提供する方法を確認します。
Tier0 は、ワークスペースのシートでプラットフォーム機能を、ビジネスロールでアプリ内のアクセスを制御する、2 層のロールベースアクセス制御(RBAC)を使用します。
メンバーのシートは Builder と Operator の 2 種類です。
| 種類 | 権限 |
|---|---|
| オーナー | ワークスペースの全機能を使用でき、請求、全メンバー、所有権の譲渡、ワークスペースの削除を単独で管理します。 |
| Builder | オーナー専用機能を除くすべてのワークスペース機能を使用できます。 |
| Operator | アクセス権のあるアプリを使用します。 |
Tier0 のプラットフォームへのアクセスとユーザー権限を管理します。
該当するエディションのタブを選択して、ユーザー管理の手順を確認してください。
Workspace のオーナーまたは既存のメンバーは、電話番号またはメールアドレスを使って新しいメンバーを招待できます。
新しいメンバーは、招待コードまたは招待リンクを受け取った後、アカウントを登録して Workspace に参加します。
招待時に新しいメンバーのシート種別(Operator または Builder)を設定し、利用できる機能の範囲を決めます。
アカウント登録には 2 段階の確認が必要です。
管理者はデフォルトのアカウントで初めてサインインした後、パスワードを変更し、設定でユーザーアカウントを追加してロールを割り当てます。
管理者は、アカウントの割り当てによってプラットフォームを利用できるユーザーを決定し、ロールの割り当てによって各アカウントがアクセスできる機能を決定します。
| 操作 | 実行できるユーザー | 説明 |
|---|---|---|
| シート種別の変更 | 作成者 / Builder |
|
| Workspace の削除 | 作成者 | Workspace を削除すると、すべてのデータが直ちに消去され、復元できません。 |
| Workspace の移譲 | 作成者 | — |
| メンバーの削除 | 作成者 / Builder |
|
| アカウントの削除 | すべてのメンバー |
|
Admin はパスワードのリセット、ユーザーロールの編集、アカウントの無効化、アカウントの削除を行えます。
初期デフォルトアカウントのロールは編集できず、このアカウントを無効化または削除することもできません。
アカウントを削除すると、すべてのデータが直ちに消去され、復元できません。
Tier0 は OPC UA、Modbus、MQTT など、さまざまな産業用プロトコルへの接続に対応しています。
{ "name": "ua", "description": "", "protocol": "opcua", "endpoint": "opc.tcp://220.184.175.73:4841/demo/", "runtimeLocation": "local", "opcua": { "securityMode": "None", "securityPolicy": "None" }}サーバーアドレスとユニット ID のみが必要です。
{ "name": "modbus", "description": "", "protocol": "modbus-tcp", "endpoint": "tcp://220.184.175.73:1502", "runtimeLocation": "local", "modbus": { "unitId": 1 }}Tier0 は、デバイスからデータを受信する MQTT Broker としても、外部 MQTT Broker に接続するクライアントとしても使用できます。
Broker として:
クライアントとして:サードパーティーの Broker に接続します。
{"name": "111","description": "","protocol": "mqtt","endpoint": "mqtt://220.184.175.73:1883","runtimeLocation": "local","mqtt": { "clientId": "tier0UxxxxxxxxuwQVfi"}}Tier0 は、外部からアクセスできる HTTP サーバーとしても、他の HTTP サーバーの API を呼び出すクライアントとしても使用できます。
サーバーとして:
クライアントとして:サードパーティーの HTTP サーバーに接続します。
{ "name": "222", "description": "", "protocol": "http-api", "endpoint": "http://220.184.175.73:8088/api/telemetry", "runtimeLocation": "local", "role": "client", "http": { "authentication": "none" }}{ "name": "eee", "description": "", "protocol": "edge-sql", "endpoint": "mysql://hzoffice.tier0.dev:3307/demo_factory", "runtimeLocation": "local", "sql": { "queries": { "query1": "SELECT * FROM telemetry ORDER BY id DESC LIMIT 5" }, "tlsMode": "verify-full" }, "credentialRef": "ref_9ce47b8778xxxxxxxx7dad49a86dbad"}Tier0 の ID、データアクセス、デプロイの可用性、復旧に関する制御の概要。
Tier0 は、次の 2 つの側面からデータの安全性を確保します。
| エディション | セキュリティの範囲 |
|---|---|
| Cloud | プラットフォームへのアクセス制御と、認証が必要な MQTT および API へのアクセスを提供します。 |
| Enterprise | プラットフォームとデータへのアクセス制御に加え、プライベート環境向けのデプロイの可用性、バックアップ、復旧を提供します。 |
| Edge(オープンソース) | ローカルでのデータ接続とモデリングに使用します。内蔵 MQTT ブローカーは認証なしのサブスクリプションを許可します。 |
各エディションの位置付けについては、最適な製品の選択を参照してください。
| 対象 | Tier0 の仕組み | 詳細 |
|---|---|---|
| プラットフォームへのアクセス |
|
ユーザー管理 |
| Agent のアクセス | Agent は MCP を介して接続し、付与された権限の範囲でプラットフォームを操作します。 | Agent を接続する |
| アプリケーションへのアクセス | Tier0 は RBAC を使用してアプリケーションへのアクセスを制御します。 | アクセス制御 |
| アクセス方法 | Tier0 の仕組み | 詳細 |
|---|---|---|
| MQTT |
|
MQTT 認証情報と接続 |
| REST API | データへのアクセスには Tier0 が生成したキーが必要です。 | API リファレンス |
Enterprise は現在、センターノード向けに 2 つのデプロイ計画を提供しています。
| 計画 | 可用性の境界 | 詳細 |
|---|---|---|
| 標準デプロイ |
|
標準デプロイ計画 |
| 高可用デプロイ |
|
高可用デプロイ計画 |
Enterprise はデータベースのバックアップと復旧を提供します。復旧後はデプロイ状態を確認し、基本機能を検証して、プラットフォームにサインインできることを確認してください。
Tier0 API への接続、応答の確認、安全な書き込み再試行。
https://<your-tier0-host>/openapi/v2x-api-key リクエストヘッダーに Tier0 API キーを指定します。Cloud OpenAPI のエンドポイントでパス、パラメーター、制限、応答スキーマを確認できます。
/uns/ リクエストでは HTTP ステータスと応答本文の両方を確認します。成功時は 2xx かつ code: 0 で、結果は data にあります。error.code を確認し、調査用に requestId を保存します。200 でも各項目を確認します。一部の項目だけ失敗する場合があります。error.execution を確認し、未開始、ロールバック済み、コミット済み、結果不明のいずれかを判断します。error.retry.safe が true の場合に限り、同じ冪等キーで同一リクエストを再試行します。待機時間が示された場合は、error.retry.afterMs または Retry-After ヘッダー以上待ちます。この契約は dev3.0 に基づきます。呼び出す前に実際のインスタンスの契約バージョンと公開機能を確認してください。
POST を使います。ファイル URL とダウンロード、Record の購読には GET を使用し、購読は Server-Sent Events を返します。各エンドポイントのメソッドとスキーマを確認してください。code、msg、requestId、data が含まれます。Stream リクエスト、購読、ファイルダウンロードには別の応答形式があります。dryRun、expectedRevision、idempotencyKey を使用できます。事前検証の成功は書き込みの確定ではありません。非同期リクエストは jobId で結果を確認してください。パス、パラメーター、制限、応答スキーマは Enterprise OpenAPI のエンドポイントを参照してください。
Tier0 Builder に組み込まれた AI Skills のリファレンス。
Tier0 Builder Skills リポジトリの feature/cloud-new-architecture-migration ブランチには現在、要件、アプリ構築、プラットフォーム整合、ブラウザー機能、レスポンシブ設計、プレビュー障害に対応する 6 つの Skill があります。
app-srs産業向けアプリの要件定義の入口です。依頼から SRS を作成し、PRD を変換し、既存の SRS を改訂します。業務上の役割、ワークフロー、状態、検証、例外を整理し、初回リリースの範囲を定め、既定で specs/spec.md に保存します。要件だけが求められた場合や確認が必要な場合を除き、新規アプリは app-builder に引き継ぎます。
$app-srs を使って自動車部品工場の品質異常管理システムを設計してください。app-builder要件または specs/spec.md から動作する初回アプリを構築するか、既存アプリに大きな業務機能を追加します。必要なら先に app-srs で SRS を作成します。通常のフィールド、文言、スタイル、局所的な UI 修正には完全な Builder ワークフローは不要です。
機能の入口と操作経路、実データと状態変更、検証とロール権限、ビルド・プレビュー・対話操作を確認します。適切な一覧ページでは対象スキャフォールドの MetaListPage を実際のサービスと権限に接続します。
$app-builder を使って specs/spec.md から初回バージョンを構築してください。align-platform-appインポートしたアプリを Tier0 スキャフォールドへ移行するか、既存アプリを現在の契約に合わせます。古い Tier0 アプリ、独自 SQL データベースやブラウザー保存を使うアプリ、全面更新または限定的なプラットフォーム修正が必要なアプリが対象です。
クラウドアーキテクチャのスキャフォールドの正確なコミットと比較し、業務動作を保ちながらランタイム、ルーティング、Gateway ロール、プラットフォーム契約を合わせます。クラウドへの全面移行では、アプリ独自の永続レコードを @tier0/sdk-v2 で Tier0 UNS tables に移します。元のデータベースにある履歴レコードが必要なら、UNS 側へ別途インポートします。ビルドと実行時の動作を検証してから package.json にスキャフォールドのバージョンを記録します。
$align-platform-app を使い、業務コードを維持して最新の Tier0 スキャフォールドに合わせてください。browser-platform-capabilitiesQR/バーコード読み取り、写真撮影、位置情報、録音、ファイル読み取り、クリップボードを扱います。対象デバイスに適したブラウザー API と代替手段を選び、安全なコンテキスト、権限、iframe/WebView の制約を確認します。キャンセルや失敗時にはフォーム入力を保持し、代替データがライブ取得と異なる場合はその違いを明示します。成功、拒否、再試行、後片付けを検証します。
$browser-platform-capabilities を使って点検フォームに写真撮影とファイルアップロードの代替手段を追加してください。responsive-craft複雑なブレークポイント、連動する固定・スクロール領域、複数画面幅での監査とプレビューを扱います。単純なはみ出しや切れた操作部品は直接修正できます。audit は既存レイアウトの監査と修正、build は新規構築、preview は複数幅のライブプレビューです。
$responsive-craft audit を使ってダッシュボードのモバイルレイアウトを修正してください。$responsive-craft preview で 375、768、1024、1440 px を表示してください。preview-runtime-stability管理されたプレビューのインストール、起動、準備状態、ロール、ポート、HMR の障害を診断します。業務機能は構築しません。依存関係・ロックファイルのエラー(npm ERESOLVE を含む)、Vite/TanStack Start の起動、5173 の競合、/api/health、プレビューのロール、artifact.toml、HMR の全ページ再読み込みなどが対象です。最初の関連エラーを読み、確認できた原因を修正し、必要な場合だけ再起動して、元の障害、ヘルスチェック、対象ルートを検証します。
$preview-runtime-stability を使って「Preview loading timed out」を調査してください。app-srs。新規アプリは通常 app-builder に引き継ぎます。app-builder。align-platform-app。browser-platform-capabilities。responsive-craft。管理されたプレビューの障害:preview-runtime-stability。Tier0 Cloud の本番 SaaS サービスにおけるネットワーク境界、テナント分離、データ保護、セキュリティ運用について説明します。
適用範囲: AWS シンガポールリージョンにデプロイされた Tier0 Cloud の本番 SaaS サービス。
文書日付: 2026 年 10 月 22 日
Tier0 Cloud は、ネットワークアクセス制御、テナント分離、ID とアクセスの管理、データ暗号化、バックアップと復旧によって、ネットワーク攻撃や不正アクセスのリスクを低減します。本書では、プラットフォームのセキュリティ対策と、セキュリティインシデントが他のテナント、プラットフォーム内部のサービス、お客様のネットワークへ波及することを抑える制御の境界について説明します。
Tier0 Cloud の公開 Web および API へのアクセスは TLS で暗号化され、統一されたエッジ入口とアプリケーションゲートウェイを経由します。主要サービスの入口ではオリジンへのアクセスを検証し、検証要件を満たさない直接アクセスを拒否することで、エッジ入口を迂回したオリジンへのアクセスリスクを低減します。
本番環境は、クラウドアカウント、ネットワーク、クラスター、データベースの各層で開発環境およびステージング環境から分離され、アクセス認証情報も個別に管理されます。本番環境への管理アクセスには、認証済みの専用ネットワーク経路を使用します。
テナントのワークロードは個別の Kubernetes 名前空間で実行され、専用ノードプールとスケジューリング制約によって、プラットフォームのサービスおよび管理コンポーネントから分離されます。この仕組みは、テナントのアプリケーションとプラットフォームのコンポーネントが直接接触する範囲を制限し、あるアプリケーションでセキュリティインシデントが発生した場合の他のサービスへの影響を低減します。
テナントの名前空間に対する受信・送信通信には、デフォルトで拒否し、明示的なルールでのみ許可するネットワークポリシーを適用します。プラットフォームがポリシーを自動的に設定・同期し、クラスターのネットワークコンポーネントが適用します。
受信通信は、同一テナントのワークロードと、必要な業務機能を担うプラットフォームサービスからの通信に限定されます。送信通信は、クラスター内の DNS 名前解決、同一テナントのサービス、指定されたプラットフォームゲートウェイ、メッセージングサービス、割り当てられたデータベースエンドポイントに対して、ルールに従って許可されます。パブリックインターネットへのアクセスもネットワークポリシーの制約を受けます。明示的に許可された業務上の依存先を除き、プライベートネットワークアドレスへのアクセスを制限し、クラウドインスタンスのメタデータアドレスへの直接アクセスを遮断します。
これらの対策は、許可されていないテナント間接続や、テナントのワークロードからプラットフォーム内部ネットワークへのラテラルムーブメントを制限します。あるテナントのアプリケーションでセキュリティインシデントが発生しても、それだけで他のテナントやプラットフォームの管理コンポーネントへのアクセス権限が付与されることはありません。許可済みの業務接続にも、対応するネットワークルールと ID・アクセス制御が適用されます。
テナントのアプリケーションデータは、データベース層で論理的に分離されます。個別のデータベース単位が割り当てられる場合は、ネットワークアクセスルールによって接続元も制限されます。
プラットフォームはサービスの役割に応じてアクセス権限を設定し、各ワークロードがアクセスできるリソースを必要な機能の範囲に限定します。ネットワーク分離と ID に基づく認可を組み合わせることで、影響を受けたワークロードがアクセスできるリソースの範囲を制限します。
本節のテナント分離対策は、Tier0 Cloud のプラットフォーム内部に適用されます。お客様がコネクター、ゲートウェイ、その他の連携方式で内部システムを接続する場合、お客様のネットワークへのアクセス境界は、実際の接続方式、ルーティング、ファイアウォールルール、使用する認証情報に付与された権限にも依存します。
接続時には、業務に必要な宛先アドレス、ポート、アカウント権限だけを許可し、接続コンポーネントと他の内部システムをネットワーク上で分離してください。プラットフォーム内部の分離は、お客様側のネットワークアクセス制御を代替するものではありません。双方が具体的な接続構成に基づいてアクセス範囲を決定・検証し、許可済みの接続を経由して他の内部システムへ影響が波及するリスクを抑える必要があります。
プラットフォームは、データの転送、保存、アクセスに対して次の保護対策を実施します。
Tier0 Cloud は、本番データベースと、バックアップ対象に含まれるサービス単位のデータベースをバックアップします。バックアップデータはアクセスが制限された専用のオブジェクトストレージに保存され、対応する保持ポリシーに従って管理されます。
バックアップジョブには専用の ID を使用し、指定された保存先で必要な読み取り・書き込み操作だけを許可します。バックアップオブジェクトの削除権限は付与しません。保持期限が切れたバックアップはストレージのライフサイクルルールで削除し、バックアップ用の認証情報が漏えいした場合に復旧用データが削除されるリスクを低減します。
バックアップ完了後は整合性を確認し、分離された環境でのリストア検証によってバックアップが利用可能であることを確認します。アプリケーション設定はバージョン管理し、ビルド成果物は非公開のコンテナーイメージレジストリに保存することで、サービスの復旧とバージョンのロールバックを支援します。
本番環境への管理アクセスには、個人ごとに割り当てられた ID を使用し、最小権限の原則に従って権限を付与します。機密性の高い操作を行うコンソールの ID には、多要素認証を必須とします。
日常点検には、ワークロードの状態、ログ、イベントを参照できる制限付きの読み取り専用 ID を使用します。この ID では、機密性の高い認証情報の読み取り、リソースの変更、リモートコマンドの実行はできません。本番環境の変更には、個別に認可された ID と手順を使用します。
インフラストラクチャ設定、デプロイマニフェスト、運用スクリプトはバージョン管理します。本番環境の変更では、目的、影響範囲、検証手順、ロールバック計画を明確にし、実行者の ID、設定差分、検証結果を記録して、追跡と復旧を可能にします。
プラットフォームは、本番環境の稼働メトリクス、ログ、健全性情報を集約し、異常アラートを運用対応チャネルへ送信します。監視対象には、サービスの可用性、エラー率、データベースの健全性、証明書の有効期限、バックアップジョブの状態、クラスターの稼働状態が含まれます。
セキュリティインシデントが発生した場合は、影響範囲の封じ込めを優先し、関連するログ、設定、発生から対応までの時系列記録を保全します。必要な隔離と調査を完了した後にサービスを復旧し、その後、振り返りと是正措置の進捗管理を行います。インシデント対応中の本番環境の変更も、所定の手順に従って認可・記録します。
セキュリティ評価、お客様によるデューデリジェンス、脆弱性の疑いについては、Tier0 の担当者またはセキュリティチームにお問い合わせください。非公開のアーキテクチャや制御の詳細は、適切な秘密保持の取り決めの下で提供できる場合があります。初回のお問い合わせには、アクセス認証情報、秘密鍵、お客様の機密データを含めないでください。
Tier0 OpenAPI 5.0.0 · 操作: 141 · スキーマ: 363
API のフィールド名、例、元の説明は、同梱の英語版 OpenAPI 仕様に従います。
Collection management endpoints
Read collection data definitions
Return field definitions and data-operation capabilities by collectionId for constructing queries and writes.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/discovery/describe' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"collectionId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
collectionId | string | はい | Collection ID identifying the owner of business records and samples. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"collectionId": "string",
"description": "string",
"fields": [
"value"
],
"indexStatus": [
"value"
],
"indexes": [
"value"
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | CollectionDescription. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Search accessible collections
Search collections accessible to the current credentials using keywords and pagination.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/discovery/search' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"search":"string","page":0,"size":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
search | string | いいえ | Search names or supported text fields; not SQL. |
page | integer | いいえ | Page number, starting at 1. |
size | integer | いいえ | Page size; see this endpoint's maximum or the capability catalog. Page size, at most 200. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"asOf": 0,
"complete": false,
"hasMore": false,
"list": [
"value"
],
"nextCursor": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | DiscoveryResult. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Capability endpoints
Read the capability catalog
Return current UNS resource, query and write capabilities and limits.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/catalog/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'application/json
OpenAPI では、このリクエストボディのオブジェクトフィールドが宣言されていません。
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"capabilities": {},
"contractVersion": "string",
"limits": {},
"models": [
"value"
],
"operations": [
"value"
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | DocCatalog. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Discover Edges in the current workspace
List Edge nodes in the current workspace. This is a Center-only read operation; do not send X-Fleet-Node-Id. - **Access:** A workspace identity with uns.read can call this endpoint. App-bound identities cannot. - **Query:** Use page and size to paginate. Optionally filter by keyword or status. - **Result:** Returns each node's ID, name, description and infrastructure status. Credentials, sessions and host details are excluded. To read a specific Edge node's catalog, Sources, Streams, Collections or business data, use its ID in the X-Fleet-Node-Id header on the corresponding endpoint.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/edges/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"size":0,"keyword":"string","status":"unjoined"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
page | integer | いいえ | OpenAPI に記載なし |
size | integer | いいえ | OpenAPI に記載なし |
keyword | string | いいえ | OpenAPI に記載なし |
status | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"list": [
"value"
],
"total": 0,
"page": 0,
"size": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Namespace endpoints
Query the namespace
Use queries to retrieve directories and topics by parent, optionally including ancestors.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/namespace/query' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"queries":[{"queryId":"value","page":"value","size":"value","search":"value","ids":"value"}]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
queries | array<object> | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"results": []
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Read topic views
Read bound field values, availability and associated timestamps.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/topics/view' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"queries":[{"queryId":"value","topicId":"value"}]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
queries | array<object> | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"results": []
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Metadata management endpoints
Insert one metadata object
Create a directory, topic or collection. With appId/alias, only collection creation is allowed. The server atomically binds app grants, requires idempotencyKey and rechecks current Builder permissions. Prefer the ISA-95 equipment hierarchy for industrial data: Enterprise > Site > Area > Work Center (production line, production unit, process cell, or storage zone) > Work Unit. First query existing directories with paginated metadataFind and reuse them. Create only known, meaningful business levels; do not invent enterprises, sites, or equipment, or substitute control activity Levels 0-4 for the equipment hierarchy. Attach data and references with parentId. Place shared data under a suitable common ancestor, and organize non-industrial data by its actual business hierarchy. User-facing names of directories, collections, and references must be concise, readable, and describe their business purpose. Follow the user's language preferences and established terminology; Chinese is not required and translation is not mandatory. name is the sole user-facing business name. App SDK alias is a separate stable program identifier, for example alias=production_orders and name=Production Orders. For example, use Quality Inspection Records or its equivalent in the user's language. Do not use program aliases such as quality_records as display labels, or use App-timestamp, random strings, or IDs as names or meaningless suffixes. Dates, versions, and equipment numbers with actual business meaning may remain. Rename only changes name; keep ID and alias unchanged to preserve program references. Report sibling name collisions explicitly; never append random suffixes automatically. Do not automatically move existing data or change permissions to reorganize directories.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","id":"string","data":{},"appId":"string","alias":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | はい | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
id | string | いいえ | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
appId | string (uuid) | いいえ | OpenAPI に記載なし |
alias | string | いいえ | OpenAPI に記載なし |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"insertedId": "string",
"status": "validated",
"replayed": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Aggregate metadata
Supports match/project/group/sort/skip/limit for permitted metadata kinds, without cross-table joins or writes.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:aggregate' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","kinds":["directory"],"state":"active","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"pipeline":["string"]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | いいえ | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
kinds | array<string> | いいえ | OpenAPI に記載なし |
state | string | いいえ | Active, soft-deleted or all objects. |
filter | object | いいえ | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
pipeline | array<object> | はい | Supports $match/$project/$group/$sort/$skip/$limit/$distinct. $distinct uses JSONB value ordering and the outer pagination options. |
page | object | いいえ | OpenAPI に記載なし |
limit | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"items": [
"value"
],
"pageInfo": {
"mode": "value",
"hasMore": "value",
"nextCursor": "value",
"nextPage": "value",
"snapshotScope": "value"
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Execute mixed metadata writes
At most 200 operations of one kind. Atomic by default; for non-atomic execution, ordered controls continuation after errors and results retain original indices. After any non-atomic item commits, failures report error.execution=committed and retry.safe=false. Error data contains cumulative results with nextIndex and optionally unknownUntil. Indices below nextIndex absent from errors committed; [nextIndex, unknownUntil) has unknown outcome. Retry with the same idempotency key if available. Without a key, only client-ID inserts and ID-based replacements/deletes can be reconciled by reading IDs. Server-generated-ID inserts, filter-selected operations and incremental updates such as $inc cannot be safely reconciled; always use keys for these writes. Without unknownUntil, continuation from nextIndex is safe. Only when nothing committed is execution rolledBack or notStarted. Prefer the ISA-95 equipment hierarchy for industrial data: Enterprise > Site > Area > Work Center (production line, production unit, process cell, or storage zone) > Work Unit. First query existing directories with paginated metadataFind and reuse them. Create only known, meaningful business levels; do not invent enterprises, sites, or equipment, or substitute control activity Levels 0-4 for the equipment hierarchy. Attach data and references with parentId. Place shared data under a suitable common ancestor, and organize non-industrial data by its actual business hierarchy. User-facing names of directories, collections, and references must be concise, readable, and describe their business purpose. Follow the user's language preferences and established terminology; Chinese is not required and translation is not mandatory. name is the sole user-facing business name. App SDK alias is a separate stable program identifier, for example alias=production_orders and name=Production Orders. For example, use Quality Inspection Records or its equivalent in the user's language. Do not use program aliases such as quality_records as display labels, or use App-timestamp, random strings, or IDs as names or meaningless suffixes. Dates, versions, and equipment numbers with actual business meaning may remain. Rename only changes name; keep ID and alias unchanged to preserve program references. Report sibling name collisions explicitly; never append random suffixes automatically. Do not automatically move existing data or change permissions to reorganize directories.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:bulkWrite' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","operations":["string"],"atomic":false,"ordered":false,"dryRun":false}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | はい | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
operations | array<object> | はい | OpenAPI に記載なし |
atomic | boolean | いいえ | Atomic batch commit by default. false commits items independently; each object still receives full permission and domain validation. |
ordered | boolean | いいえ | With atomic=false, controls stopping or continuing after errors; atomic batches reject ordered=false. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"insertedCount": 0,
"matchedCount": 0,
"modifiedCount": 0,
"deletedCount": 0,
"restoredCount": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response. After a partial commit, error.execution=committed and retry.safe=false; data contains cumulative results. | application/json |
Count metadata objects
Count matching objects within the specified kind and state.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:count' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","kinds":["directory"],"state":"active","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]}}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | いいえ | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
kinds | array<string> | いいえ | OpenAPI に記載なし |
state | string | いいえ | Active, soft-deleted or all objects. |
filter | object | いいえ | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"count": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Soft-delete metadata in bulk
Conditional bulk operation within an explicit kind. Atomic batch; reject everything if matches exceed maxDocs. Use bulkWrite when objects need independent revision checks. Soft deletion moves objects to Trash; deleting a directory atomically moves its entire active subtree to Trash. References do not block deletion. Referring configurations and Record/Sample data are retained; historical data remains readable under existing authorization while in Trash, with writes rejected.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:deleteMany' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"atomic":true,"maxDocs":0,"dryRun":false}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | はい | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
filter | object | はい | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
atomic | boolean | いいえ | Atomic batch commit; use bulkWrite for per-item commits. |
maxDocs | integer | いいえ | Reject the entire request if the match limit is exceeded; do not truncate the write scope. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"deletedCount": 0,
"results": [
"value"
],
"errors": [
"value"
],
"status": "validated",
"replayed": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Soft-delete one metadata object
Soft deletion moves objects to Trash; deleting a directory atomically moves its entire active subtree to Trash. References do not block deletion. Referring configurations and Record/Sample data are retained; historical data remains readable under existing authorization while in Trash, with writes rejected.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:deleteOne' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"expectedRevision":0,"dryRun":false}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | はい | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
filter | object | はい | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
expectedRevision | integer | いいえ | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
returnDocument | string | いいえ | none returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion. |
projection | object | いいえ | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"deletedCount": 0,
"status": "validated",
"replayed": false,
"value": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Query metadata
Query directories, topics and collections. Use bare configuration field names and _id / _meta.* for system fields. Returns items/pageInfo.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:find' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","kinds":["directory"],"state":"active","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | いいえ | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
kinds | array<string> | いいえ | OpenAPI に記載なし |
state | string | いいえ | Active, soft-deleted or all objects. |
filter | object | いいえ | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
projection | object | いいえ | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
page | object | いいえ | OpenAPI に記載なし |
limit | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"items": [
"value"
],
"pageInfo": {
"mode": "value",
"hasMore": "value",
"nextCursor": "value",
"nextPage": "value",
"snapshotScope": "value"
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | MetadataPage. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Permanently delete directories, references, or collections from the recycle bin
Accepts up to 200 explicit Directory, Topic, or Collection IDs in the current workspace recycle bin. Single and batch deletion use the same operation. Execution returns accepted/jobId. Query jobs for per-item completion; accepted does not mean permanently deleted. Targets are cleaned independently; a failure does not roll back completed items. Purging a Collection deletes all records (including soft-deleted records), samples, and collection metadata, and revokes App grants to the collection. Indexes are reclaimed in the background. Referencing Topics, Sources, and Streams are preserved. References describe impact rather than blocking deletion; data access reports the missing target. Restore is unavailable after cleanup starts. Interrupted work can resume; same-key retries do not reselect completed targets. Optional dryRun validates targets without creating a task or deleting data. No prerequisite preflight, force flag, or confirmation token is required. Directories include their entire deleted subtree, including previously deleted descendants. Any active descendant rejects the request. Descendants are cleaned before empty directories. Deleting a Topic removes only its reference metadata and preserves the referenced collections, records, and samples. To empty the recycle bin, freeze the current target IDs and submit batches by kind. Do not submit descendants separately when their directory is selected. Items moved to trash with their owner App and their descendants cannot be purged independently; restore or permanently delete the owner App in App Trash. A directory containing these items is rejected as a whole.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:purge' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","ids":["string"],"dryRun":false,"idempotencyKey":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | はい | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
ids | array<string> | はい | OpenAPI に記載なし |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"results": [
{
"opId": "item-0",
"action": "meta.purge",
"kind": "metadata",
"id": "example-id",
"revision": 1,
"status": "updated"
}
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | DocUnsV2MetadataPurgeOutcome. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Replace one metadata object
Fully replace writable configuration with schema, index and reference validation; system fields remain server-managed. Upsert insertion requires explicit _id and complete configuration.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:replaceOne' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"expectedRevision":0,"replacement":{}}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | はい | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
filter | object | はい | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
expectedRevision | integer | いいえ | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
replacement | object | はい | OpenAPI に記載なし |
upsert | boolean | いいえ | Supported only for single updates/replacements; filter must explicitly match _id and inserted configuration must be complete and valid. Deleted objects with the same ID are not restored automatically. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
returnDocument | string | いいえ | none returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion. |
projection | object | いいえ | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"matchedCount": 0,
"modifiedCount": 0,
"upsertedId": "string",
"status": "validated",
"replayed": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Restore metadata by ID
Restore atomically, rechecking current names, parents and references and incrementing revision. Restoring a directory restores only the subtree from the same deletion batch; batch children must be restored with the directory. Other dependencies are not implicitly restored.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:restore' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","items":[{"id":"value","expectedRevision":"value"}],"dryRun":false,"idempotencyKey":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | はい | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
items | array<object> | はい | OpenAPI に記載なし |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"restoredCount": 0,
"items": [
"value"
],
"status": "validated",
"replayed": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Execute a metadata transaction
Atomic operations across directories, topics and collections. opId/dependsOn control dependencies; parentId/collectionId accept {ref:opId} to reference creation results. At most 200 items; dryRun=true preflights and then rolls back. Prefer the ISA-95 equipment hierarchy for industrial data: Enterprise > Site > Area > Work Center (production line, production unit, process cell, or storage zone) > Work Unit. First query existing directories with paginated metadataFind and reuse them. Create only known, meaningful business levels; do not invent enterprises, sites, or equipment, or substitute control activity Levels 0-4 for the equipment hierarchy. Attach data and references with parentId. Place shared data under a suitable common ancestor, and organize non-industrial data by its actual business hierarchy. User-facing names of directories, collections, and references must be concise, readable, and describe their business purpose. Follow the user's language preferences and established terminology; Chinese is not required and translation is not mandatory. name is the sole user-facing business name. App SDK alias is a separate stable program identifier, for example alias=production_orders and name=Production Orders. For example, use Quality Inspection Records or its equivalent in the user's language. Do not use program aliases such as quality_records as display labels, or use App-timestamp, random strings, or IDs as names or meaningless suffixes. Dates, versions, and equipment numbers with actual business meaning may remain. Rename only changes name; keep ID and alias unchanged to preserve program references. Report sibling name collisions explicitly; never append random suffixes automatically. Do not automatically move existing data or change permissions to reorganize directories.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:transact' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"operations":[{"opId":"value","action":"value","kind":"value","id":"value","filter":"value"}],"dryRun":false,"idempotencyKey":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
operations | array<object> | はい | OpenAPI に記載なし |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"results": [
"value"
],
"status": "validated",
"replayed": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Update metadata in bulk
Conditional bulk operation within an explicit kind. Atomic batch; reject everything if matches exceed maxDocs. Use bulkWrite when objects need independent revision checks.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:updateMany' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"update":{"$set":{},"$unset":{},"$setOnInsert":{}},"atomic":true,"maxDocs":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | はい | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
filter | object | はい | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
update | object | はい | Supports only $set/$unset/$setOnInsert. Configuration paths omit data.; system fields are read-only. Replace arrays as whole fields. |
atomic | boolean | いいえ | Atomic batch commit; use bulkWrite for per-item commits. |
maxDocs | integer | いいえ | Reject the entire request if the match limit is exceeded; do not truncate the write scope. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"matchedCount": 0,
"modifiedCount": 0,
"upsertedId": "string",
"results": [
"value"
],
"errors": [
"value"
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Update one metadata object
Selection and update occur in one transaction with domain validation. Upsert insertion requires explicit _id and complete configuration.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:updateOne' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"expectedRevision":0,"update":{"$set":{},"$unset":{},"$setOnInsert":{}}}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | はい | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
filter | object | はい | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
expectedRevision | integer | いいえ | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
update | object | はい | Supports only $set/$unset/$setOnInsert. Configuration paths omit data.; system fields are read-only. Replace arrays as whole fields. |
upsert | boolean | いいえ | Supported only for single updates/replacements; filter must explicitly match _id and inserted configuration must be complete and valid. Deleted objects with the same ID are not restored automatically. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
returnDocument | string | いいえ | none returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion. |
projection | object | いいえ | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"matchedCount": 0,
"modifiedCount": 0,
"upsertedId": "string",
"status": "validated",
"replayed": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Query resource references
Query resource references by targets. Collection App references include grants and policy status for that Collection. Stream references include only frozen dependencies of the currently effective release: relationship.access describes read/write access to this target, and data.sourceIds contains the unique, sorted Source IDs bound by the same release. With Source read permission, no bindings returns an empty array. Without that permission, the field is omitted while the Stream reference remains visible. An omitted field does not mean no bindings. Drafts, historical releases and disabled Streams are excluded. Version selection is not supported. Use kinds to select app/stream/source/topic. status=active excludes disabled configuration; filtering precedes permission checks and pagination. Dependencies do not prove active writes or per-record provenance. Each target is paginated independently and sorted by kind and ID. Continue using nextPage only for targets with hasMore. The total request row budget is 2000. With size=20, a batch can contain at most 100 targets. Hidden reference items continue to be indicated only by hasHiddenReferences.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/references/query' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"queries":[{"queryId":"value","page":"value","size":"value","targets":"value","kinds":"value"}]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
queries | array<object> | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"results": []
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Job endpoints
Query job status
Query asynchronous job states and results by jobIds; queryId in queries correlates results. App credentials cannot submit asynchronous jobs or call this endpoint.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/jobs/query' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"queries":[{"queryId":"value","jobIds":"value"}]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
queries | array<object> | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"results": []
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Source endpoints
Discover attached Edge devices
Requires X-Fleet-Node-Id. Enumerate live USB HID and serial hardware before creating a Source, including device addresses, existing bindings, checkedAt, revision and completeness. Optional kind is usb-hid or serial. Discovery does not capture input text. Serial acquisition requires a protocol adapter. Users must identify ambiguous keyboard devices remotely. No on-site test scan is required.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/devices/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"usb-hid"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | Fresh target Edge inventory. checkedAt is observation time; revision hashes device and binding state; complete=false includes per-kind discovery errors. devices contain deviceId, kind, label, address, canCreateSource, requiredParameters and existing sources. Serial discovery does not imply serial acquisition support. Empty devices only proves absence when complete=true. Never classify an arbitrary HID keyboard as a scanner without device identity supplied by the user. |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Discover Source resources
Read the vendor service directory using id and the current expectedRevision. SAP OData is currently supported. Source management, data read and credential-use permissions are required; endpoint, path, method and authentication overrides are rejected. Returns resource names and references within the service root without credentials or the Source endpoint. Credential use is audited, so this operation is not a side-effect-free query.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/discover' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","expectedRevision":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
expectedRevision | integer | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"id": "string",
"revision": 0,
"sourceType": "string",
"resources": [
"value"
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Create a Source document
Create using the shared native document with top-level endpoint and protocol fields. Supply write-only credentials or an existing document.credentialRef. Inline credentials require credential management permission and an idempotency key, including each batch item. dryRun validates without storing credentials or contacting the upstream.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","document":{"credentialRef":"string","description":"string","endpoint":"string","extensions":{"tls":"value","ingress":"value"},"file":{"caCertificate":"value","directories":"value","resources":"value","sshHostKey":"value"}},"credentials":{"kind":"basic","username":"string","secret":"string","values":{},"certificateFileId":"string"},"items":[{"id":"value","document":"value","credentials":"value"}]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
document | object | いいえ | SourceDefinition. スキーマの章で参照先のスキーマを確認してください。 |
credentials | object | いいえ | SourceCredentials. スキーマの章で参照先のスキーマを確認してください。 |
items | array<object> | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Update Source credentials
Provision or rotate shared write-only credentials using Source ID and expectedRevision under uns.source.credentials authority and source:manage scope. For dependencies, inspect sourceImpact with action=credentials first and explicitly supply confirmedImpactRevision after review. Optional Fleet targeting uses the same native request. Credential material is never returned.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/credentials/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0,"credentials":{"kind":"basic","username":"string","secret":"string","values":{},"certificateFileId":"string"}}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | はい | Required idempotency key; reuse for the same request, never for a different request. |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
expectedRevision | integer | はい | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
credentials | object | はい | SourceCredentials. スキーマの章で参照先のスキーマを確認してください。 |
confirmedImpactRevision | string | いいえ | Dependency impact confirmation token. May be omitted only when there are no draft, active or historical Stream dependencies. An explicitly supplied token is always validated and cannot be empty. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Delete a Source document
Delete the current Source using id and expectedRevision. Submit the dependency impact confirmation when required. dryRun validates without committing. Fleet targeting uses the same native document contract.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0,"confirmedImpactRevision":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
expectedRevision | integer | はい | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
confirmedImpactRevision | string | いいえ | Dependency impact confirmation token. May be omitted only when there are no draft, active or historical Stream dependencies. An explicitly supplied token is always validated and cannot be empty. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Read a source document
Read a source's full native configuration document by id, requiring source management permission.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","view":"summary"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | Positive decimal int64 identifier; always a string on the wire. |
view | string | いいえ | summary requires view permission and omits scripts/connection settings. full or omission requires management permission; API keys also require full_access, and MCP requires the corresponding management scope. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
List source documents
List sources with pagination and filters such as protocol and health. Returns safe summaries by default. includeDocument=true requires management permission and includes full native configuration.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"size":0,"search":"string","protocol":"http-api","health":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
page | integer | いいえ | OpenAPI に記載なし |
size | integer | いいえ | OpenAPI に記載なし |
search | string | いいえ | OpenAPI に記載なし |
protocol | string | いいえ | OpenAPI に記載なし |
health | string | いいえ | OpenAPI に記載なし |
archived | boolean | いいえ | OpenAPI に記載なし |
includeDocument | boolean | いいえ | False returns safe summaries for viewers. True additionally requires current Source manage permission and returns full native editor documents, including opaque references. |
desiredState | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"list": [
"value"
],
"total": 0,
"page": 0,
"size": 0,
"hasMore": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Complete Source OAuth authorization
Complete the Source authorization flow using its one-time state and code under Source credential management authority. Credentials remain write-only.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/oauth/complete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","state":"string","code":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
state | string | はい | OpenAPI に記載なし |
code | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Start Source OAuth authorization
Start the authorization flow for the selected Source under Source credential management authority. Uses the normal source:manage API Key scope; Fleet targeting forwards the same native contract.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/oauth/start' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","redirectUri":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
redirectUri | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Update native Edge Source enabled state
Requires X-Fleet-Node-Id and Source management permission. Read the target Source revision first; submit dryRun, id, expectedRevision and desiredState (enabled or disabled). Keep any required dependency impact confirmation and a stable idempotency key. The Edge performs final permission and version checks. Requests without a target fail before dispatch; this does not modify center Sources.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/state/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"id":"string","expectedRevision":0,"desiredState":"enabled","idempotencyKey":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dryRun | boolean | はい | true validates only; false performs writes. |
id | string | はい | OpenAPI に記載なし |
expectedRevision | integer | はい | OpenAPI に記載なし |
desiredState | string | はい | OpenAPI に記載なし |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
confirmedImpactRevision | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | Native Edge Source result; inspect the target catalog for its exact versioned response. |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Update source documents
Update a source with document or patch and its current expectedRevision. Name and description changes can be submitted directly. Connection changes can also be submitted directly when there are no Stream references; otherwise supply a confirmedImpactRevision for the exact change. A successful commit returns the complete Source; dryRun=true validates only.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0,"document":{"credentialRef":"string","description":"string","endpoint":"string","extensions":{"tls":"value","ingress":"value"},"file":{"caCertificate":"value","directories":"value","resources":"value","sshHostKey":"value"}}}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | いいえ | Positive decimal int64 identifier; always a string on the wire. |
expectedRevision | integer | いいえ | OpenAPI に記載なし |
document | object | いいえ | SourceDefinition. スキーマの章で参照先のスキーマを確認してください。 |
confirmedImpactRevision | string | いいえ | Cloud requires explicit expectedRevision. confirmedImpactRevision may be omitted only when the same mutation transaction proves there are no draft, active or historical Stream references. Any supplied confirmation remains bound to the exact intent and dependency set. Confirmation never substitutes authorization or idempotency. |
patch | object | いいえ | SourceDefinitionPatch. スキーマの章で参照先のスキーマを確認してください。 |
items | array<object> | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Read source change history
Read source revision history by id; use beforeRevision to page backward.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/history' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","beforeRevision":0,"size":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
beforeRevision | integer | いいえ | OpenAPI に記載なし |
size | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"sourceID": "string",
"currentRevision": 0,
"deleted": 1,
"total": 0,
"missingRevisionCount": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Inspect Source mutation dependencies
Submit id, expectedRevision and action. For credential rotation use action=credentials without document, patch or secrets. Review all returned dependencies before explicitly passing confirmedImpactRevision to credentials/update. The token binds ID, revision, dependency snapshot and action; it does not include a random credential reference. Never automatically confirm an impact.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/impact' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","expectedRevision":0,"action":"update","document":{"credentialRef":"string","description":"string","endpoint":"string","extensions":{"tls":"value","ingress":"value"},"file":{"caCertificate":"value","directories":"value","resources":"value","sshHostKey":"value"}},"offset":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
expectedRevision | integer | はい | OpenAPI に記載なし |
action | string | はい | OpenAPI に記載なし |
document | object | いいえ | SourceDefinition. スキーマの章で参照先のスキーマを確認してください。 |
offset | integer | いいえ | OpenAPI に記載なし |
size | integer | いいえ | OpenAPI に記載なし |
impactRevision | string | いいえ | Opaque exact-intent confirmation from sourceImpact. Never inferred, synthesized or refreshed automatically. |
patch | object | いいえ | SourceDefinitionPatch. スキーマの章で参照先のスキーマを確認してください。 |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"impactRevision": "string",
"sourceID": "string",
"sourceRevision": 0,
"action": "update",
"complete": 1
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Read source observations
Read observations for items in a batch; statistics cover accepted execution tasks.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/observations/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"items":[{"id":"value","expectedRevision":"value"}],"view":"summary"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | array<object> | はい | OpenAPI に記載なし |
view | string | いいえ | summary returns only the latest durable admission time for each requested revision; full preserves the 24-hour counters. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Probe a source connection
Probe the source within timeoutMs. HTTP probes check network connectivity only; they do not send business HTTP requests or establish successful authentication or collection. dryRun=true validates the probe request only.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/probe' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"id":"string","timeoutMs":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
dryRun | boolean | はい | true validates only; false performs writes. |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
timeoutMs | integer | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
List source protocols
Return supported source protocols and their configuration capabilities.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/protocols/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'application/json
OpenAPI では、このリクエストボディのオブジェクトフィールドが宣言されていません。
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
List declared Edge Source resources
Use the Source ID to list declared resources, supported modes, input and output schemas, and configuration revisions. Use the target node's native Source ID with X-Fleet-Node-Id, or a cloud Edge reference ID without the header. Import a declared Teamcenter vendor:teamcenter:file:<selectionId> into a formal private Asset with await api.assets.importSource(sourceAlias,resourceRef) in an integration Stream. First declare the bound Source with api.sources.use(alias). This side effect is bounded to 8 MiB and 60 seconds, returns fileKey/filePath/sha256/sizeBytes and version UIDs, and uses the effect ledger and idempotent SYS confirmation. Paths, URLs and tickets are not accepted.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/resources/catalog' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","configRevision":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
configRevision | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"id": "string",
"configRevision": 0,
"protocol": "string",
"sourceType": "string",
"resources": [
"value"
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Preview an Edge Source resource
Read a bounded sample through the target Edge using the catalog revision and resourceRef. Credentials stay on the Edge. Only declared resources can be read. Device addresses, authentication and vendor request paths cannot be overridden.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/resources/preview' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","configRevision":0,"resourceRef":"string","params":{"limit":0,"createdDateTimeBegin":"string","createdDateTimeEnd":"string","material":"string","baseUnit":"string"},"timeoutMs":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
configRevision | integer | はい | OpenAPI に記載なし |
resourceRef | string | はい | OpenAPI に記載なし |
params | object | いいえ | OpenAPI に記載なし |
timeoutMs | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | Bounded native result. Interpret fields using the selected resource output schema. |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Read an Edge Source resource page
Read a bounded page using an opaque cursor issued for the same Source configuration and resource. Discover the specific Edge resource first. Named resources include file directories, EDI exchanges, SQL queries, controller history, approved Teamcenter files and Salesforce Bulk or deletion windows. Connections, paths, query text and vendor tickets remain on Edge. Commit the cursor only after all returned records are durably written. Preserve a returned checkpoint on the final page for incremental resources. Poll a pending Bulk job using its returned cursor. An empty pending page is not completion.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/resources/scan' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","configRevision":0,"resourceRef":"string","cursor":"string","params":{"maxItems":0,"createdDateTimeBegin":"string","createdDateTimeEnd":"string","material":"string","baseUnit":"string"}}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
configRevision | integer | はい | OpenAPI に記載なし |
resourceRef | string | はい | OpenAPI に記載なし |
cursor | string | いいえ | OpenAPI に記載なし |
params | object | いいえ | OpenAPI に記載なし |
limit | integer | はい | Use the resource catalog bounds. Only Salesforce object queries support a native page of 200. |
timeoutMs | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"resourceRef": "string",
"configRevision": 0,
"items": [
"value"
],
"nextCursor": "string",
"hasMore": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Read source runtime status
Read the current runtime status of a source by id.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/runtime/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"sourceId": "string",
"revision": 0,
"state": {
"schemaVersion": "value",
"health": "value",
"healthMessage": "value",
"lastDataAt": "value",
"checkedAt": "value"
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Validate source configuration
Validate a native SourceDefinition document, including protocol, endpoint and protocol parameters, without creating a Source.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/validate' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"document":{"credentialRef":"string","description":"string","endpoint":"string","extensions":{"tls":"value","ingress":"value"},"file":{"caCertificate":"value","directories":"value","resources":"value","sshHostKey":"value"}}}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
document | object | はい | SourceDefinition. スキーマの章で参照先のスキーマを確認してください。 |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Stream endpoints
Read stream-entry grants
Read grants, current release bindings and permission ceilings by code and recipient (app/user only), returning snapshotToken for concurrency checks. Requires a current management session or full_access personal/agent key with stream.requests.manage and uns.source.manage. App and service keys cannot configure grants. Source configuration and credentials are not returned.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/stream-requests/grants/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"code":"string","principalKind":"app","principalID":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | OpenAPI に記載なし |
principalKind | string | はい | OpenAPI に記載なし |
principalID | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"code": "string",
"principalKind": "app",
"principalID": "string",
"status": "string",
"bindingDigest": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | CloudStreamRequestGrantInfo. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Set or revoke stream-entry grants
Use expectedSnapshotToken from get to atomically modify grants without resubmitting all target revisions. active=1 adds or updates; actions permits only stream.requests.read, stream.requests.invoke and stream.requests.write, and write requires invoke. Resource management includes view, invoke and write operations; stream.requests.manage is the caller's grant-configuration capability. active=2 revokes all historical targets; actions must be empty. Neither recipient nor current release needs to be online. Legacy version fields remain supported; the two validation modes are mutually exclusive. After a version conflict or lost response, reread and reconcile current state before changing it; do not overwrite blindly.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/stream-requests/grants/set' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"code":"string","principalKind":"app","principalID":"string","active":1,"expectedBindingDigest":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | OpenAPI に記載なし |
principalKind | string | はい | OpenAPI に記載なし |
principalID | string | はい | OpenAPI に記載なし |
active | integer | はい | OpenAPI に記載なし |
expectedBindingDigest | string | いいえ | OpenAPI に記載なし |
expectedCodeRevision | integer | いいえ | Legacy code CAS revision; new callers use expectedSnapshotToken. The modes are mutually exclusive. |
actions | array<string> | いいえ | OpenAPI に記載なし |
targetRevisions | array<object> | いいえ | Legacy target revision list; use expectedSnapshotToken for revocation when there are many historical targets. |
expectedSnapshotToken | string | いいえ | Server-generated authorization snapshot version, for concurrency checking only, not an invocation credential. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"code": "string",
"principalKind": "app",
"principalID": "string",
"revision": 0,
"active": 1
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | CloudStreamRequestGrantMutation. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Create a stream document
Create a Stream from document or program; dryRun=true validates only. Bind an existing Edge Source using target:{fleetNodeId,sourceId,configRevision} and resources from that revision's catalog. When Modbus acquisition.ranges is omitted, the server resolves selected ranges from the target resource catalog. You may provide pollIntervalMs separately; do not copy unitId, writable, connection endpoints or credentials.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","document":{"name":"string","description":"string","model":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"]},"program":{"name":"string","description":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"],"sourceBindings":["value"]},"expectedSourceRevision":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
document | object | いいえ | CloudStreamDocument. スキーマの章で参照先のスキーマを確認してください。 |
program | object | いいえ | RuntimeStreamDefinition. スキーマの章で参照先のスキーマを確認してください。 |
expectedSourceRevision | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Disable a stream document
Disable by id, using both expectedRevision and expectedActiveRelease to prevent concurrent overwrites; dryRun=true validates only.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/disable' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","expectedRevision":0,"dryRun":false,"idempotencyKey":"string","expectedActiveVersion":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
expectedRevision | integer | はい | OpenAPI に記載なし |
dryRun | boolean | はい | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
expectedActiveVersion | string | はい | Authoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Read a stream document
Read the stream's native configuration document by id.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","view":"summary"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | Positive decimal int64 identifier; always a string on the wire. |
view | string | いいえ | summary requires view permission and omits scripts/connection settings. full or omission requires management permission; API keys also require full_access, and MCP requires the corresponding management scope. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Update a stream document
Update the stream with document, optionally checking concurrent changes through expectedRevision; dryRun=true validates only.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0,"document":{"name":"string","description":"string","model":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"]}}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | はい | Positive decimal int64 identifier; always a string on the wire. |
expectedRevision | integer | いいえ | OpenAPI に記載なし |
document | object | いいえ | CloudStreamDocument. スキーマの章で参照先のスキーマを確認してください。 |
program | object | いいえ | RuntimeStreamDefinition. スキーマの章で参照先のスキーマを確認してください。 |
expectedSourceRevision | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Validate a stream document
Validate document or program through isolated script registration without executing acquisition callbacks or deploying. For existing Edge Modbus Sources, both sources and sourceBindings accept target and resources without acquisition.ranges. The server resolves ranges from the target catalog at configRevision; pollIntervalMs may be specified separately. Select existing catalog resources only; do not copy unitId, writable, connection endpoints or credentials. Validation failures identify the binding field through reason/path; normalizedDocument is returned only when normalization produces one.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/validate' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"document":{"name":"string","description":"string","model":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"]},"id":"string","program":{"name":"string","description":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"],"sourceBindings":["value"]},"expectedSourceRevision":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
document | object | いいえ | CloudStreamDocument. スキーマの章で参照先のスキーマを確認してください。 |
id | string | いいえ | Stable current Stream ID when validating edits. Omit for new drafts; names never identify which active routes to exclude. |
program | object | いいえ | RuntimeStreamDefinition. スキーマの章で参照先のスキーマを確認してください。 |
expectedSourceRevision | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"valid": false,
"issues": [
"value"
],
"normalizedDocument": {
"name": "value",
"description": "value",
"model": "value",
"script": "value",
"sources": "value"
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Read stream observations
Read observations and accepted-task statistics for a stream by id.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/observation/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"id": "string",
"revision": 0,
"stats": {
"admitted": "value",
"completed": "value",
"failed": "value",
"unknown": "value",
"pending": "value"
},
"window": {
"from": "value",
"to": "value"
},
"coverage": "durable-admissions"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Delete a stream program
Delete a stream program by id, including an active program, and revoke future execution admission without a separate stop. Use expectedRevision to check concurrent changes; dryRun=true validates only.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dryRun | boolean | はい | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | はい | Positive decimal int64 identifier; always a string on the wire. |
expectedRevision | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Deploy a stream program
Deploy the program, optionally checking program/source revisions through expectedRevision and expectedSourceRevision; dryRun=true validates only.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/deploy' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"id":"string","expectedRevision":0,"expectedSourceRevision":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
expectedRevision | integer | いいえ | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. Optional optimistic concurrency guard; omission updates the current object. |
expectedSourceRevision | integer | いいえ | OpenAPI に記載なし |
expectedReleaseState | string | いいえ | Cloud extension: require inactive state; mutually exclusive with expectedActiveVersion. |
expectedActiveVersion | string | いいえ | Authoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
List stream programs
Query programs with pagination and sourceId, model, status and archived filters.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"size":0,"search":"string","sourceId":"string","model":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
page | integer | いいえ | OpenAPI に記載なし |
size | integer | いいえ | OpenAPI に記載なし |
search | string | いいえ | OpenAPI に記載なし |
sourceId | string | いいえ | Positive decimal int64 identifier; always a string on the wire. |
model | string | いいえ | OpenAPI に記載なし |
status | string | いいえ | OpenAPI に記載なし |
archived | boolean | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"list": [
"value"
],
"total": 0,
"page": 0,
"size": 0,
"hasMore": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Roll back a stream program
Roll back to versionId; dryRun=true validates only.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/rollback' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"id":"string","expectedRevision":0,"expectedSourceRevision":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
dryRun | boolean | はい | true validates only; false performs writes. |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
expectedRevision | integer | いいえ | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. Optional optimistic concurrency guard; omission updates the current object. |
expectedSourceRevision | integer | いいえ | OpenAPI に記載なし |
versionId | string | はい | OpenAPI に記載なし |
expectedReleaseState | string | いいえ | Cloud extension: require inactive state; mutually exclusive with expectedActiveVersion. |
expectedActiveVersion | string | いいえ | Authoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
List stream releases
Read a stream program's release history by id with pagination.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/versions/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","page":0,"size":0,"search":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
page | integer | いいえ | Page number, starting at 1. |
size | integer | いいえ | Page size; see this endpoint's maximum or the capability catalog. |
search | string | いいえ | Search names or supported text fields; not SQL. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"list": [
"value"
],
"total": 0,
"page": 0,
"size": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
List stream runs
Query stream runs by id using size and cursor pagination. Failed runs may include a safe error reason and repair guidance. error.sourceRequest describes only the failed Source call and does not imply that the entire run had no side effects.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/runs/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","size":0,"cursor":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
size | integer | いいえ | OpenAPI に記載なし |
cursor | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"items": [
"value"
],
"nextCursor": "string",
"checkedAt": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Test a stream sample
Run an isolated sample test with input on the document's entryId; no external host access or committed data writes.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/sample/test' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"document":{"name":"string","description":"string","model":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"]},"entryId":"string","input":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
document | object | はい | CloudStreamDocument. スキーマの章で参照先のスキーマを確認してください。 |
entryId | string | はい | OpenAPI に記載なし |
input | object | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"status": "completed",
"errorCode": "string",
"snapshot": "string",
"entryId": "string",
"data": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Append samples, query multiple records, aggregate, read latest values and delete explicit time ranges. Latest values refer only to actual samples.
Append samples
Append items to the existing record identified by URL collectionId and recordId. Each item requires time as event time in Unix milliseconds and data as sample values; id and quality are optional. receivedAt is generated by the server. dryRun=true validates only. The default is atomic batch commit; allowPartial=true commits items independently and returns individual results. mode is auto, sync or async. Query accepted asynchronous work through jobId; app credentials support only auto/sync.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
recordId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records/{recordId}/samples' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","time":"value","quality":"value","data":"value"}]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
dryRun | boolean | はい | true validates only; false performs writes. |
allowPartial | boolean | いいえ | Default false rolls back the entire batch; true commits items independently and reports failures in results[].error. |
mode | string | いいえ | OpenAPI に記載なし |
items | array<object> | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"results": [
{
"opId": "item-0",
"action": "sample.append",
"id": "s1",
"collectionId": "devices",
"status": "appended"
}
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | DocUnsV2SampleAppendOutcome. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Aggregate samples
Run pipeline on samples within [from,to), using Unix milliseconds. recordIds is optional, at most 20; omission queries the authorized collection. Supports advanced filters, grouping, sorting and time buckets; pipeline determines output documents. page and limit are mutually exclusive; pipeline cannot broaden time or record scope.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:aggregate' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"recordIds":["string"],"from":0,"to":0,"pipeline":["string"],"limit":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
recordIds | array<string> | いいえ | OpenAPI に記載なし |
from | integer | はい | Inclusive start time in Unix milliseconds. |
to | integer | はい | Exclusive end time in Unix milliseconds, greater than from. |
pipeline | array<object> | はい | OpenAPI に記載なし |
limit | integer | いいえ | OpenAPI に記載なし |
page | object | いいえ | UnsV2PipelinePage. スキーマの章で参照先のスキーマを確認してください。 |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"items": [
{
"averageTemperature": 25
}
],
"pageInfo": {
"mode": "offset",
"hasMore": false,
"nextCursor": null,
"nextPage": null,
"snapshotScope": "thisRequestOnly"
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | CloudDataPage. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Delete samples in a time range
Physically delete samples for explicit recordIds within [from,to), at most 20 records; from/to use Unix milliseconds. dryRun=true returns only estimated deletion count; parent records remain.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"recordIds":["string"],"from":0,"to":0,"dryRun":false}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
recordIds | array<string> | はい | Record IDs, not collection IDs. |
from | integer | はい | Time-range start in Unix milliseconds. |
to | integer | はい | Time-range end in Unix milliseconds. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"deletedCount": 1,
"dryRun": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Query samples
Query samples within [from,to), using Unix milliseconds. recordIds is optional, at most 20; omission queries the authorized collection. Supports filter, sort, projection and either limit/cursor or page; page cannot be combined with limit/cursor. Results paginate across selected records together; filter cannot broaden time or record scope.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:find' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"recordIds":["string"],"from":0,"to":0,"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
recordIds | array<string> | いいえ | OpenAPI に記載なし |
from | integer | はい | Inclusive start time in Unix milliseconds. |
to | integer | はい | Exclusive end time in Unix milliseconds, greater than from. |
filter | object | いいえ | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
projection | object | いいえ | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
limit | integer | いいえ | OpenAPI に記載なし |
cursor | string | いいえ | OpenAPI に記載なし |
page | object | いいえ | UnsV2PipelinePage. スキーマの章で参照先のスキーマを確認してください。 |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"items": [
{
"id": "s1",
"collectionId": "devices",
"recordId": "r1",
"time": 1792454400000,
"receivedAt": 1792454400100,
"quality": "good",
"data": {
"temperature": 25
},
"sourceId": null
}
],
"pageInfo": {
"mode": "cursor",
"hasMore": false,
"nextCursor": null,
"nextPage": null,
"snapshotScope": "thisRequestOnly"
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | CloudSamplePage. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Read each record's latest sample
recordIds is required, at most 20. Return each record's latest actual sample; sample is null if none exists.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:latest' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"recordIds":["string"]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
recordIds | array<string> | はい | Record IDs, not collection IDs. |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"series": [
{
"recordId": "r1",
"sample": {
"id": "s1",
"collectionId": "devices",
"recordId": "r1",
"time": 1792454400000,
"receivedAt": 1792454400100,
"quality": "good",
"data": {
"temperature": 25
},
"sourceId": null
}
}
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Business record queries, writes, soft deletion, restoration, lease locks and cross-collection transactions. Use bare names for business fields and _id / _meta.* for system fields.
Insert one record
Insert data into the collection, optionally with id. A deleted record with the same ID is not implicitly restored. By default, only insertedId and execution state are returned. returnDocument=after returns the created value in the same transaction, supports projection, and requires read access. Idempotent replay returns the original creation snapshot; dryRun=true returns only an uncommitted preview.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","id":"string","data":{}}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
expectedRevision | integer | いいえ | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | いいえ | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
data | object | はい | OpenAPI に記載なし |
lockToken | string | いいえ | OpenAPI に記載なし |
release | boolean | いいえ | OpenAPI に記載なし |
assertLocks | array<object> | いいえ | OpenAPI に記載なし |
returnDocument | string | いいえ | none preserves the insertedId response; after includes the created value from the same write transaction and requires read access. Idempotent replay returns the original creation snapshot; dryRun returns an uncommitted preview. |
projection | object | いいえ | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"insertedId": "r1"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Aggregate business records
Run pipeline on active records in the collection, supporting filtering, projection, grouping and sorting. Pipeline determines returned documents; page and limit are mutually exclusive. On the first or an offset page, count:{max} includes capped pipeline-output total from the same snapshot.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:aggregate' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"pipeline":["string"],"limit":0,"page":{"size":0,"mode":"offset","page":0,"cursor":"string"},"count":{"max":0}}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
pipeline | array<object> | はい | OpenAPI に記載なし |
limit | integer | いいえ | OpenAPI に記載なし |
page | object | いいえ | UnsV2PipelinePage. スキーマの章で参照先のスキーマを確認してください。 |
count | object | いいえ | CloudRecordTotalOption. スキーマの章で参照先のスキーマを確認してください。 |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"items": [
{
"averageTemperature": 25
}
],
"pageInfo": {
"mode": "offset",
"hasMore": false,
"nextCursor": null,
"nextPage": null,
"snapshotScope": "thisRequestOnly"
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | CloudRecordAggregatePage. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Execute mixed writes within a collection
Use operations to mix insert, update, replace and soft-delete operations in one collection. atomic and ordered control batch execution; result indices refer to original input positions. dryRun=true validates only. With atomic=false, chunks/items commit independently. Once any commit occurs, failure reports error.execution=committed and retry.safe=false, with cumulative data matching the success structure: counts, insertedIds, writeErrors, hasMore and nextIndex, plus unknownUntil when outcomes are unknown. nextIndex is the first unexecuted zero-based operation; earlier indices absent from writeErrors committed. If unknownUntil is present, [nextIndex, unknownUntil) has unknown outcome. Retry with the same idempotency key if supplied. Without a key, only client-ID inserts and ID-based replacements/deletes can be reconciled by reading those IDs before continuation. Server-generated-ID inserts, filter-selected operations and incremental updates such as $inc cannot be reconciled safely; always use idempotency keys for these writes. Without unknownUntil, continuation from nextIndex is safe. execution is rolledBack or notStarted only when nothing committed.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:bulkWrite' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","operations":["string"],"ordered":false}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
expectedRevision | integer | いいえ | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
operations | array<object> | はい | OpenAPI に記載なし |
ordered | boolean | いいえ | OpenAPI に記載なし |
atomic | boolean | いいえ | true commits the entire batch atomically, with at most 200 document actions; false commits per document. |
lockToken | string | いいえ | OpenAPI に記載なし |
release | boolean | いいえ | OpenAPI に記載なし |
assertLocks | array<object> | いいえ | OpenAPI に記載なし |
lockTokens | object | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"insertedCount": 1,
"matchedCount": 0,
"modifiedCount": 0,
"deletedCount": 0,
"upsertedCount": 0,
"insertedIds": {
"0": "r1"
},
"upsertedIds": {}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response. After a partial commit, error.execution=committed and retry.safe=false; data contains cumulative results. | application/json |
Count records
Count active records matching filter in the collection, up to maxCount (default and maximum 100000). Above the cap, return count=maxCount and capped=true; equality gives capped=false.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:count' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"maxCount":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
filter | object | いいえ | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
maxCount | integer | いいえ | Count limit; actual counts above maxCount return count=maxCount and capped=true. Equality returns capped=false. |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"count": 1,
"capped": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | CloudCappedCount. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Soft-delete multiple records
Soft-delete records matching filter and physically delete related samples in the same transaction. Restoring records does not restore samples. maxDocs bounds this pass and resumeAfter continues it; atomic and ordered control batch execution. dryRun=true validates only. With atomic=false, chunks/items commit independently. Any committed work makes failure report error.execution=committed and retry.safe=false; error-envelope data contains cumulative counts, insertedIds and writeErrors, plus hasMore/resumeAfter when continuation is possible. execution is rolledBack or notStarted only if nothing committed.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:deleteMany' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"maxDocs":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
expectedRevision | integer | いいえ | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
filter | object | はい | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
maxDocs | integer | いいえ | Default 1000; atomic requests default to 200. |
resumeAfter | string | いいえ | OpenAPI に記載なし |
atomic | boolean | いいえ | true commits the entire batch atomically, with at most 200 document actions; false commits per document. All selected writes commit together; maxDocs must be <= 200 and the complete match set must fit. |
ordered | boolean | いいえ | OpenAPI に記載なし |
lockToken | string | いいえ | OpenAPI に記載なし |
release | boolean | いいえ | OpenAPI に記載なし |
assertLocks | array<object> | いいえ | OpenAPI に記載なし |
lockTokens | object | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"deletedCount": 1
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response. After a partial commit, error.execution=committed and retry.safe=false; data contains cumulative results. | application/json |
Soft-delete one record
Select one record by filter and sort, then soft-delete it. Ordinary queries no longer return the record. Related samples are physically deleted in the same transaction; restoring the record does not restore samples. dryRun=true validates only.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:deleteOne' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
expectedRevision | integer | いいえ | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
filter | object | はい | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
lockToken | string | いいえ | OpenAPI に記載なし |
release | boolean | いいえ | OpenAPI に記載なし |
assertLocks | array<object> | いいえ | OpenAPI に記載なし |
returnDocument | string | いいえ | none returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion. |
projection | object | いいえ | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"deletedCount": 1
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Assess query and write scope
Read-only assessment of find, updateMany or deleteMany plans and a bounded match scope, returning sampleIds without writing. The assessment does not guarantee later data state.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:explain' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"op":"find","limit":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
filter | object | いいえ | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
op | string | いいえ | OpenAPI に記載なし |
limit | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"op": "string",
"writesCommitted": false,
"executionGuaranteed": false,
"matchedCount": 0,
"capped": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Query business records
Query active records in a collection using filter, sort, projection and limit/cursor. Return items and pageInfo; each record's business fields are nested under data. On the first page, count:{max} includes capped total:{count,capped} from the same snapshot (default limit 10000, maximum 100000). Continuation cursor cannot include count.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:find' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"projection":{},"limit":0,"cursor":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
filter | object | いいえ | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
projection | object | いいえ | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
limit | integer | いいえ | OpenAPI に記載なし |
cursor | string | いいえ | OpenAPI に記載なし |
count | object | いいえ | CloudRecordTotalOption. スキーマの章で参照先のスキーマを確認してください。 |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"items": [
{
"id": "r1",
"collectionId": "devices",
"data": {
"temperature": 25
},
"revision": 1,
"createdAt": 1792454400000,
"updatedAt": 1792454400000,
"sourceId": null,
"sourceTime": null
}
],
"pageInfo": {
"mode": "cursor",
"hasMore": false,
"nextCursor": null,
"nextPage": null,
"snapshotScope": "thisRequestOnly"
},
"total": {
"count": 1,
"capped": false
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | CloudRecordPage. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Read records by ID
Read at most 100 active records by primary key with optional projection. items follow request order; nonexistent, soft-deleted and employee-rule-filtered IDs all appear in missing without distinguishing absence from unreadability.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"ids":["string"],"projection":{}}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
ids | array<string> | はい | OpenAPI に記載なし |
projection | object | いいえ | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"items": [
{
"id": "r1",
"collectionId": "devices",
"data": {
"temperature": 25
},
"revision": 1,
"createdAt": 1792454400000,
"updatedAt": 1792454400000,
"sourceId": null,
"sourceTime": null
}
],
"missing": [
"r2"
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | CloudRecordGetResult. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Lock or claim records
Acquire leases atomically by ids, or claim available records using filter, sort and limit. ttlMs defaults to 30000, with range 1000–300000 milliseconds. Return lease tokens and records. Collection read/write permission is required; locks do not affect reads.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:lock' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"ids":["string"],"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"limit":0,"ttlMs":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
ids | array<string> | いいえ | OpenAPI に記載なし |
filter | object | いいえ | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
limit | integer | いいえ | OpenAPI に記載なし |
ttlMs | integer | いいえ | OpenAPI に記載なし |
label | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"locks": [
{
"id": "r1",
"token": "lease-token",
"expiresAt": 1792454430000,
"fence": 1,
"record": {
"id": "r1",
"collectionId": "devices",
"data": {
"temperature": 25
},
"revision": 1,
"createdAt": 1792454400000,
"updatedAt": 1792454400000,
"sourceId": null,
"sourceTime": null
}
}
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Renew record locks
Renew currently held leases using id and token in locks. ttlMs defaults to 30000, with range 1000–300000 milliseconds.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:renew' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"locks":[{"id":"value","token":"value"}],"ttlMs":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
locks | array<object> | はい | OpenAPI に記載なし |
ttlMs | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"locks": [
{
"id": "r1",
"expiresAt": 1792454460000
}
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Replace one record
Select one record by filter and sort, then fully replace business data with replacement. upsert=true may insert when unmatched, requiring ID or complete unique-key equality. dryRun=true validates only.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:replaceOne' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
expectedRevision | integer | いいえ | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
filter | object | はい | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
replacement | object | はい | OpenAPI に記載なし |
upsert | boolean | いいえ | Insert if unmatched; filter must include _id equality or complete equality on a ready unique index. Concurrent conflicts do not create duplicate records. |
lockToken | string | いいえ | OpenAPI に記載なし |
release | boolean | いいえ | OpenAPI に記載なし |
assertLocks | array<object> | いいえ | OpenAPI に記載なし |
returnDocument | string | いいえ | none returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion. |
projection | object | いいえ | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"matchedCount": 1,
"modifiedCount": 1
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Restore records by ID
Restore at most 100 soft-deleted records by ids. Execute atomically and revalidate current schema and unique indexes. Any conflict rolls back everything; samples physically deleted with records are not restored. dryRun=true validates only.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:restore' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"ids":["string"],"dryRun":false,"idempotencyKey":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
ids | array<string> | はい | OpenAPI に記載なし |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"restoredCount": 1,
"restoredIds": [
"r1"
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Release record locks
Ordinary release uses locks with id/token. Administrators may force release with ids and force=true. Apps/API keys cannot force release.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:unlock' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"locks":[{"id":"value","token":"value"}],"ids":["string"],"force":false}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
locks | array<object> | いいえ | OpenAPI に記載なし |
ids | array<string> | いいえ | OpenAPI に記載なし |
force | boolean | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"unlockedCount": 1
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Update multiple records
Update records matching filter; upsert is not supported. maxDocs bounds this pass and resumeAfter continues it; atomic and ordered control batch execution. dryRun=true validates only. With atomic=false, chunks/items commit independently. Any committed work makes failure report error.execution=committed and retry.safe=false; error-envelope data contains cumulative counts, insertedIds and writeErrors, plus hasMore/resumeAfter when continuation is possible. execution is rolledBack or notStarted only if nothing committed.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:updateMany' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"update":{}}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
expectedRevision | integer | いいえ | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
filter | object | はい | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
update | object | はい | update operators: $set/$unset/$inc/$mul/$min/$max/$rename/$currentDate/$setOnInsert/$push/$addToSet/$pop/$pull/$pullAll. Business paths omit data.; _id and _meta are read-only. |
arrayFilters | array<object> | いいえ | OpenAPI に記載なし |
maxDocs | integer | いいえ | Default 1000; atomic requests default to 200. |
resumeAfter | string | いいえ | OpenAPI に記載なし |
atomic | boolean | いいえ | true commits the entire batch atomically, with at most 200 document actions; false commits per document. All selected writes commit together; maxDocs must be <= 200 and the complete match set must fit. |
ordered | boolean | いいえ | OpenAPI に記載なし |
lockToken | string | いいえ | OpenAPI に記載なし |
release | boolean | いいえ | OpenAPI に記載なし |
assertLocks | array<object> | いいえ | OpenAPI に記載なし |
lockTokens | object | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"matchedCount": 1,
"modifiedCount": 1
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response. After a partial commit, error.execution=committed and retry.safe=false; data contains cumulative results. | application/json |
Update one record
Select one record by filter and sort, then apply update. upsert=true may insert when unmatched, requiring ID or complete unique-key equality. dryRun=true validates only.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionId | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:updateOne' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
expectedRevision | integer | いいえ | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | いいえ | true validates only; false performs writes. |
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
filter | object | はい | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
update | object | はい | update operators: $set/$unset/$inc/$mul/$min/$max/$rename/$currentDate/$setOnInsert/$push/$addToSet/$pop/$pull/$pullAll. Business paths omit data.; _id and _meta are read-only. |
arrayFilters | array<object> | いいえ | OpenAPI に記載なし |
upsert | boolean | いいえ | Insert if unmatched; filter must include _id equality or complete equality on a ready unique index. Concurrent conflicts do not create duplicate records. |
lockToken | string | いいえ | OpenAPI に記載なし |
release | boolean | いいえ | OpenAPI に記載なし |
assertLocks | array<object> | いいえ | OpenAPI に記載なし |
returnDocument | string | いいえ | none returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion. |
projection | object | いいえ | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"matchedCount": 1,
"modifiedCount": 1
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Batch-read page data
Execute at most 20 read-only queries (find/count/distinct/aggregate/get, optionally across collections) with one admission, authorization snapshot and repeatable-read snapshot. Requires uns.read and record:read on each collection. results correlates by query id and returns {ok:true,data} or {ok:false,error}; validation, compilation, authorization and individual SQL errors affect only that item. At most 2000 rows and 8 MiB per batch, otherwise 413 RESPONSE_TOO_LARGE. Any statement timeout returns 504 QUERY_TIMEOUT; neither case returns partial results.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/records:queryBatch' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"queries":["string"]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
queries | array<object> | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"results": {
"open": {
"ok": true,
"data": {
"items": [
{
"id": "r1",
"collectionId": "devices",
"data": {
"temperature": 25
},
"revision": 1,
"createdAt": 1792454400000,
"updatedAt": 1792454400000,
"sourceId": null,
"sourceTime": null
}
],
"pageInfo": {
"mode": "cursor",
"hasMore": false,
"nextCursor": null,
"nextPage": null,
"snapshotScope": "thisRequestOnly"
},
"total": {
"count": 1,
"capped": false
}
}
},
"byStatus": {
"ok": false,
"error": {
"code": "INVALID_REQUEST",
"reason": "unknown field status",
"details": [],
"execution": "notStarted",
"retry": {
"safe": false
},
"queryId": "byStatus"
}
}
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Subscribe to record changes (SSE)
GET; Accept must be exactly text/event-stream. collectionIds is a repeated query parameter, at most 64. Omission selects all readable collections for the identity, or all collections granted to the app. At most 100 recordIds are allowed and require exactly one collection. Each collection requires record:read. The connection immediately sends heartbeat with the current position as id, then every 15 seconds. change events arrive in commit order and contain only collectionId, recordId, revision, change (record/delete), restricted and occurredAt. Read business data again by ID. restricted=true indicates employee data rules; servers forwarding under app identity may forward only collection-level notifications to browsers. Reconnect with the last event id as Last-Event-ID. Exceeding 24-hour retention or narrowing authorization sends reset and closes the connection. Reread data and subscribe without Last-Event-ID. Authorization is rechecked every 30 seconds. Exceeding the connection limit returns 429 OVERLOADED.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
collectionIds | query | array<string> | いいえ | Subscribed collections, at most 64; each requires record:read. Omission selects all collections readable by the identity, or all app-granted collections. Authorization-scope changes send reset. |
recordIds | query | array<string> | いいえ | Subscribe only to these records, at most 100; requires exactly one collectionId. |
Last-Event-ID | header | string | いいえ | Last received event id; omission starts from the current position. |
Accept | header | string | はい | Must be exactly text/event-stream. |
200 · text/event-stream
"event: heartbeat\nid: c1\ndata: {\"at\":1792454400000}\n\nevent: change\nid: c2\ndata: {\"eventId\":\"c2\",\"collectionId\":\"work_orders\",\"recordId\":\"wo-1\",\"revision\":3,\"change\":\"record\",\"restricted\":false,\"occurredAt\":1792454401000}\n\n"| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | SSE event stream; each frame's data is JSON. | text/event-stream |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Execute a business-data transaction
Execute cross-collection record operations atomically, correlating results by opId, with dependsOn and result references. dryRun=true preflights only. mode is auto, sync or async; query accepted asynchronous work by jobId. App credentials support only auto/sync. Collection permissions are checked for each operation.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/records:transact' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","mode":"auto","items":[{"update":"value","arrayFilters":"value","upsert":"value","opId":"value","action":"value"}],"dryRun":false,"assertLocks":[{"collectionId":"value","id":"value","token":"value"}]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
idempotencyKey | string | いいえ | Optional idempotency key; reuse for the same request, never for different requests. |
mode | string | いいえ | OpenAPI に記載なし |
items | array<object> | はい | OpenAPI に記載なし |
dryRun | boolean | いいえ | true validates only; false performs writes. |
assertLocks | array<object> | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"results": [
{
"opId": "read",
"action": "record.read",
"id": "r1",
"collectionId": "devices",
"status": "read",
"revision": 1,
"data": {
"temperature": 25
},
"document": {
"id": "r1",
"collectionId": "devices",
"data": {
"temperature": 25
},
"revision": 1,
"createdAt": 1792454400000,
"updatedAt": 1792454400000,
"sourceId": null,
"sourceTime": null
}
}
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | dryRun=false returns transaction results; dryRun=true returns a rolled-back preflight plan. |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
App and grant endpoints
Read app data grants
Read collection grants for a real app. Current Builder sessions and full_access personal/Agent keys may call this endpoint. Platform system credentials (service/system/full_access with uns.write) may read every App in their current Workspace, including Apps other than their Builder target. This read access does not grant policy update authority. Ordinary service keys and runtime App credentials cannot call this endpoint.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-data-policy/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appId | string (uuid) | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"appId": "string",
"revision": 0,
"version": "cloud-hosted-app-data/v1",
"status": "active",
"collections": [
"value"
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | CloudAppDataPolicy. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Update app data grants
Use changes to atomically add, modify or remove grants by collection. Omitted fields remain unchanged; other collections or employee rules need not be resubmitted. collections still performs explicit full replacement; the two modes are mutually exclusive. permissionLevel values read/readwrite/manage mean record read-only, read-write and management including deletion, and are mutually exclusive with low-level permissions. New grants cannot exceed the manager's capabilities. Stream request boundaries remain; expectedRevision and idempotencyKey are required. An unchanged retry with the same key replays the result without expanding authorization again.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-data-policy/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","expectedRevision":0,"status":"active","collections":[{"alias":"value","collectionId":"value","permissions":"value","dataRule":"value"}],"idempotencyKey":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appId | string (uuid) | はい | OpenAPI に記載なし |
expectedRevision | integer | はい | 0 attaches a data policy to an existing hosted App; positive revisions update it with CAS. |
status | string | はい | OpenAPI に記載なし |
collections | array<object> | いいえ | Explicitly replace all grants; choose exactly one of this and changes. |
idempotencyKey | string | はい | Required idempotency key; reuse for the same request, never for a different request. |
dryRun | boolean | はい | true validates only; false performs writes. |
ruleContractVersion | string | いいえ | Confirmation is required when full replacement involves employee rules, or incremental changes edit/clear rules or remove a grant containing rules. Retained rules need not be resubmitted during incremental updates. |
changes | array<object> | いいえ | Atomic incremental updates by collectionId; no duplicate collection within the batch. New grants require alias and permissions; omitted update fields retain their values. |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"results": [
{
"opId": "item-0",
"action": "meta.replace",
"kind": "app",
"id": "example-id",
"revision": 1,
"status": "updated"
}
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | DocCloudAppDataPolicyUpdateOutcome. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Page through an app's stream grants
The server summarizes configured entries, stream names, granted actions and current blocking reasons. Returns non-revoked grants by default; includeInactive=1 includes revoked entries. This is a current grant snapshot. Execution rechecks authorization and does not expand the app's global permission ceiling.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-stream-access/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","streamId":"string","page":0,"size":0,"includeInactive":1}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appId | string (uuid) | はい | OpenAPI に記載なし |
streamId | string | いいえ | OpenAPI に記載なし |
page | integer | いいえ | OpenAPI に記載なし |
size | integer | いいえ | OpenAPI に記載なし |
includeInactive | integer | いいえ | 1 includes revoked grants; 2 (default) returns only non-revoked grants. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"items": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | CloudAppStreamAccessPage. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Read an app's stream permission ceiling
Read the real app's control permission ceiling using a current Builder session or full_access personal/agent key, with uns.write and stream.requests.manage. This ceiling applies together with individual stream-entry grants.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-stream-policy/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appId | string (uuid) | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"appId": "string",
"revision": 0,
"version": "cloud-hosted-app-stream/v1",
"status": "active",
"authorityStatus": "available"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | CloudAppStreamPolicy. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Update an app's stream permission ceiling
Reuse the existing app policy while preserving collection grants and employee rules; expectedRevision, idempotencyKey and dryRun are required. Available only to a current Builder session or full_access personal/agent key with uns.write and stream.requests.manage. Does not grant any stream entry automatically or upgrade the app key.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-stream-policy/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","expectedRevision":0,"status":"active","idempotencyKey":"string","dryRun":false}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appId | string (uuid) | はい | OpenAPI に記載なし |
expectedRevision | integer | はい | Shared hosted policy metadata revision. 0 attaches to a real App; either data or Stream policy updates increment this revision. |
status | string | はい | OpenAPI に記載なし |
idempotencyKey | string | はい | Required idempotency key; reuse for the same request, never for a different request. |
dryRun | boolean | はい | true validates only; false performs writes. |
platformPermissions | array<string> | はい | OpenAPI に記載なし |
messageTopics | array<object> | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"results": [
{
"opId": "item-0",
"action": "meta.replace",
"kind": "app",
"id": "example-id",
"revision": 1,
"status": "updated"
}
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | DocCloudAppStreamPolicyUpdateOutcome. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Archive this app's collection
Only platform-issued app keys may archive collections owned by this app (ownerAppId). The transaction archives the collection and removes the calling app grant, retaining records, samples and query indexes without tombstoning individual records. New archives have no record-count limit. An app may retain at most 64 archived collections, otherwise 409 APP_QUOTA_EXCEEDED. Topic, Source/Stream and other references do not block archiving. Referring configurations remain; existing grants that have not been revoked may read historical data, while writes are rejected. During app collection reclaim or purge, return retryable 503 TEMPORARILY_UNAVAILABLE with data.reason=COLLECTION_TEARDOWN_IN_PROGRESS and data.operation=reclaim/purge. restore restores the collection state; independently deleted records retain their previous state.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/archive' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"alias":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
alias | string | はい | Case-insensitively unique app collection alias, matching src/data/collections.ts. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"alias": "string",
"collectionId": "string",
"revision": 0,
"archived": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Declare collections for this app
Only platform-issued app keys (app/internal/full_access, non-MCP, no employee delegation) are accepted. Declare collections in a batch. Missing collections are created in the app directory and granted record:read/write in the same transaction, plus record:delete if the key has uns.delete. Existing collections only widen through join and union indexes. Annotations (title/description/unit and collection description) are written only on creation; later changes use schema:replace. Stale grants pointing to this app's archived or hard-deleted collections are replaced in the same transaction. The batch is atomic. Any type conflict, join that cannot widen the current structure, or widening that breaks employee-rule fields leaves everything unchanged and returns 409 SCHEMA_CONFLICT with data.conflicts. Administrator-revoked grants return 403 APP_GRANT_REVOKED and are not automatically restored. Exceeding per-app quotas (64 collections, 64 indexes) returns 409 APP_QUOTA_EXCEEDED. Exceeding workspace index quota, counting physically existing non-retired indexes, returns 409 INDEX_QUOTA_EXCEEDED. During app collection reclaim (app deletion) or purge (preview reset), creation, widening or stale-grant cleanup returns retryable 503 TEMPORARILY_UNAVAILABLE with data.reason=COLLECTION_TEARDOWN_IN_PROGRESS and data.operation=reclaim/purge. Fully unchanged batches still succeed. When the App owns no collection with the alias but exactly one grant has the same alias and points to an active collection the App does not own, ensure borrows it: if the stored schema and indexes cover the declaration it returns that collectionId with status=unchanged. If the declaration needs a wider schema, a new index or a longer TTL, it returns 409 SCHEMA_CONFLICT (reason=SHARED_SCHEMA_READONLY); type conflicts still report TYPE_CONFLICT and a shorter TTL reports TTL_REQUIRES_REPLACE. A borrowed collection is never widened or indexed and does not count toward the App quota. While the owner App is in the trash the collection is read-only and can still be borrowed if it was not archived before the move: the declaration is not compared, status=unchanged is always returned, and ignored carries reason=OWNER_APP_TRASHED. When dataAppContext does not show the collection to the credential, for example because the grant carries an employee data rule, the result exposes no fields: indexStatus is empty, notes with a field path are omitted, and conflicts with a path report only SHARED_SCHEMA_READONLY without path or types. dryRun=true computes only.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/ensure' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"collections":[{"alias":"value","name":"value","recordSchema":"value","indexes":"value","description":"value"}],"dryRun":false}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
collections | array<object> | はい | OpenAPI に記載なし |
dryRun | boolean | いいえ | true validates only; false performs writes. |
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"results": [
{
"opId": "item-0",
"action": "meta.create",
"kind": "appCollection",
"id": "example-id",
"revision": 1,
"status": "created"
}
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
List an app's collections
A session or personal API key with uns.read lists collections owned by appId, including archived collections, returning schemas, indexes/indexStatus and retired without grant details.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"appId": "string",
"collections": [
"value"
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Restore this app's archived collection
Only platform-issued app keys may restore the most recently archived collection for the alias, restore grants while reusing those still referencing it, and reuse retained indexes without rewriting records. Only legacy recordsArchivedAt tombstones restore their original record batch (at most 2000, otherwise 409 COLLECTION_TOO_LARGE). Unique conflicts roll back everything with 409 DUPLICATE_KEY. If ensure recreated a same-name collection, return 409 DUPLICATE with data.activeCollectionId; archive the active collection first. During app collection reclaim or purge, return retryable 503 TEMPORARILY_UNAVAILABLE with data.reason=COLLECTION_TEARDOWN_IN_PROGRESS and data.operation=reclaim/purge.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/restore' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"alias":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
alias | string | はい | Case-insensitively unique app collection alias, matching src/data/collections.ts. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"alias": "string",
"collectionId": "string",
"revision": 0,
"archived": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Replace this app collection's schema
Only platform-issued app keys are accepted, for explicit worker-driven narrowing such as removing fields/enum values/indexes or changing required fields; runtime code must not call it. expectedRevision is required. Narrowing validates active records up to 10,000 records and 16MB; larger migrations return 409 SCHEMA_MIGRATION_TOO_LARGE. At most 20 violations are returned with 409 SCHEMA_DATA_VIOLATION; data.violations contains only recordId/path. References from topic fields or app data rules return 409 REFERENCED. Removed paths and enum values enter retired and cannot be reintroduced by ensure. Indexes are replaced exactly and remain subject to per-app quota (64) and workspace index quota. Annotation-only or description-only changes return status=widened. Failure to acquire the lock returns retryable 503 TEMPORARILY_UNAVAILABLE. During app collection reclaim or purge, an actual replacement returns retryable 503 TEMPORARILY_UNAVAILABLE with data.reason=COLLECTION_TEARDOWN_IN_PROGRESS and data.operation=reclaim/purge. dryRun=true validates on a read-only snapshot without holding locks.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/schema:replace' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"alias":"string","recordSchema":{"additionalProperties":false,"description":"string","enum":["value"],"items":{"additionalProperties":"value","description":"value","enum":"value","items":"value","maximum":"value"},"maximum":0},"indexes":[{"kind":"value","path":"value","paths":"value","target":"value","unique":"value"}],"expectedRevision":0,"description":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
alias | string | はい | Case-insensitively unique app collection alias, matching src/data/collections.ts. |
recordSchema | object | はい | Schema. スキーマの章で参照先のスキーマを確認してください。 |
indexes | array<object> | はい | Replace indexes exactly as requested; [] removes all indexes. |
expectedRevision | integer | はい | OpenAPI に記載なし |
description | string | いいえ | OpenAPI に記載なし |
dryRun | boolean | いいえ | true validates only; false performs writes. |
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"alias": "string",
"collectionId": "string",
"revision": 0,
"status": "unchanged",
"retired": {
"paths": "value",
"enumValues": "value"
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Read current app data context
Available only to current managed app credentials; returns the real app name and intersection of collection grants and key permissions. A new App without a data policy returns dataState=uninitialized, revision=0 and empty collections without creating a policy or granting access; declaring its actual collections through appCollectionsEnsure makes the state ready. An administrator-disabled policy returns HTTP 403 with reason APP_DATA_POLICY_DISABLED and is never re-enabled automatically. collections[] includes definition revision, recordSchema, indexes, indexStatus and ttl. Both owned and granted collections include ownerAppId (omitted for workspace collections), name, description and directoryPath (directory names from the workspace root, in the same shape as appCollectionsEnsure). Apps use only this endpoint to read collection structures. collections[].createCapability provides allowed, an independent writable input schema and version bindings from the current employee's actual creation rules. Do not infer creation rights from generic record:write or read schemas. limits exposes count, totals, queryBatch, get, subscriptions, TTL, concurrency and idempotency-window limits for adaptive clients. Hints are not credentials; writes and replay are authorized again at runtime. Identity comes only from server authentication. App ID and issuer-user parameters are not accepted; credentials are not returned.
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/context' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'application/json
OpenAPI では、このリクエストボディのオブジェクトフィールドが宣言されていません。
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"appId": "string",
"collections": [
"value"
],
"name": "string",
"platformPermissions": [
"value"
],
"revision": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
requestId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | AppContext. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Discover workspace capabilities and contract versions
Requires a valid Workspace API key and an empty JSON object of at most 4KiB UTF-8 bytes; query parameters and Workspace overrides are rejected. Success returns CapabilityDiscoverV2Resp directly, without a code/msg/data envelope. Capabilities combine public release gates, Workspace feature gates and explicit key grants; Namespace and Stream request report publication and authorization only, with readiness_unknown and no runtime probe. Source/Stream retain evidence for individual operation prerequisites. state=ready does not replace resource authorization or an actual execution receipt. Contract 2.0 uses state, reasonCode and operations and omits redundant boolean states. Actual operations enforce backend execution safety checks and return their authoritative errors. Clients may ignore unknown extension fields. Version labels do not indicate device acknowledgements or npm package versions. Errors return CapabilityErrorResp with the actual HTTP status and do not expose internal exceptions.
200 · application/json
{
"product": "cloud",
"productVersion": "string",
"contractVersion": "2.0",
"apiContractVersions": [
"string"
],
"sdkContractVersions": [
"string"
]
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
product | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
productVersion | string | いいえ | スキーマの章で参照先のスキーマを確認してください。 |
contractVersion | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
apiContractVersions | array<string> | はい | スキーマの章で参照先のスキーマを確認してください。 |
sdkContractVersions | array<string> | はい | スキーマの章で参照先のスキーマを確認してください。 |
capabilities | array<object> | はい | スキーマの章で参照先のスキーマを確認してください。 |
deprecations | array<object> | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json | |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
info
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"capabilities": [
"value"
],
"mqttBroker": "string",
"name": "string",
"version": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformInfoResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
whoami
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"apiKeyName": "string",
"email": "string",
"keyPrefix": "string",
"keyType": "string",
"permissions": [
"value"
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAuthWhoamiResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Request a file upload
Request a file upload
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appInstanceId":"string","business":"string","contentType":"string","fileName":"string","sessionId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appInstanceId | string | いいえ | OpenAPI に記載なし |
business | string | いいえ | OpenAPI に記載なし |
contentType | string | いいえ | OpenAPI に記載なし |
fileName | string | はい | OpenAPI に記載なし |
sessionId | string | いいえ | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
useBy | string | いいえ | OpenAPI に記載なし |
visibility | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"expiresAt": 0,
"fileId": 0,
"filePath": "string",
"fileUrl": "string",
"postFields": {}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAssetFileUploadResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Delete a file
Delete a file
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"filePath":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
filePath | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"deleted": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAssetFileDeleteResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Download a file
Returns HTTP 302 with the download URL in Location and no JSON body. Private files use signed URLs; public files use persistent public URLs. When following the redirect, do not forward x-api-key or other credential headers to a different origin. The SDK already follows this rule.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
filePath | query | string | はい | OpenAPI に記載なし |
responseContentDisposition | query | string | いいえ | OpenAPI に記載なし |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
302 | Redirect to the public or short-lived signed download URL. | — |
Abort a multipart upload
Abort the multipart upload, remove remaining parts and release reserved quota.
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/multipart/abort' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"fileKey":"string","uploadId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
fileKey | string | はい | OpenAPI に記載なし |
uploadId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"aborted": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAssetFileMultipartAbortResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Complete a multipart upload
Complete the upload after validating actual sizes with ListParts and reconciling reserved quota; change the file from temp to active.
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/multipart/complete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"fileKey":"string","parts":[{"etag":"value","partNumber":"value"}],"uploadId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
fileKey | string | はい | OpenAPI に記載なし |
parts | array<object> | はい | OpenAPI に記載なし |
uploadId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"expiresAt": 0,
"filePath": "string",
"fileUrl": "string",
"sizeBytes": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAssetFileMultipartCompleteResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Initialize a multipart upload
Initialize direct multipart upload for large files (>100 MB). The server creates the upload and reserves quota, returning uploadId, partSize and partCount.
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/multipart/init' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appInstanceId":"string","bizId":"string","business":"string","contentType":"string","fileName":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appInstanceId | string | いいえ | OpenAPI に記載なし |
bizId | string | いいえ | OpenAPI に記載なし |
business | string | いいえ | OpenAPI に記載なし |
contentType | string | いいえ | OpenAPI に記載なし |
fileName | string | はい | OpenAPI に記載なし |
partSize | integer | いいえ | OpenAPI に記載なし |
sessionId | string | いいえ | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
useBy | string | いいえ | OpenAPI に記載なし |
visibility | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"expiresAt": 0,
"fileKey": "string",
"filePath": "string",
"partCount": 0,
"partSize": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAssetFileMultipartInitResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Get signed part upload URLs
Issue signed PUT URLs for selected parts, uploaded directly to object storage. Resumable uploads are supported.
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/multipart/part-urls' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"fileKey":"string","partNumbers":[0],"uploadId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
fileKey | string | はい | OpenAPI に記載なし |
partNumbers | array<integer> | はい | OpenAPI に記載なし |
uploadId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"partUrls": [
"value"
]
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAssetFileMultipartPartUrlsResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Get a file URL
Get a file URL
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
filePath | query | string | はい | OpenAPI に記載なし |
expiredSec | query | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"expiresAt": 0,
"fileUrl": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAssetFileUrlResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
assetUpload
curl --request POST 'https://<tier0-host>/openapi/v2/assets/upload' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"business":"string","contentType":"string","fileName":"string","isPublic":false,"sha256":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
business | string | いいえ | OpenAPI に記載なし |
contentType | string | いいえ | OpenAPI に記載なし |
fileName | string | はい | OpenAPI に記載なし |
isPublic | boolean | いいえ | OpenAPI に記載なし |
sha256 | string | いいえ | OpenAPI に記載なし |
size | integer | いいえ | OpenAPI に記載なし |
sizeBytes | integer | はい | OpenAPI に記載なし |
storageKey | string | いいえ | OpenAPI に記載なし |
useBy | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"filePath": "string",
"fileUrl": "string",
"postFields": {},
"postUrl": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAssetUploadResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Get notification delivery status
Get delivery status by messageId. Ownership is checked against the requesting API key.
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"messageId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
messageId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"channels": [
{
"channel": "value",
"errorCode": "value",
"message": "value",
"platform": "value",
"status": "value"
}
],
"completedAt": "string",
"createdAt": "string",
"errorCode": "string",
"message": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
channels | array<object> | はい | スキーマの章で参照先のスキーマを確認してください。 |
completedAt | string | いいえ | スキーマの章で参照先のスキーマを確認してください。 |
createdAt | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
errorCode | string | いいえ | スキーマの章で参照先のスキーマを確認してください。 |
message | string | いいえ | スキーマの章で参照先のスキーマを確認してください。 |
messageId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
recipientName | string | いいえ | Recipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now |
recipientUserId | string | はい | Recipient user ID of the request (a large integer carried as string), same as the recipientUserId given when sending |
status | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
type | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json | |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
List notification delivery records
List notification delivery records page by page, without the content. A personal key whose owner is an owner or admin of the workspace sees the whole workspace; any other key sees only the records it sent. The whole-workspace scope includes records dispatched from the admin console (keyId is the string 0).
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"messageId":"string","page":0,"recipientUserId":"string","size":0,"status":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
messageId | string | いいえ | Filter by message ID (a large integer carried as string, a positive integer); omitted or empty string means no filter |
page | integer | いいえ | Page number, 1-based; defaults to 1 when omitted, an explicit value must be >= 1 |
recipientUserId | string | いいえ | Filter by recipient user ID (a large integer carried as string, a positive integer); omitted or empty string means no filter |
size | integer | いいえ | Items per page; defaults to 20 when omitted, an explicit value must be between 1 and 100 |
status | string | いいえ | Filter by status: accepted / sent / failed; omitted or empty string means no filter, any other value is rejected with 400 |
200 · application/json
{
"list": [
{
"channels": "value",
"completedAt": "value",
"createdAt": "value",
"errorCode": "value",
"keyId": "value"
}
],
"page": 0,
"size": 0,
"total": 0
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
list | array<object> | はい | スキーマの章で参照先のスキーマを確認してください。 |
page | integer | はい | Page number actually used |
size | integer | はい | Items per page actually used |
total | integer | はい | Total number of records matching the filters |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json | |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
Send a notification
Send an inbox notification to a user in the API key's workspace, optionally requesting web or mobile push delivery.
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/send' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"channels":["web"],"content":"string","idempotencyKey":"string","link":"string","mode":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
channels | array<string> | いいえ | OpenAPI に記載なし |
content | string | はい | Plain text only; a request containing HTML tags is rejected with 400. |
idempotencyKey | string | はい | OpenAPI に記載なし |
link | string | いいえ | OpenAPI に記載なし |
mode | string | いいえ | Deprecated (2026-11-04): test/live is decided by the platform from the API key and sender.type, and the value sent here is ignored (except for existing app credentials that do not distinguish preview from deployment, during the transition). test messages appear only in that App's Building preview bell; they do not enter the message center and are not pushed to devices. |
recipientUserId | string | はい | OpenAPI に記載なし |
sender | object | いいえ | PlatformNotificationSender. スキーマの章で参照先のスキーマを確認してください。 |
source | string | いいえ | Deprecated transitional alias for sender.name. sender.name takes precedence; this field will be removed. |
title | string | はい | Plain text only; a request containing HTML tags is rejected with 400. |
type | string | はい | OpenAPI に記載なし |
200 · application/json
{
"createdAt": "string",
"messageId": "string",
"recipientName": "string",
"recipientUserId": "string",
"status": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
createdAt | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
messageId | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
recipientName | string | いいえ | Recipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now; never affects the send result |
recipientUserId | string | はい | Recipient user ID of the request (a large integer carried as string); on an idempotent hit it is the recipient of the existing request |
status | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json | |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
listAccessMembers
curl --request POST 'https://<tier0-host>/openapi/v2/apps/access-members/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","grantedAtEnd":0,"grantedAtStart":0,"page":0,"roleKeys":["string"]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appId | string | はい | OpenAPI に記載なし |
grantedAtEnd | integer | いいえ | Milliseconds; inclusive bounds with second precision. |
grantedAtStart | integer | いいえ | Milliseconds; inclusive bounds with second precision. |
page | integer | いいえ | OpenAPI に記載なし |
roleKeys | array<string> | いいえ | Match any value, case insensitive. |
scope | string | いいえ | draft: computed from draft roles; production or omitted: computed from the production version. |
size | integer | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"allActiveMembers": 0,
"appId": "string",
"list": [
"value"
],
"page": 0,
"productionVersionId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAppAccessMembersListResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
getMembers
curl --request POST 'https://<tier0-host>/openapi/v2/platform/getMembers' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"keyword":"string","page":0,"roleKey":"string","roles":["string"],"size":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
keyword | string | いいえ | OpenAPI に記載なし |
page | integer | いいえ | OpenAPI に記載なし |
roleKey | string | いいえ | OpenAPI に記載なし |
roles | array<string> | いいえ | OpenAPI に記載なし |
size | integer | いいえ | OpenAPI に記載なし |
statuses | array<string> | いいえ | OpenAPI に記載なし |
updatedAtEnd | string | いいえ | OpenAPI に記載なし |
updatedAtStart | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformPlatformMembersResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Create an MQTT credential
Create a regular MQTT credential of the same type created manually in the UI. The password is returned only once, in the successful creation response. Store it securely; this API cannot retrieve it later. Requires a full_access API key.
curl --request POST 'https://<tier0-host>/openapi/v2/mqtt-auth/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"clientIDRandomSuffixEnabled":false,"description":"string","name":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
clientIDRandomSuffixEnabled | boolean | いいえ | OpenAPI に記載なし |
description | string | いいえ | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"clientID": "string",
"clientIDRandomSuffixEnabled": false,
"id": 0,
"name": "string",
"password": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformMqttAuthCreateResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Delete an MQTT credential
Idempotently delete a regular MQTT credential. Missing, deleted or non-regular IDs return success without deleting Flow, EdgeNode or other system credentials. Requires a full_access API key.
curl --request POST 'https://<tier0-host>/openapi/v2/mqtt-auth/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | integer | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"success": false
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformMqttAuthDeleteResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Dispatch an analysis using its operation ID
Dispatch an immediate refresh or rerun analysis using an operationId UUID. Repeating the same ID and request reads the original run without executing again. Requires uns:write and the actual owner's identity.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/analyses/dispatch' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"canvasId":"string","cardId":"string","kind":"string","operationId":"string","resultId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | いいえ | OpenAPI に記載なし |
cardId | string | いいえ | OpenAPI に記載なし |
kind | string | はい | OpenAPI に記載なし |
operationId | string | はい | OpenAPI に記載なし |
resultId | string | いいえ | OpenAPI に記載なし |
task | object | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"dispatchState": "string",
"errorCode": "string",
"errorMessage": "string",
"runId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentAnalysisDispatchResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Read an analysis run and result reference
Read the current owner's analysis status, errors and results by runId within the workspace. Other users' runs are inaccessible. Requires uns:read.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/analyses/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"runId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
runId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"run": {
"dispatchState": "value",
"errorCode": "value",
"errorMessage": "value",
"finishedAt": "value",
"firedAt": "value"
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentAnalysisGetResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
List workspace canvases
List canvas metadata in the current workspace, optionally filtered by platform session. page and size are required; size is 1 to 100. Requires uns:read.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/canvases/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"sessionId":"string","size":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
page | integer | はい | OpenAPI に記載なし |
sessionId | string | いいえ | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentCanvasListResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Delete a canvas card with optimistic concurrency
Delete by canvas and card row ID. expectedCardSpec must match the full current card or HTTP 409 is returned. Requires uns:write.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/cards/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"canvasId":"string","cardId":"string","expectedCardSpec":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | はい | OpenAPI に記載なし |
cardId | string | はい | OpenAPI に記載なし |
expectedCardSpec | object | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"cardId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentCardDeleteResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Read a complete canvas card
Read the full CardSpec by authenticated workspace, canvas ID and card row ID before editing.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/cards/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"canvasId":"string","cardId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | はい | OpenAPI に記載なし |
cardId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"canvasId": "string",
"cardId": "string",
"cardKey": "string",
"cardSpec": "string",
"updatedAt": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentCardGetResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
List canvas cards
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/cards/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"canvasId":"string","page":0,"size":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentCardListResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Update a canvas card
A sandbox Agent updates a canvas card using an App key. The card must belong to the key's workspace.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/cards/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"canvasId":"string","cardId":"string","cardSpec":"string","expectedCardSpec":"string","ord":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | いいえ | OpenAPI に記載なし |
cardId | string | はい | OpenAPI に記載なし |
cardSpec | object | はい | OpenAPI に記載なし |
expectedCardSpec | object | はい | The full previously read card. Changes produce HTTP 409. |
ord | integer | いいえ | Canvas order: omit to leave unchanged (forwarded to unssvr as -1). Explicit values, including 0, are preserved. |
position | object | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"cardId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentCardUpdateResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Read a task run
Only the task owner may use this operation. Triggering returns the run ID and current dispatch state, not proof of successful execution. Do not retry automatically after an unknown network outcome.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/job-runs/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string","jobRunId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | はい | OpenAPI に記載なし |
jobRunId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"run": {
"dispatchState": "value",
"errorCode": "value",
"errorMessage": "value",
"finishedAt": "value",
"firedAt": "value"
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentJobRunGetResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
List task run history
Only the task owner may use this operation. Triggering returns the run ID and current dispatch state, not proof of successful execution. Do not retry automatically after an unknown network outcome.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/job-runs/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string","page":0,"size":0,"status":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
status | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentJobRunListResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Create a scheduled task
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"cardId":"string","cronExpr":"string","expiresAt":0,"intervalSeconds":0,"name":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardId | string | いいえ | OpenAPI に記載なし |
cronExpr | string | いいえ | OpenAPI に記載なし |
expiresAt | integer | いいえ | OpenAPI に記載なし |
intervalSeconds | integer | いいえ | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
notify | object | いいえ | OpenAPI に記載なし |
scheduleKind | string | はい | OpenAPI に記載なし |
sessionId | string | はい | OpenAPI に記載なし |
sourceBlockId | string | いいえ | OpenAPI に記載なし |
sourceId | string | いいえ | OpenAPI に記載なし |
sourceName | string | いいえ | OpenAPI に記載なし |
sourceType | string | はい | OpenAPI に記載なし |
task | object | はい | OpenAPI に記載なし |
type | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"jobId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentJobMutationResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Delete a scheduled task
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"jobId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentJobMutationResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Read a scheduled task
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"job": {
"attentionReason": "value",
"cardId": "value",
"createdAt": "value",
"cronExpr": "value",
"expiresAt": "value"
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentJobGetResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
List scheduled tasks
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"cardId":"string","page":0,"search":"string","size":0,"sourceId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardId | string | いいえ | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
search | string | いいえ | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
sourceId | string | いいえ | OpenAPI に記載なし |
sourceType | string | いいえ | OpenAPI に記載なし |
status | string | いいえ | active / paused / needs_attention / expired |
type | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentJobListResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Pause a scheduled task
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/pause' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"jobId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentJobMutationResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Resume a scheduled task
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/resume' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"jobId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentJobMutationResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Trigger a task once
Only the task owner may use this operation. Triggering returns the run ID and current dispatch state, not proof of successful execution. Do not retry automatically after an unknown network outcome.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/trigger' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"dispatchState": "string",
"jobId": "string",
"jobRunId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentJobTriggerResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Update a scheduled task
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"cardId":"string","cronExpr":"string","expiresAt":0,"intervalSeconds":0,"jobId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardId | string | いいえ | OpenAPI に記載なし |
cronExpr | string | いいえ | OpenAPI に記載なし |
expiresAt | integer | いいえ | OpenAPI に記載なし |
intervalSeconds | integer | いいえ | OpenAPI に記載なし |
jobId | string | はい | OpenAPI に記載なし |
name | string | いいえ | OpenAPI に記載なし |
notify | object | いいえ | OpenAPI に記載なし |
notifyEnabled | integer | いいえ | Omit to preserve notification settings. 1 requires notify; 2 disables notifications and must omit notify. |
scheduleKind | string | いいえ | OpenAPI に記載なし |
sessionId | string | いいえ | OpenAPI に記載なし |
sourceBlockId | string | いいえ | OpenAPI に記載なし |
sourceId | string | いいえ | OpenAPI に記載なし |
sourceName | string | いいえ | OpenAPI に記載なし |
sourceType | string | いいえ | OpenAPI に記載なし |
task | object | いいえ | OpenAPI に記載なし |
type | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"jobId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentJobMutationResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Create a library entry with conflict detection
Create a workspace template. The same cardKey and content reuse the existing entry; different content returns HTTP 409 without overwriting the template. Requires uns:write.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"cardKey":"string","cardSpec":"string","sourceSessionId":"string","tags":["string"]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardKey | string | はい | OpenAPI に記載なし |
cardSpec | object | はい | OpenAPI に記載なし |
sourceSessionId | string | いいえ | OpenAPI に記載なし |
tags | array<string> | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"libraryItemId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentLibraryMutationResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Delete a card library entry
Delete a workspace template by its verified library entry ID. Requires uns:write.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"libraryItemId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
libraryItemId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"libraryItemId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentLibraryMutationResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Read a complete card library entry
Read the complete template, tags and source session by library entry ID before editing. Requires uns:read.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"libraryItemId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
libraryItemId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"item": {
"cardKey": "value",
"cardSpec": "value",
"createdAt": "value",
"libraryItemId": "value",
"sourceSessionId": "value"
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentLibraryGetResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
List card library entries
List shared card templates in the current workspace, matching any requested tag and optionally searching titles. Requires uns:read.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"search":"string","size":0,"tags":["string"]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
page | integer | はい | OpenAPI に記載なし |
search | string | いいえ | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
tags | array<string> | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentLibraryListResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Update a library entry with optimistic concurrency
Update a template with the full previously read expectedItem. Changed content returns HTTP 409. An explicit empty tags array clears tags. Requires uns:write.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"cardSpec":"string","expectedItem":{"cardKey":"string","cardSpec":"string","sourceSessionId":"string","tags":["value"]},"libraryItemId":"string","sourceSessionId":"string","tags":["string"]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardSpec | object | はい | OpenAPI に記載なし |
expectedItem | object | はい | PlatformAgentLibrarySnapshot. スキーマの章で参照先のスキーマを確認してください。 |
libraryItemId | string | はい | OpenAPI に記載なし |
sourceSessionId | string | いいえ | OpenAPI に記載なし |
tags | array<string> | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"libraryItemId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentLibraryMutationResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Save an Agent analysis result
A sandbox Agent submits a v1 result manifest using an App key, with idempotency by operationId.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/results/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"cardSpec":"string","dataScope":"string","images":["value"],"missingData":"string","operationId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardSpec | object | いいえ | OpenAPI に記載なし |
dataScope | object | いいえ | OpenAPI に記載なし |
images | array | いいえ | OpenAPI に記載なし |
missingData | object | はい | OpenAPI に記載なし |
operationId | string | はい | OpenAPI に記載なし |
resultSchemaVersion | integer | はい | OpenAPI に記載なし |
source | object | はい | PlatformAgentResultSource. スキーマの章で参照先のスキーマを確認してください。 |
steps | array | いいえ | OpenAPI に記載なし |
summary | string | いいえ | OpenAPI に記載なし |
tables | array | いいえ | OpenAPI に記載なし |
title | string | はい | OpenAPI に記載なし |
warnings | array<string> | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"jobRunId": "string",
"resultId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentResultCreateResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Read a saved analysis result
Read a result in the authenticated workspace using exactly one of resultId or operationId. Reuse the original operation ID to verify a save after a lost receipt. Returns the full manifest and CardSpec; requires uns:read.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/results/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"operationId":"string","resultId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
operationId | string | いいえ | Provide this or resultId, but not both. After a save timeout, retrieve by the original ID instead of saving again. |
resultId | string | いいえ | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"result": {
"agentId": "value",
"byteSize": "value",
"cardSpec": "value",
"createdAt": "value",
"manifest": "value"
}
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentResultGetResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
List saved analysis results
List results in the authenticated workspace, optionally filtered by platform session. page and size are required; size is 1 to 100. Requires uns:read.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/results/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"platformSessionId":"string","size":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
page | integer | はい | OpenAPI に記載なし |
platformSessionId | string | いいえ | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentResultListResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Pin a saved result to a canvas
Pin a result in the authenticated workspace; requires uns:write. Create a card from CardSpec when present, or a reference card that reads tabular/chart details by resultId. Retrying the same result and canvas returns the original card without overwriting later edits.
curl --request POST 'https://<tier0-host>/openapi/v2/agent/results/pin' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"canvasId":"string","position":"string","resultId":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | はい | OpenAPI に記載なし |
position | object | いいえ | OpenAPI に記載なし |
resultId | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"cardId": "string"
}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
msg | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
data | object | はい | PlatformAgentResultPinResp. スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json |
Describe Stream request
Read a public Stream request contract without exposing internal runtime bindings.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
requestCode | path | string | はい | OpenAPI に記載なし |
200 · application/json
{
"code": "string",
"contractVersion": "string",
"description": "string",
"idempotency": "string",
"inputSchema": {}
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
contractVersion | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
description | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
idempotency | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
inputSchema | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
name | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
outputSchema | object | はい | スキーマの章で参照先のスキーマを確認してください。 |
sideEffect | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
status | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
timeoutMs | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json | |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
Invoke Stream request
Invoke a Stream request using its public contract. The raw body must be valid UTF-8 and at most 1 MiB. The optional idempotencyKey is limited to 128 decoded UTF-8 bytes; the frozen contract determines whether it is required. Returns code, contractVersion, result, runID, status and replayed (boolean), without internal runtime bindings. An unknown result returns HTTP 504 with errorCode=STREAM_REQUEST_RESULT_UNKNOWN. Unclassified internal errors return HTTP 500 with errorCode=STREAM_REQUEST_INTERNAL_ERROR; message does not expose internal exceptions.
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
requestCode | path | string | はい | OpenAPI に記載なし |
curl --request POST 'https://<tier0-host>/openapi/v2/stream-requests/{requestCode}/invoke' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","input":"string"}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
idempotencyKey | string | いいえ | At most 128 decoded UTF-8 bytes. The frozen contract determines whether this field is required. |
input | object | はい | OpenAPI に記載なし |
200 · application/json
{
"code": "string",
"contractVersion": "string",
"replayed": false,
"result": "string",
"runID": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
contractVersion | string | はい | The frozen contract version used for execution. |
replayed | boolean | はい | true indicates an idempotent replay; false indicates the first execution. |
result | object | はい | The JSON result defined by the contract; null is allowed. |
runID | string | はい | The execution identifier returned by the server, represented as an opaque string. |
status | string | はい | The final status returned by the server; never accepted, queued, pending or running. |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json | |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
Discover Stream requests
Discover visible Stream request contracts without exposing internal runtime bindings.
curl --request POST 'https://<tier0-host>/openapi/v2/stream-requests/discover' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"search":"string","size":0}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
page | integer | いいえ | Defaults to 1. |
search | string | いいえ | OpenAPI に記載なし |
size | integer | いいえ | Defaults to 20. |
200 · application/json
{
"list": [
{
"code": "value",
"contractVersion": "value",
"description": "value",
"idempotency": "value",
"inputSchema": "value"
}
],
"total": 0
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
list | array<object> | はい | スキーマの章で参照先のスキーマを確認してください。 |
total | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json | |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
Connect Stream messages
curl --request POST 'https://<tier0-host>/openapi/v2/stream-messages/connect' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","clientPublicKey":"string","topics":[{"publish":"value","subscribe":"value","topic":"value"}]}'application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appId | string | はい | OpenAPI に記載なし |
clientPublicKey | string | はい | OpenAPI に記載なし |
topics | array<object> | はい | OpenAPI に記載なし |
200 · application/json
{
"contractVersion": "string",
"expiresAt": "string",
"maxPayloadBytes": 0,
"permissions": [
{
"publishSubject": "value",
"subscribeSubject": "value",
"topic": "value"
}
],
"url": "string"
}200 · application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
contractVersion | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
expiresAt | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
maxPayloadBytes | integer | はい | スキーマの章で参照先のスキーマを確認してください。 |
permissions | array<object> | はい | スキーマの章で参照先のスキーマを確認してください。 |
url | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
userJwt | string | はい | スキーマの章で参照先のスキーマを確認してください。 |
| ステータス | 意味 | メディアタイプ |
|---|---|---|
200 | application/json | |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
API のフィールド名、例、元の説明は、同梱の英語版 OpenAPI 仕様に従います。
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
alias | string | はい | OpenAPI に記載なし |
collectionId | string | はい | Collection ID identifying the owner of business records and samples. |
indexes | array<object> | いいえ | Unified index declaration, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omission preserves indexes; [] removes them. Paths omit data.; unique indexes are record B-trees only. Builds are asynchronous; check readiness through indexStatus. |
permissions | array<string> | はい | OpenAPI に記載なし |
recordSchema | object | はい | Schema. スキーマの章で参照先のスキーマを確認してください。 |
sampleSchema | object | いいえ | Schema. スキーマの章で参照先のスキーマを確認してください。 |
createCapability | object | いいえ | CloudAppCreateCapability. スキーマの章で参照先のスキーマを確認してください。 |
revision | integer | はい | Collection definition revision; increments on structural or index changes. |
indexStatus | array<object> | はい | Current index state; only ready unique indexes support upsert, and only ready TTL indexes begin expiration deletion. |
ttl | object | はい | Collection TTL rule, or null when absent. |
ownerAppId | string | いいえ | Owning App of the collection. Equal to the current appId for an owned collection, different for a collection granted from another App; omitted for workspace collections. |
name | string | はい | Business name of the collection. |
description | string | いいえ | Collection description; omitted when empty. |
directoryPath | array<string> | はい | Directory names from the workspace root to the collection, in the same shape as appCollectionsEnsure directoryPath; [] when the collection is at the root. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appId | string | はい | OpenAPI に記載なし |
collections | array<object> | はい | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
platformPermissions | array<string> | はい | Explicit platform capabilities; default none; current App grants intersect with key and issuer resources |
revision | integer | はい | OpenAPI に記載なし |
dataState | string | はい | uninitialized means no data policy exists: empty collections are returned without writing initialization state; declaring the actual collections through ensure makes the state ready. An administrator-disabled policy still returns HTTP 403 APP_DATA_POLICY_DISABLED and is never re-enabled automatically. |
limits | object | はい | CloudAppDataLimits. スキーマの章で参照先のスキーマを確認してください。 |
Unknown capability codes are ignored; only recognized codes use the frozen assessment contract.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | OpenAPI に記載なし |
State reports publication and assessed prerequisites only; ready never grants resource access or confirms an actual execution.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
state | object | はい | OpenAPI に記載なし |
reasonCode | string | はい | OpenAPI に記載なし |
checkedAt | string (date-time) | いいえ | OpenAPI に記載なし |
validUntil | string (date-time) | いいえ | Proof expiry must follow checkedAt. Cross-field chronological ordering is a semantic constraint checked by consumers in addition to this structural JSON Schema. |
retryAfterMs | integer | いいえ | OpenAPI に記載なし |
code | string | はい | OpenAPI に記載なし |
contractVersions | array<string> | はい | OpenAPI に記載なし |
operations | array<object> | いいえ | OpenAPI に記載なし |
State reports publication and assessed prerequisites only; ready never grants resource access or confirms an actual execution.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
state | object | はい | OpenAPI に記載なし |
reasonCode | string | はい | OpenAPI に記載なし |
checkedAt | string (date-time) | いいえ | OpenAPI に記載なし |
validUntil | string (date-time) | いいえ | Proof expiry must follow checkedAt. Cross-field chronological ordering is a semantic constraint checked by consumers in addition to this structural JSON Schema. |
retryAfterMs | integer | いいえ | OpenAPI に記載なし |
operation | string | はい | OpenAPI に記載なし |
requiresResourceCheck | boolean | はい | OpenAPI に記載なし |
Unknown operation names are ignored within their parent capability; known names are validated by that capability.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
operation | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
alias | string | はい | Case-insensitively unique app collection alias, matching src/data/collections.ts. |
name | string | はい | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. Required. ensure writes the name only on creation; existing names are maintained through metadata updates. Declaration changes do not overwrite user renames. |
recordSchema | object | はい | Schema. スキーマの章で参照先のスキーマを確認してください。 |
indexes | array<object> | いいえ | Declared indexes; ensure unions current and declared indexes without removing any. |
description | string | いいえ | Collection description is written only on creation; later changes use schema:replace. ensure does not write annotations and reports differences in ignored as ANNOTATION_NOT_APPLIED. |
directoryPath | array<string> | いいえ | Real business directory names from the workspace root. Required for new aliases; existing aliases may omit it, and changed paths are ignored without moving Collections. Reuse active directories by parent and name or atomically create missing segments. Archived or non-directory name conflicts fail without restoring directories or granting extra permissions. For industrial data, follow the known ISA-95 equipment hierarchy Enterprise, Site, Area, Work Center, Work Unit. Skip inapplicable levels; non-industrial data uses its real business hierarchy. Never invent five levels. MES, App or business-module directories are allowed below the real equipment scope, for example Factory/Line/MES/Work Orders. Do not flatten data from different equipment scopes into a single root App container. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
alias | string | はい | Case-insensitively unique app collection alias, matching src/data/collections.ts. |
collectionId | string | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
status | string | はい | OpenAPI に記載なし |
ignored | array<object> | はい | Differences ignored because the declaration is narrower than storage or hits retired; for logging only. |
warnings | array<object> | はい | OpenAPI に記載なし |
indexStatus | array<object> | はい | Current index state; only ready unique indexes support upsert. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
paths | array<string> | はい | OpenAPI に記載なし |
enumValues | array<object> | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
path | string | はい | Schema paths join object properties with dots, escaping literal . and backslash with backslash. Array elements use [], such as lines.[].discount; empty string means the record root. |
reason | string | はい | OpenAPI に記載なし |
message | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
alias | string | はい | Case-insensitively unique app collection alias, matching src/data/collections.ts. |
collectionId | string | はい | OpenAPI に記載なし |
name | string | はい | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. |
description | string | いいえ | OpenAPI に記載なし |
parentId | string | いいえ | OpenAPI に記載なし |
recordSchema | object | はい | Schema. スキーマの章で参照先のスキーマを確認してください。 |
indexes | array<object> | はい | OpenAPI に記載なし |
indexStatus | array<object> | はい | OpenAPI に記載なし |
retired | object | はい | CloudAppCollectionRetired. スキーマの章で参照先のスキーマを確認してください。 |
revision | integer | はい | OpenAPI に記載なし |
archived | boolean | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | OpenAPI に記載なし |
path | string | いいえ | OpenAPI に記載なし |
message | string | はい | OpenAPI に記載なし |
Creation-input hint for the current key/app/employee and collection version; not an authorization credential. allowed=true establishes that compliant input exists, not that uniqueness, actual input or future writes will succeed. inputSchema selects writable fields independently, including write-only fields, rather than using the read schema. owner/state are injected by the server and not exposed to clients. No business defaults are filled; required fields must still be supplied. Unprovable schema semantics safely return false. Writes and replay always reauthorize at runtime; binding is only for UI cache invalidation.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
version | string | はい | OpenAPI に記載なし |
allowed | boolean | はい | OpenAPI に記載なし |
reason | string | はい | OpenAPI に記載なし |
appRevision | integer | はい | OpenAPI に記載なし |
collectionRevision | integer | はい | OpenAPI に記載なし |
binding | string | はい | OpenAPI に記載なし |
inputSchema | object | いいえ | Schema. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
alias | string | いいえ | Optional access alias; when omitted, authorize and access directly by collectionId. An empty string clears the alias. |
collectionId | string | はい | OpenAPI に記載なし |
permissions | array<string> | はい | OpenAPI に記載なし |
dataRule | object | いいえ | CloudAppDataRule. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
action | string | はい | OpenAPI に記載なし |
collectionId | string | はい | OpenAPI に記載なし |
alias | string | いいえ | Optional access alias; when omitted, authorize and access directly by collectionId. An empty string clears the alias. |
permissionLevel | string | いいえ | Business record permission presets: read-only, read-write and manage including deletion. Mutually exclusive with permissions; does not automatically grant sample permissions. |
permissions | array<string> | いいえ | OpenAPI に記載なし |
dataRule | object | いいえ | Omission retains employee rules; null clears them explicitly and requires ruleContractVersion confirmation. |
Current data-plane limits for SDK/MCP batch and concurrency adaptation; returned from current server configuration.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
count | object | はい | OpenAPI に記載なし |
total | object | はい | OpenAPI に記載なし |
queryBatch | object | はい | OpenAPI に記載なし |
get | object | はい | OpenAPI に記載なし |
subscribe | object | はい | OpenAPI に記載なし |
ttl | object | はい | OpenAPI に記載なし |
concurrency | object | はい | OpenAPI に記載なし |
idempotencyWindowMs | integer | はい | Write-idempotency retention window in milliseconds; reuse after the window is treated as a new request. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appId | string (uuid) | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
version | string | はい | OpenAPI に記載なし |
status | string | はい | OpenAPI に記載なし |
collections | array<object> | はい | OpenAPI に記載なし |
authorityStatus | string | はい | OpenAPI に記載なし |
appName | string | はい | OpenAPI に記載なし |
ruleContractVersion | string | いいえ | Required explicitly on updates when any previous or proposed Collection grant has a dataRule, including removal and disabled revocation. Omitted for unprotected policies. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
version | string | はい | OpenAPI に記載なし |
ownerField | string | はい | OpenAPI に記載なし |
stateField | string | いいえ | OpenAPI に記載なし |
initialState | string | いいえ | OpenAPI に記載なし |
principals | array<object> | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
userId | string | はい | OpenAPI に記載なし |
rowScope | string | はい | OpenAPI に記載なし |
permissions | array<string> | はい | OpenAPI に記載なし |
readFields | array<string> | いいえ | OpenAPI に記載なし |
writeFields | array<string> | いいえ | OpenAPI に記載なし |
writeStates | array<string> | いいえ | OpenAPI に記載なし |
transitions | array<object> | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
from | string | はい | OpenAPI に記載なし |
to | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | OpenAPI に記載なし |
streamId | string | はい | OpenAPI に記載なし |
streamName | string | はい | OpenAPI に記載なし |
entryId | string | はい | OpenAPI に記載なし |
entryName | string | はい | OpenAPI に記載なし |
actions | array<string> | はい | OpenAPI に記載なし |
configuredActive | integer | はい | OpenAPI に記載なし |
state | string | はい | OpenAPI に記載なし |
blockedReasons | array<string> | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | array<object> | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
total | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appId | string (uuid) | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
version | string | はい | OpenAPI に記載なし |
status | string | はい | OpenAPI に記載なし |
authorityStatus | string | はい | OpenAPI に記載なし |
appName | string | はい | OpenAPI に記載なし |
platformPermissions | array<string> | はい | OpenAPI に記載なし |
messageTopics | array<object> | いいえ | OpenAPI に記載なし |
Capped count.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
count | integer | はい | OpenAPI に記載なし |
capped | boolean | はい | capped=true means actual matches exceed the cap, checked using cap + 1 rows, and count equals the cap. With capped=false, count is the complete total. |
Collection TTL rule: physically delete records after path time plus expireAfterSeconds; irreversible.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
path | string | はい | Expiration timestamp field. |
expireAfterSeconds | integer | はい | OpenAPI に記載なし |
Pipeline-generated documents, without record/sample wrappers. Fields are determined by pipeline.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | array<object> | はい | OpenAPI に記載なし |
pageInfo | object | はい | CloudPageInfo. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
mode | string | いいえ | OpenAPI に記載なし |
page | integer | いいえ | OpenAPI に記載なし |
size | integer | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
values | array<object> | はい | OpenAPI に記載なし |
pageInfo | object | はい | CloudPageInfo. スキーマの章で参照先のスキーマを確認してください。 |
Ordinary business record. Business fields are in data; system attributes are siblings. filter/projection use bare business names and _id/_meta.*, not response-object paths. lock describes only active leases and does not return tokens.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
collectionId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
createdAt | integer | はい | Unix milliseconds. |
updatedAt | integer | はい | Unix milliseconds. |
sourceId | string | はい | OpenAPI に記載なし |
sourceTime | integer | はい | Unix milliseconds. |
lock | object | いいえ | CloudRecordLockView. スキーマの章で参照先のスキーマを確認してください。 |
Ordinary sample object. Business fields are in data; time, quality, record identity and available provenance are siblings.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
collectionId | string | はい | OpenAPI に記載なし |
recordId | string | はい | OpenAPI に記載なし |
time | integer | はい | Unix milliseconds. |
receivedAt | integer | はい | Unix milliseconds. |
quality | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
sourceId | string | はい | OpenAPI に記載なし |
streamId | string | いいえ | OpenAPI に記載なし |
bindingId | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
mode | string | はい | OpenAPI に記載なし |
hasMore | boolean | はい | OpenAPI に記載なし |
nextCursor | string | はい | OpenAPI に記載なし |
nextPage | integer | はい | OpenAPI に記載なし |
snapshotScope | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
ready | boolean | はい | OpenAPI に記載なし |
reasonCode | string | はい | OpenAPI に記載なし |
checkedAt | string (date-time) | いいえ | OpenAPI に記載なし |
validUntil | string (date-time) | いいえ | OpenAPI に記載なし |
retryAfterMs | integer | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
validated | boolean | はい | OpenAPI に記載なし |
sideEffects | boolean | はい | OpenAPI に記載なし |
Pipeline-generated documents; total is the capped count of pipeline output.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | array<object> | はい | OpenAPI に記載なし |
pageInfo | object | はい | CloudPageInfo. スキーマの章で参照先のスキーマを確認してください。 |
total | object | いいえ | CloudCappedCount. スキーマの章で参照先のスキーマを確認してください。 |
Batch entries support find/count/distinct/aggregate/get. Fields follow each op variant, with id and op. Record distinct is available only within queryBatch; no standalone distinct endpoint exists.
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]{1,64}$",
"description": "Unique query identifier within the batch, used to return results."
},
"op": {
"type": "string",
"enum": [
"find"
]
},
"collectionId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "Collection ID identifying the owner of business records and samples."
},
"filter": {
"$ref": "#/components/schemas/UnsV2DataFilter"
},
"sort": {
"$ref": "#/components/schemas/UnsV2PipelineSort"
},
"projection": {
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "integer",
"enum": [
0,
1
]
},
{
"type": "boolean"
}
]
},
"description": "Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200
},
"cursor": {
"type": "string"
},
"count": {
"$ref": "#/components/schemas/CloudRecordTotalOption"
}
},
"required": [
"id",
"op",
"collectionId"
],
"allOf": [
{
"not": {
"required": [
"count",
"cursor"
]
}
}
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]{1,64}$",
"description": "Unique query identifier within the batch, used to return results."
},
"op": {
"type": "string",
"enum": [
"count"
]
},
"collectionId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "Collection ID identifying the owner of business records and samples."
},
"filter": {
"$ref": "#/components/schemas/UnsV2DataFilter"
},
"maxCount": {
"type": "integer",
"minimum": 1,
"maximum": 100000,
"default": 100000,
"description": "Count limit; actual counts above maxCount return count=maxCount and capped=true. Equality returns capped=false."
}
},
"required": [
"id",
"op",
"collectionId"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]{1,64}$",
"description": "Unique query identifier within the batch, used to return results."
},
"op": {
"type": "string",
"enum": [
"distinct"
]
},
"collectionId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "Collection ID identifying the owner of business records and samples."
},
"filter": {
"$ref": "#/components/schemas/UnsV2DataFilter"
},
"field": {
"type": "string"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200
},
"page": {
"$ref": "#/components/schemas/CloudDistinctPage"
}
},
"required": [
"id",
"op",
"collectionId",
"field"
],
"allOf": [
{
"not": {
"required": [
"limit",
"page"
]
}
}
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]{1,64}$",
"description": "Unique query identifier within the batch, used to return results."
},
"op": {
"type": "string",
"enum": [
"aggregate"
]
},
"collectionId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "Collection ID identifying the owner of business records and samples."
},
"pipeline": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineStage"
},
"minItems": 0,
"maxItems": 32
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200
},
"page": {
"$ref": "#/components/schemas/UnsV2PipelinePage"
},
"count": {
"$ref": "#/components/schemas/CloudRecordTotalOption"
}
},
"required": [
"id",
"op",
"collectionId",
"pipeline"
],
"allOf": [
{
"not": {
"required": [
"page",
"limit"
]
}
},
{
"not": {
"required": [
"count",
"page"
],
"properties": {
"page": {
"required": [
"cursor"
]
}
}
}
}
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]{1,64}$",
"description": "Unique query identifier within the batch, used to return results."
},
"op": {
"type": "string",
"enum": [
"get"
]
},
"collectionId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"minItems": 1,
"maxItems": 100,
"uniqueItems": true
},
"projection": {
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "integer",
"enum": [
0,
1
]
},
{
"type": "boolean"
}
]
},
"description": "Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained."
}
},
"required": [
"id",
"op",
"collectionId",
"ids"
]
}
],
"description": "Batch entries support find/count/distinct/aggregate/get. Fields follow each op variant, with id and op. Record distinct is available only within queryBatch; no standalone distinct endpoint exists."
}Individual result. Validation, compilation, authorization and individual SQL errors affect only that item; statement timeout or exceeding the batch read budget fails the whole batch.
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"ok": {
"type": "boolean",
"enum": [
true
]
},
"data": {
"oneOf": [
{
"$ref": "#/components/schemas/CloudRecordPage"
},
{
"$ref": "#/components/schemas/CloudCappedCount"
},
{
"$ref": "#/components/schemas/CloudDistinctResult"
},
{
"$ref": "#/components/schemas/CloudRecordAggregatePage"
},
{
"$ref": "#/components/schemas/CloudRecordGetResult"
}
],
"description": "Same as data in the corresponding single endpoint's successful response."
}
},
"required": [
"ok",
"data"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"ok": {
"type": "boolean",
"enum": [
false
]
},
"error": {
"$ref": "#/components/schemas/Fault"
}
},
"required": [
"ok",
"error"
]
}
],
"description": "Individual result. Validation, compilation, authorization and individual SQL errors affect only that item; statement timeout or exceeding the batch read budget fails the whole batch."
}| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
eventId | string | はい | Event position, equal to the SSE frame id; use as Last-Event-ID on reconnect. Opaque; do not parse or concatenate it. |
collectionId | string | はい | OpenAPI に記載なし |
recordId | string | はい | OpenAPI に記載なし |
revision | integer | はい | Record revision after the change; delete uses the deletion revision. |
change | string | はい | record: insert, update or restore; delete: soft deletion or physical TTL deletion. Read again by recordId to obtain current content. |
occurredAt | integer | はい | Write time: server time within the write transaction, in Unix milliseconds. Events follow write-transaction order, not commit order. Revisions for one record are not guaranteed monotonic. Reread by recordId and ignore non-delete events whose revision is no newer than already observed. Always process delete events, including late ones, and clear the record's observed revision. Treat later events with the same ID as a new record: revisions continue after soft deletion but restart at 1 after physical deletion. |
restricted | boolean | はい | true when the collection has employee data rules. Servers aggregating under app identity may forward restricted events only as collection-level notifications without recordId/revision. Browsers reread through employee-rule-protected endpoints to avoid disclosing inaccessible record existence. |
items follow requested ids order; nonexistent, soft-deleted or unreadable IDs appear in missing.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | array<object> | はい | OpenAPI に記載なし |
missing | array<string> | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
token | string | はい | OpenAPI に記載なし |
expiresAt | integer | はい | Unix milliseconds. |
fence | integer | はい | OpenAPI に記載なし |
record | object | はい | RecordDocument. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
label | string | はい | OpenAPI に記載なし |
expiresAt | integer | はい | Unix milliseconds. |
fence | integer | はい | OpenAPI に記載なし |
since | integer | はい | Unix milliseconds. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | array<object> | はい | OpenAPI に記載なし |
pageInfo | object | はい | CloudPageInfo. スキーマの章で参照先のスキーマを確認してください。 |
total | object | いいえ | CloudCappedCount. スキーマの章で参照先のスキーマを確認してください。 |
SSE frame: event is the frame type, id is the resume position, and data is JSON. Sends heartbeat immediately on connection with the current position as id, then every 15 seconds. change follows write-transaction order, so record revisions may not be monotonic; see CloudRecordChangeEvent.occurredAt. reset closes the connection.
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"event": {
"type": "string",
"enum": [
"change"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 8192
},
"data": {
"$ref": "#/components/schemas/CloudRecordChangeEvent"
}
},
"required": [
"event",
"id",
"data"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"event": {
"type": "string",
"enum": [
"heartbeat"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 8192
},
"data": {
"type": "object",
"additionalProperties": false,
"properties": {
"at": {
"type": "integer",
"description": "Server time in Unix milliseconds."
}
},
"required": [
"at"
]
}
},
"required": [
"event",
"id",
"data"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"event": {
"type": "string",
"enum": [
"reset"
]
},
"data": {
"$ref": "#/components/schemas/CloudRecordSubscribeReset"
}
},
"required": [
"event",
"data"
]
}
],
"description": "SSE frame: event is the frame type, id is the resume position, and data is JSON. Sends heartbeat immediately on connection with the current position as id, then every 15 seconds. change follows write-transaction order, so record revisions may not be monotonic; see CloudRecordChangeEvent.occurredAt. reset closes the connection."
}The server closes the connection after reset. Read current data again, then subscribe without Last-Event-ID.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
reason | string | はい | CURSOR_EXPIRED: changes after the resume position passed 24-hour retention, the cursor cannot be decoded (for example after key rotation), or the tenant database moved instances. SCOPE_CHANGED: authorization scope changed, including readable collection changes when collectionIds was omitted or a collection becoming unreadable during resume. Both require rereading current data and subscribing again without a resume position. |
message | string | いいえ | OpenAPI に記載なし |
Include matching total from the same read-only snapshot as total:{count,capped}. Only for the first or an offset page; combining with continuation cursor returns INVALID_REQUEST.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
max | integer | いいえ | Total cap; if actual total exceeds max, total.count=max and total.capped=true. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | array<object> | はい | OpenAPI に記載なし |
pageInfo | object | はい | CloudPageInfo. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
description | string | はい | OpenAPI に記載なし |
createdAt | integer | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
redacted | boolean | はい | OpenAPI に記載なし |
protocol | string | はい | OpenAPI に記載なし |
runtimeState | string | はい | OpenAPI に記載なし |
health | string | はい | OpenAPI に記載なし |
platformReadiness | object | いいえ | CloudPlatformReadiness. スキーマの章で参照先のスキーマを確認してください。 |
reference | boolean | いいえ | OpenAPI に記載なし |
nativeProtocol | string | いいえ | OpenAPI に記載なし |
target | object | いいえ | StreamSourceTarget. スキーマの章で参照先のスキーマを確認してください。 |
configRevision | integer | いいえ | Opaque execution snapshot version; may advance on rename. Read the authoritative receipt, never infer it from revision. |
desiredState | string | いいえ | OpenAPI に記載なし |
sourceType | string | いいえ | OpenAPI に記載なし |
runtimeLocation | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | Positive decimal int64 identifier; always a string on the wire. |
revision | integer | はい | OpenAPI に記載なし |
document | object | はい | SourceDefinition. スキーマの章で参照先のスキーマを確認してください。 |
runtimeState | string | はい | OpenAPI に記載なし |
health | string | はい | OpenAPI に記載なし |
createdAt | integer | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
platformReadiness | object | いいえ | CloudPlatformReadiness. スキーマの章で参照先のスキーマを確認してください。 |
configRevision | integer | いいえ | Opaque execution snapshot version; may advance on rename. Read the authoritative receipt, never infer it from revision. |
desiredState | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | array<object> | はい | OpenAPI に記載なし |
window | object | はい | OpenAPI に記載なし |
coverage | string | はい | OpenAPI に記載なし |
checkedAt | integer (int64) | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
view | string | はい | OpenAPI に記載なし |
items | array<object> | はい | OpenAPI に記載なし |
coverage | string | はい | OpenAPI に記載なし |
checkedAt | integer (int64) | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
configRevision | integer | はい | Opaque execution snapshot version; may advance on rename. Read the authoritative receipt, never infer it from revision. |
reference | boolean | はい | OpenAPI に記載なし |
nativeProtocol | string | はい | OpenAPI に記載なし |
target | object | はい | StreamSourceTarget. スキーマの章で参照先のスキーマを確認してください。 |
runtimeState | string | はい | OpenAPI に記載なし |
health | string | はい | OpenAPI に記載なし |
desiredState | string | はい | OpenAPI に記載なし |
Safe source inventory; no document or configuration is returned. Never use this summary as an editor document.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
description | string | はい | OpenAPI に記載なし |
protocol | string | はい | OpenAPI に記載なし |
runtimeState | string | はい | OpenAPI に記載なし |
health | string | はい | OpenAPI に記載なし |
createdAt | integer | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
redacted | boolean | はい | OpenAPI に記載なし |
platformReadiness | object | いいえ | CloudPlatformReadiness. スキーマの章で参照先のスキーマを確認してください。 |
Shared Stream script and Source bindings; Cloud deployment additionally exposes model, entries and messages.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
name | string | はい | OpenAPI に記載なし |
description | string | いいえ | OpenAPI に記載なし |
model | string | いいえ | OpenAPI に記載なし |
script | object | はい | StreamScript. スキーマの章で参照先のスキーマを確認してください。 |
sources | array<object> | いいえ | OpenAPI に記載なし |
entries | array<object> | いいえ | OpenAPI に記載なし |
messages | array<object> | いいえ | OpenAPI に記載なし |
sourceBindings | array<object> | いいえ | OpenAPI に記載なし |
extensions | object | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
description | string | はい | OpenAPI に記載なし |
createdAt | integer | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
redacted | boolean | はい | OpenAPI に記載なし |
model | string | はい | OpenAPI に記載なし |
status | string | はい | OpenAPI に記載なし |
activeRelease | integer | はい | Cloud extension: release sequence, not the activeVersion identifier. |
platformReadiness | object | いいえ | CloudPlatformReadiness. スキーマの章で参照先のスキーマを確認してください。 |
activeVersion | string | いいえ | Authoritative active version identifier, or 0 when inactive. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | Positive decimal int64 identifier; always a string on the wire. |
revision | integer | はい | OpenAPI に記載なし |
document | object | はい | CloudStreamDocument. スキーマの章で参照先のスキーマを確認してください。 |
activeDocument | object | いいえ | CloudStreamDocument. スキーマの章で参照先のスキーマを確認してください。 |
status | string | はい | OpenAPI に記載なし |
activeRelease | integer | はい | Cloud extension: release sequence, not the activeVersion identifier. |
createdAt | integer | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
platformReadiness | object | いいえ | CloudPlatformReadiness. スキーマの章で参照先のスキーマを確認してください。 |
activeVersion | string | いいえ | Authoritative active version identifier, or 0 when inactive. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
kind | string | はい | OpenAPI に記載なし |
config | object | いいえ | OpenAPI に記載なし |
topic | string | いいえ | OpenAPI に記載なし |
request | object | いいえ | CloudStreamRequestDefinition. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
topic | string | はい | OpenAPI に記載なし |
access | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
topic | string | はい | OpenAPI に記載なし |
publish | boolean | はい | OpenAPI に記載なし |
subscribe | boolean | はい | OpenAPI に記載なし |
Cloud deployment inventory. model and activeRelease are the stored native values; activeVersion is the immutable release row ID. The redacted document is display-only and has no script, entries or Source bindings.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
model | string | はい | OpenAPI に記載なし |
status | string | はい | OpenAPI に記載なし |
activeRelease | integer | はい | OpenAPI に記載なし |
activeVersion | string | はい | OpenAPI に記載なし |
executionState | string | はい | OpenAPI に記載なし |
document | object | はい | OpenAPI に記載なし |
redacted | boolean | はい | OpenAPI に記載なし |
createdAt | integer | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
platformReadiness | object | いいえ | CloudPlatformReadiness. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
model | string | はい | OpenAPI に記載なし |
revision | integer | はい | Draft revision returned by this operation; pass it directly as the next expectedRevision. |
activeVersion | string | はい | Authoritative active version identifier, or 0 when inactive. |
activeRelease | integer | いいえ | Cloud extension: release sequence, not the activeVersion identifier. |
status | string | はい | OpenAPI に記載なし |
executionState | string | はい | OpenAPI に記載なし |
createdAt | integer | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
document | object | いいえ | OpenAPI に記載なし |
platformReadiness | object | いいえ | CloudPlatformReadiness. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
description | string | いいえ | OpenAPI に記載なし |
contractVersion | string | はい | OpenAPI に記載なし |
inputSchema | object | はい | OpenAPI に記載なし |
outputSchema | object | はい | OpenAPI に記載なし |
sideEffect | string | はい | OpenAPI に記載なし |
idempotency | string | はい | OpenAPI に記載なし |
timeoutMs | integer | はい | OpenAPI に記載なし |
status | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | OpenAPI に記載なし |
principalKind | string | はい | OpenAPI に記載なし |
principalID | string | はい | OpenAPI に記載なし |
status | string | はい | OpenAPI に記載なし |
bindingDigest | string | はい | OpenAPI に記載なし |
recipientEligible | integer | はい | OpenAPI に記載なし |
recipientActions | array<string> | はい | OpenAPI に記載なし |
registered | integer | はい | OpenAPI に記載なし |
active | integer | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
actions | array<string> | はい | OpenAPI に記載なし |
targets | array<object> | はい | OpenAPI に記載なし |
createdPrincipal | string | はい | OpenAPI に記載なし |
updatedPrincipal | string | はい | OpenAPI に記載なし |
createdTime | integer | はい | OpenAPI に記載なし |
updatedTime | integer | はい | OpenAPI に記載なし |
activationSupported | integer | はい | OpenAPI に記載なし |
snapshotToken | string | はい | Server-generated authorization snapshot version, for concurrency checking only, not an invocation credential. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | OpenAPI に記載なし |
principalKind | string | はい | OpenAPI に記載なし |
principalID | string | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
active | integer | はい | OpenAPI に記載なし |
snapshotToken | string | いいえ | New snapshot returned after a successful expectedSnapshotToken update; absent in legacy revision-field mode. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
digest | string | はい | OpenAPI に記載なし |
action | string | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
active | integer | はい | OpenAPI に記載なし |
current | integer | はい | OpenAPI に記載なし |
kind | string | はい | OpenAPI に記載なし |
reference | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
digest | string | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
Safe run diagnostics from a server allowlist; credentials, upstream response bodies, query parameters and arbitrary script exceptions are excluded. Older records or services may omit this field.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | Stable reason code; callers must tolerate new codes. |
stage | string | はい | Confirmed failure stage; unspecified failures use execution, and unconfirmed outcomes use unknown. |
message | string | はい | Fixed reason text selected from the server allowlist. |
repair | string | はい | Fixed repair guidance; it does not authorize automatically expanding permissions or replaying writes. |
sourceRequest | string | いいえ | Indicates only that the Source request causing this error was not dispatched; earlier external calls or writes in the same run may have completed. Omitted when unconfirmed or unrelated to a Source request. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
status | string | はい | OpenAPI に記載なし |
activeRelease | integer | はい | Cloud extension: release sequence, not the activeVersion identifier. |
createdAt | integer | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
activeVersion | string | いいえ | Authoritative active version identifier, or 0 when inactive. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
index | integer | はい | OpenAPI に記載なし |
id | string | いいえ | OpenAPI に記載なし |
error | object | はい | Fault. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
collectionId | string | はい | Collection ID identifying the owner of business records and samples. |
description | string | はい | OpenAPI に記載なし |
fields | array<object> | はい | OpenAPI に記載なし |
indexStatus | array<object> | はい | Read-only index status: name/spec/state/error. Only ready means the declared physical index is effective; pending/building/failed cannot support business-key upsert. Mounted collections enforce uniqueness at the source. |
indexes | array<object> | はい | Unified index declaration, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omission preserves indexes; [] removes them. Paths omit data.; unique indexes are record B-trees only. Builds are asynchronous; check readiness through indexStatus. |
metadataNotice | string | はい | OpenAPI に記載なし |
name | string | はい | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. |
recordGrain | string | いいえ | OpenAPI に記載なし |
recordSchema | object | はい | Schema. スキーマの章で参照先のスキーマを確認してください。 |
relationships | array<object> | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
sampleGrain | string | いいえ | OpenAPI に記載なし |
sampleSchema | object | いいえ | Schema. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardinality | string | はい | OpenAPI に記載なし |
description | string | いいえ | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
sourceField | string | はい | OpenAPI に記載なし |
targetCollectionId | string | はい | OpenAPI に記載なし |
targetField | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
fields | array<object> | いいえ | OpenAPI に記載なし |
recordGrain | string | いいえ | OpenAPI に記載なし |
relationships | array<object> | いいえ | OpenAPI に記載なし |
sampleGrain | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
aggregationNote | string | いいえ | OpenAPI に記載なし |
description | string | はい | OpenAPI に記載なし |
enum | array<object> | いいえ | OpenAPI に記載なし |
kind | string | はい | OpenAPI に記載なし |
path | string | はい | OpenAPI に記載なし |
required | boolean | はい | OpenAPI に記載なし |
type | string | はい | OpenAPI に記載なし |
unit | string | はい | OpenAPI に記載なし |
format | string | いいえ | Type representation annotation: int32 for integer, float (float32) or double (float64) for number, and date-time (datetime) for string. Adds no numeric range, precision or date-format validation, rounding, date parsing or time-zone conversion. Omission preserves base-type semantics. The outer sample time field is unchanged. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
collectionId | string | はい | Collection ID identifying the owner of business records and samples. |
description | string | はい | OpenAPI に記載なし |
hasSamples | boolean | いいえ | OpenAPI に記載なし |
name | string | はい | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. |
recordGrain | string | いいえ | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
sampleGrain | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
asOf | integer | いいえ | Cursor traversal cutoff in Unix milliseconds; not a retained database snapshot. |
complete | boolean | はい | True only when this response contains the entire query result; a final page alone is not complete. |
hasMore | boolean | はい | Continue with nextCursor in cursor mode, otherwise nextPage. |
list | array<object> | はい | OpenAPI に記載なし |
nextCursor | string | いいえ | OpenAPI に記載なし |
nextPage | integer | いいえ | OpenAPI に記載なし |
page | integer | はい | Page number, starting at 1. |
size | integer | はい | Page size; see this endpoint's maximum or the capability catalog. |
snapshotScope | string | はい | thisRequestOnly uses independent request snapshots; boundedLive limits cursor traversal by asOf but does not preserve row versions across requests. |
total | integer | はい | Matching row count; null when includeTotal=false. |
totalKnown | boolean | いいえ | OpenAPI に記載なし |
truncated | boolean | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
capabilities | object | はい | OpenAPI に記載なし |
contractVersion | string | はい | OpenAPI に記載なし |
limits | object | はい | OpenAPI に記載なし |
models | array<object> | はい | OpenAPI に記載なし |
operations | array<object> | はい | OpenAPI に記載なし |
relations | array<object> | いいえ | OpenAPI に記載なし |
schemas | object | はい | OpenAPI に記載なし |
version | string | いいえ | OpenAPI に記載なし |
cloudContractRevision | string | いいえ | OpenAPI に記載なし |
kinds | array<string> | いいえ | OpenAPI に記載なし |
modes | array<string> | いいえ | OpenAPI に記載なし |
jobStates | array<string> | いいえ | OpenAPI に記載なし |
actions | array<string> | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | CloudAppDataPolicy. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | いいえ | OpenAPI に記載なし |
replayed | boolean | はい | OpenAPI に記載なし |
results | array<object> | いいえ | OpenAPI に記載なし |
status | string | はい | Execution state of this operation. |
summary | object | いいえ | OutcomeSummary. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | DocCloudAppDataPolicyUpdateOutcome. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
opId | string | はい | Input identifier for correlating the original request. |
action | string | はい | OpenAPI に記載なし |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
status | string | はい | Execution state of this input item. |
kind | string | いいえ | OpenAPI に記載なし |
revision | integer | いいえ | OpenAPI に記載なし |
error | object | いいえ | DocItemFault. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | CloudAppStreamAccessPage. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | CloudAppStreamPolicy. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | いいえ | OpenAPI に記載なし |
replayed | boolean | はい | OpenAPI に記載なし |
results | array<object> | いいえ | OpenAPI に記載なし |
status | string | はい | Execution state of this operation. |
summary | object | いいえ | OutcomeSummary. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | DocCloudAppStreamPolicyUpdateOutcome. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
opId | string | はい | Input identifier for correlating the original request. |
action | string | はい | OpenAPI に記載なし |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
status | string | はい | Execution state of this input item. |
kind | string | いいえ | OpenAPI に記載なし |
revision | integer | いいえ | OpenAPI に記載なし |
error | object | いいえ | DocItemFault. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | いいえ | OpenAPI に記載なし |
error | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | Machine-readable error code, such as OVERLOADED or VERSION_CONFLICT. |
reason | string | はい | Developer-facing error reason. |
details | array<object> | はい | Structured location information; an empty array when absent. |
execution | string | はい | notStarted: rejected before the write path; rolledBack: executed then fully rolled back; committed: committed; unknown: commit status cannot be established. unknown occurs only on writes, never reads. notStarted/rolledBack establish no committed side effects. For non-atomic partialCommit operations, any committed chunk/item means committed, possibly partially. retry.safe=false and error-envelope data contains cumulative results. |
retry | object | はい | ErrorRetry. スキーマの章で参照先のスキーマを確認してください。 |
repair | string | いいえ | Suggested correction, such as narrowing query scope. |
opId | string | いいえ | Identifier of the failed input item. |
queryId | string | いいえ | Identifier of the failed query in a query batch. |
path | string | いいえ | Location of the invalid input, when available. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
attempts | integer | いいえ | OpenAPI に記載なし |
createdAt | integer | いいえ | OpenAPI に記載なし |
error | object | いいえ | OpenAPI に記載なし |
executionStatus | string | はい | OpenAPI に記載なし |
finishedAt | integer | いいえ | OpenAPI に記載なし |
jobId | string | はい | OpenAPI に記載なし |
outcome | string | はい | Data commit outcome independent of legacy status; failed does not imply rollback. |
progress | object | はい | OpenAPI に記載なし |
result | object | いいえ | Original submitted operation result, using that operation's result structure. |
startedAt | integer | いいえ | OpenAPI に記載なし |
status | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
queryId | string | はい | OpenAPI に記載なし |
list | array<object> | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
createdAt | integer | いいえ | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
deletedAt | integer | いいえ | OpenAPI に記載なし |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
kind | string | はい | OpenAPI に記載なし |
launch | object | いいえ | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
updatedAt | integer | いいえ | OpenAPI に記載なし |
relationship | object | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
list | array<object> | はい | OpenAPI に記載なし |
total | integer | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
hasMore | boolean | はい | OpenAPI に記載なし |
nextPage | integer | いいえ | OpenAPI に記載なし |
complete | boolean | はい | OpenAPI に記載なし |
truncated | boolean | はい | OpenAPI に記載なし |
snapshotScope | string | はい | OpenAPI に記載なし |
queryId | string | はい | OpenAPI に記載なし |
ancestors | array<object> | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
createdAt | integer | いいえ | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
deletedAt | integer | いいえ | OpenAPI に記載なし |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
kind | string | はい | OpenAPI に記載なし |
launch | object | いいえ | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
updatedAt | integer | いいえ | OpenAPI に記載なし |
relationship | object | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
action | string | はい | OpenAPI に記載なし |
bindingSources | array<string> | いいえ | OpenAPI に記載なし |
changedFields | array<string> | いいえ | OpenAPI に記載なし |
checksRevision | boolean | はい | OpenAPI に記載なし |
collectionId | string | いいえ | Collection ID identifying the owner of business records and samples. |
conditionCount | integer | はい | OpenAPI に記載なし |
conditionFields | array<string> | いいえ | OpenAPI に記載なし |
dependsOn | array<string> | いいえ | Prerequisite opIds; the server checks dependency cycles. |
opId | string | はい | Unique operation identifier within the transaction, used by dependencies and result references. |
targetId | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
executionGuaranteed | boolean | はい | OpenAPI に記載なし |
locksHeldAfterResponse | boolean | はい | OpenAPI に記載なし |
plan | array<object> | はい | OpenAPI に記載なし |
readCollections | array<string> | はい | OpenAPI に記載なし |
status | string | はい | OpenAPI に記載なし |
warnings | array<string> | はい | OpenAPI に記載なし |
writeCollections | array<string> | はい | OpenAPI に記載なし |
writesCommitted | boolean | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
queryId | string | はい | OpenAPI に記載なし |
targets | array<object> | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
createdAt | integer | いいえ | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
deletedAt | integer | いいえ | OpenAPI に記載なし |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
kind | string | はい | OpenAPI に記載なし |
launch | object | いいえ | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
updatedAt | integer | いいえ | OpenAPI に記載なし |
relationship | object | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
queryId | string | はい | OpenAPI に記載なし |
meta | object | はい | DocMetadataRow. スキーマの章で参照先のスキーマを確認してください。 |
fields | array<object> | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | DocCatalog. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | CollectionDescription. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | AppContext. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | DiscoveryResult. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | いいえ | With error.execution=committed, cumulative data includes results/errors/nextIndex/unknownUntil. Indices below nextIndex absent from errors committed; [nextIndex, unknownUntil) is uncertain. Retry with the same key if present. Without a key, only client-ID inserts and ID-based replacements/deletes can be reconciled by reading IDs; server-ID inserts, filter-selected operations and incremental updates such as $inc cannot be safely continued. Always use keys for these writes. Without unknownUntil, continuation from nextIndex is safe. null when nothing committed. |
error | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | MetadataPage. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | いいえ | OpenAPI に記載なし |
replayed | boolean | はい | OpenAPI に記載なし |
results | array<object> | いいえ | OpenAPI に記載なし |
status | string | はい | Execution state of this operation. |
summary | object | いいえ | OutcomeSummary. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | DocUnsV2MetadataPurgeOutcome. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
opId | string | はい | Input identifier for correlating the original request. |
action | string | はい | OpenAPI に記載なし |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
status | string | はい | Execution state of this input item. |
kind | string | いいえ | OpenAPI に記載なし |
revision | integer | いいえ | OpenAPI に記載なし |
error | object | いいえ | DocItemFault. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | CloudRecordAggregatePage. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | いいえ | With error.execution=committed, data contains cumulative partial results. Indices below nextIndex absent from writeErrors committed; [nextIndex, unknownUntil) is uncertain. Retry with the same key if present. Without a key, only client-ID inserts and ID-based replacements/deletes can be reconciled by reading IDs; server-ID inserts, filter-selected operations and incremental updates such as $inc cannot be safely continued. Always use keys for these writes. Without unknownUntil, continuation from nextIndex is safe. null when nothing committed. |
error | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | CloudCappedCount. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | いいえ | With error.execution=committed, contains cumulative results and resumable hasMore/resumeAfter; null when nothing committed. |
error | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | CloudRecordPage. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | CloudRecordGetResult. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | いいえ | OpenAPI に記載なし |
replayed | boolean | はい | OpenAPI に記載なし |
results | array<object> | いいえ | OpenAPI に記載なし |
status | string | はい | Execution state of this operation. |
summary | object | いいえ | OutcomeSummary. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | dryRun=false returns transaction results; dryRun=true returns a rolled-back preflight plan. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
opId | string | はい | Input identifier for correlating the original request. |
action | string | はい | OpenAPI に記載なし |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
status | string | はい | Execution state of this input item. |
collectionId | string | いいえ | Collection ID identifying the owner of business records and samples. |
revision | integer | いいえ | OpenAPI に記載なし |
sourceId | string | いいえ | OpenAPI に記載なし |
data | object | いいえ | Business payload for transaction result bindings; use document for the full resource object. |
document | object | いいえ | RecordDocument. スキーマの章で参照先のスキーマを確認してください。 |
query | object | いいえ | TransactionQueryResult. スキーマの章で参照先のスキーマを確認してください。 |
error | object | いいえ | DocItemFault. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | いいえ | With error.execution=committed, contains cumulative results and resumable hasMore/resumeAfter; null when nothing committed. |
error | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | CloudDataPage. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | いいえ | OpenAPI に記載なし |
replayed | boolean | はい | OpenAPI に記載なし |
results | array<object> | いいえ | OpenAPI に記載なし |
status | string | はい | Execution state of this operation. |
summary | object | いいえ | OutcomeSummary. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | DocUnsV2SampleAppendOutcome. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
opId | string | はい | Input identifier for correlating the original request. |
action | string | はい | OpenAPI に記載なし |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
status | string | はい | Execution state of this input item. |
collectionId | string | いいえ | Collection ID identifying the owner of business records and samples. |
error | object | いいえ | DocItemFault. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | CloudSamplePage. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | Fresh target Edge inventory. checkedAt is observation time; revision hashes device and binding state; complete=false includes per-kind discovery errors. devices contain deviceId, kind, label, address, canCreateSource, requiredParameters and existing sources. Serial discovery does not imply serial acquisition support. Empty devices only proves absence when complete=true. Never classify an arbitrary HID keyboard as a scanner without device identity supplied by the user. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | Native Edge Source result; inspect the target catalog for its exact versioned response. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | Bounded native result. Interpret fields using the selected resource output schema. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | CloudStreamRequestGrantInfo. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | CloudStreamRequestGrantMutation. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | integer | はい | OpenAPI に記載なし |
msg | string | はい | OpenAPI に記載なし |
requestId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
Whether an unchanged retry is safe. Retry read failures according to safe. Retry write failures only when safe=true, always reusing the original idempotency key.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
safe | boolean | はい | true permits retrying the same request unchanged, reusing the write's original key. With false, correct the request or restore authorization first. |
afterMs | integer | いいえ | Suggested minimum wait in milliseconds, only when safe=true; HTTP also supplies Retry-After in seconds. |
Wire-format error object. The envelope error, bulk item errors, queryBatch item errors and job errors share this structure.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | Machine-readable error code, such as OVERLOADED or VERSION_CONFLICT. |
reason | string | はい | Developer-facing error reason. |
details | array<object> | はい | Structured location information; an empty array when absent. |
execution | string | はい | notStarted: rejected before the write path; rolledBack: executed then fully rolled back; committed: committed; unknown: commit status cannot be established. unknown occurs only on writes, never reads. notStarted/rolledBack establish no committed side effects. For non-atomic partialCommit operations, any committed chunk/item means committed, possibly partially. retry.safe=false and error-envelope data contains cumulative results. |
retry | object | はい | ErrorRetry. スキーマの章で参照先のスキーマを確認してください。 |
repair | string | いいえ | Suggested correction, such as narrowing query scope. |
opId | string | いいえ | Identifier of the failed input in a transaction or bulk write. |
queryId | string | いいえ | Identifier of the failed query in a query batch. |
path | string | いいえ | Location of the invalid input, when available. |
objectKind | string | いいえ | OpenAPI に記載なし |
objectId | string | いいえ | OpenAPI に記載なし |
candidates | array<object> | いいえ | OpenAPI に記載なし |
conditionIndex | integer | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
collectionId | object | はい | UnsV2Identity. スキーマの章で参照先のスキーマを確認してください。 |
displayName | string | いいえ | OpenAPI に記載なし |
fieldPath | string | はい | OpenAPI に記載なし |
kind | string | はい | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
recordId | object | はい | UnsV2Identity. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
aggregationNote | string | はい | OpenAPI に記載なし |
kind | string | はい | OpenAPI に記載なし |
path | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
extensions | array<string> | はい | OpenAPI に記載なし |
format | string | はい | OpenAPI に記載なし |
id | string | はい | User-declared logical resource selection name within this Source, not a database Source ID or asset file ID. Reuse the same selection name for stable resource identity. |
path | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | User-declared logical resource selection name within this Source, not a database Source ID or asset file ID. Reuse the same selection name for stable resource identity. |
path | string | はい | OpenAPI に記載なし |
tables | array<string> | いいえ | Omit for a byte resource, or select QC2000 tables from a SQLite snapshot. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
caCertificate | string | いいえ | OpenAPI に記載なし |
directories | array<object> | いいえ | OpenAPI に記載なし |
resources | array<object> | いいえ | OpenAPI に記載なし |
sshHostKey | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
anonymous | boolean | いいえ | OpenAPI に記載なし |
authentication | string | いいえ | OpenAPI に記載なし |
caCertificate | string | いいえ | OpenAPI に記載なし |
headers | object | いいえ | OpenAPI に記載なし |
oauth | object | いいえ | OAuthConfig. スキーマの章で参照先のスキーマを確認してください。 |
parameters | object | いいえ | OpenAPI に記載なし |
port | integer | いいえ | OpenAPI に記載なし |
index declaration. Unique is supported only for Record B-tree indexes; GIN takes one path. Unique values retain JSON types, exclude soft-deleted Records, allow missing paths, and treat explicit JSON null as a value. Constraints become effective only when indexStatus.state=ready.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | いいえ | OpenAPI に記載なし |
path | string | いいえ | Bare business field path; _id and _meta.* cannot be declared as business indexes. |
paths | array<string> | いいえ | OpenAPI に記載なし |
target | string | いいえ | OpenAPI に記載なし |
unique | boolean | いいえ | OpenAPI に記載なし |
expireAfterSeconds | integer | いいえ | TTL index: records are physically deleted after this field's timestamp plus the specified seconds; deletion is irreversible. Only a single path, btree, records, non-unique index is allowed; the field must be declared integer in recordSchema and contain Unix milliseconds. At most one per collection. ensure can only add or increase TTL; shortening/removal requires schema:replace. Unsupported for source-written collections. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
error | string | いいえ | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
spec | object | はい | IndexSpec. スキーマの章で参照先のスキーマを確認してください。 |
state | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
filter | object | はい | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
expectedRevision | integer | いいえ | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | いいえ | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
filter | object | はい | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
expectedRevision | integer | いいえ | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
replacement | object | はい | OpenAPI に記載なし |
upsert | boolean | いいえ | Supported only for single updates/replacements; filter must explicitly match _id and inserted configuration must be complete and valid. Deleted objects with the same ID are not restored automatically. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
expectedRevision | integer | いいえ | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
index | integer | はい | OpenAPI に記載なし |
insertedId | string | いいえ | OpenAPI に記載なし |
matchedCount | integer | いいえ | OpenAPI に記載なし |
modifiedCount | integer | いいえ | OpenAPI に記載なし |
deletedCount | integer | いいえ | OpenAPI に記載なし |
restoredCount | integer | いいえ | OpenAPI に記載なし |
upsertedId | string | いいえ | OpenAPI に記載なし |
value | object | いいえ | MetadataNullableDocument. スキーマの章で参照先のスキーマを確認してください。 |
error | object | いいえ | Fault. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
filter | object | はい | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
expectedRevision | integer | いいえ | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
update | object | はい | Supports only $set/$unset/$setOnInsert. Configuration paths omit data.; system fields are read-only. Replace arrays as whole fields. |
upsert | boolean | いいえ | Supported only for single updates/replacements; filter must explicitly match _id and inserted configuration must be complete and valid. Deleted objects with the same ID are not restored automatically. |
Writable configuration; schemaVersion defaults to 1 on the server and unknown fields are rejected.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
description | string | いいえ | OpenAPI に記載なし |
indexes | array<object> | いいえ | Unified index declaration, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omission preserves indexes; [] removes them. Paths omit data.; unique indexes are record B-trees only. Builds are asynchronous; check readiness through indexStatus. |
name | string | はい | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. |
recordSchema | object | はい | Schema. スキーマの章で参照先のスキーマを確認してください。 |
sampleSchema | object | いいえ | Schema. スキーマの章で参照先のスキーマを確認してください。 |
schemaVersion | integer | いいえ | OpenAPI に記載なし |
semantics | object | いいえ | CollectionSemantics. スキーマの章で参照先のスキーマを確認してください。 |
parentId | object | いいえ | Containing directory ID. Omitted on create or null means root; omitted on update preserves placement. Moving does not change collection identity or data. |
Writable configuration; schemaVersion defaults to 1 on the server and unknown fields are rejected.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
description | string | いいえ | OpenAPI に記載なし |
name | string | はい | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. |
parentId | object | いいえ | OpenAPI に記載なし |
schemaVersion | integer | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | はい | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
id | string | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
createdAt | integer | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
deletedAt | integer | はい | OpenAPI に記載なし |
data | object | はい | Metadata response configuration; projection may return only selected fields. ownerAppId / appAlias describe server-managed Collection ownership and cannot be assigned or changed by ordinary writes. App grants determine access separately. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | いいえ | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
id | string | いいえ | OpenAPI に記載なし |
revision | integer | いいえ | OpenAPI に記載なし |
createdAt | integer | いいえ | OpenAPI に記載なし |
updatedAt | integer | いいえ | OpenAPI に記載なし |
deletedAt | integer | いいえ | OpenAPI に記載なし |
data | object | いいえ | Metadata response configuration; projection may return only selected fields. ownerAppId / appAlias describe server-managed Collection ownership and cannot be assigned or changed by ordinary writes. App grants determine access separately. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | array<object> | はい | OpenAPI に記載なし |
pageInfo | object | はい | CloudPageInfo. スキーマの章で参照先のスキーマを確認してください。 |
Writable configuration; schemaVersion defaults to 1 on the server and unknown fields are rejected.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
collectionId | object | いいえ | UnsV2Identity. スキーマの章で参照先のスキーマを確認してください。 |
description | string | いいえ | OpenAPI に記載なし |
fields | array<object> | いいえ | OpenAPI に記載なし |
name | string | はい | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. |
parentId | object | いいえ | OpenAPI に記載なし |
schemaVersion | integer | いいえ | OpenAPI に記載なし |
viewMode | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
opId | string | はい | OpenAPI に記載なし |
action | string | はい | OpenAPI に記載なし |
kind | string | はい | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
id | string | いいえ | OpenAPI に記載なし |
filter | object | いいえ | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
data | object | いいえ | OpenAPI に記載なし |
update | object | いいえ | Supports only $set/$unset/$setOnInsert. Configuration paths omit data.; system fields are read-only. Replace arrays as whole fields. |
replacement | object | いいえ | OpenAPI に記載なし |
expectedRevision | integer | いいえ | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
dependsOn | array<string> | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
opId | string | はい | OpenAPI に記載なし |
insertedId | string | いいえ | OpenAPI に記載なし |
matchedCount | integer | いいえ | OpenAPI に記載なし |
modifiedCount | integer | いいえ | OpenAPI に記載なし |
deletedCount | integer | いいえ | OpenAPI に記載なし |
restoredCount | integer | いいえ | OpenAPI に記載なし |
upsertedId | string | いいえ | OpenAPI に記載なし |
value | object | いいえ | MetadataNullableDocument. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
pollIntervalMs | integer | いいえ | OpenAPI に記載なし |
ranges | array<object> | いいえ | OpenAPI に記載なし |
unitId | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
address | integer | はい | OpenAPI に記載なし |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
quantity | integer | はい | OpenAPI に記載なし |
table | string | はい | OpenAPI に記載なし |
unitId | integer | いいえ | OpenAPI に記載なし |
writable | boolean | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
caCertificate | string | いいえ | OpenAPI に記載なし |
clientId | string | いいえ | OpenAPI に記載なし |
correlationField | string | いいえ | OpenAPI に記載なし |
packetEnvelope | boolean | いいえ | OpenAPI に記載なし |
qos | integer | いいえ | OpenAPI に記載なし |
replyTopic | string | いいえ | OpenAPI に記載なし |
replyTopicField | string | いいえ | OpenAPI に記載なし |
requestTopic | string | いいえ | OpenAPI に記載なし |
serverSubscribeTopics | array<string> | いいえ | OpenAPI に記載なし |
subscriptions | object | いいえ | OpenAPI に記載なし |
topicFilters | array<string> | いいえ | OpenAPI に記載なし |
devicePublishTopics | array<string> | いいえ | Managed server logical topic filters; availability and the combined topic budget are defined by the target protocol catalog. |
deviceSubscribeTopics | array<string> | いいえ | Managed server logical topic filters; availability and the combined topic budget are defined by the target protocol catalog. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
authorizationUrl | string | いいえ | OpenAPI に記載なし |
clientAuthentication | string | はい | OpenAPI に記載なし |
clientId | string | はい | OpenAPI に記載なし |
grantType | string | いいえ | OpenAPI に記載なし |
scopes | string | いいえ | OpenAPI に記載なし |
tokenUrl | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
nodeIds | array<string> | いいえ | OpenAPI に記載なし |
samplingIntervalMs | integer | いいえ | OpenAPI に記載なし |
securityMode | string | はい | OpenAPI に記載なし |
securityPolicy | string | はい | OpenAPI に記載なし |
serverCertificate | string | いいえ | OpenAPI に記載なし |
serverNodes | array<object> | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dataType | string | はい | OpenAPI に記載なし |
direction | string | はい | OpenAPI に記載なし |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
name | string | はい | OpenAPI に記載なし |
nodeClass | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
bufferLimit | integer | いいえ | OpenAPI に記載なし |
cellId | integer | はい | OpenAPI に記載なし |
channelId | integer | はい | OpenAPI に記載なし |
controllerName | string | はい | OpenAPI に記載なし |
historyEndId | integer | いいえ | OpenAPI に記載なし |
historyStartId | integer | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
failed | integer | はい | OpenAPI に記載なし |
notExecuted | integer | はい | OpenAPI に記載なし |
succeeded | integer | はい | OpenAPI に記載なし |
total | integer | はい | OpenAPI に記載なし |
unknown | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | いいえ | OpenAPI に記載なし |
cardId | string | いいえ | OpenAPI に記載なし |
kind | string | はい | OpenAPI に記載なし |
operationId | string | はい | OpenAPI に記載なし |
resultId | string | いいえ | OpenAPI に記載なし |
task | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dispatchState | string | はい | OpenAPI に記載なし |
errorCode | string | はい | OpenAPI に記載なし |
errorMessage | string | はい | OpenAPI に記載なし |
runId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
runId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
run | object | はい | PlatformAgentJobRunRecord. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
page | integer | はい | OpenAPI に記載なし |
sessionId | string | いいえ | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
list | array<object> | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
total | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | はい | OpenAPI に記載なし |
createdAt | integer | はい | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
sessionId | string | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | はい | OpenAPI に記載なし |
cardId | string | はい | OpenAPI に記載なし |
expectedCardSpec | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | はい | OpenAPI に記載なし |
cardId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | はい | OpenAPI に記載なし |
cardId | string | はい | OpenAPI に記載なし |
cardKey | string | はい | OpenAPI に記載なし |
cardSpec | object | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
list | array<object> | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
total | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | いいえ | OpenAPI に記載なし |
cardId | string | はい | OpenAPI に記載なし |
cardSpec | object | はい | OpenAPI に記載なし |
expectedCardSpec | object | はい | The full previously read card. Changes produce HTTP 409. |
ord | integer | いいえ | Canvas order: omit to leave unchanged (forwarded to unssvr as -1). Explicit values, including 0, are preserved. |
position | object | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardId | string | いいえ | OpenAPI に記載なし |
cronExpr | string | いいえ | OpenAPI に記載なし |
expiresAt | integer | いいえ | OpenAPI に記載なし |
intervalSeconds | integer | いいえ | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
notify | object | いいえ | OpenAPI に記載なし |
scheduleKind | string | はい | OpenAPI に記載なし |
sessionId | string | はい | OpenAPI に記載なし |
sourceBlockId | string | いいえ | OpenAPI に記載なし |
sourceId | string | いいえ | OpenAPI に記載なし |
sourceName | string | いいえ | OpenAPI に記載なし |
sourceType | string | はい | OpenAPI に記載なし |
task | object | はい | OpenAPI に記載なし |
type | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
job | object | はい | PlatformAgentJobRecord. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardId | string | いいえ | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
search | string | いいえ | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
sourceId | string | いいえ | OpenAPI に記載なし |
sourceType | string | いいえ | OpenAPI に記載なし |
status | string | いいえ | active / paused / needs_attention / expired |
type | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
list | array<object> | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
total | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
attentionReason | string | はい | OpenAPI に記載なし |
cardId | string | はい | OpenAPI に記載なし |
createdAt | integer | はい | OpenAPI に記載なし |
cronExpr | string | はい | OpenAPI に記載なし |
expiresAt | integer | はい | OpenAPI に記載なし |
intervalSeconds | integer | はい | OpenAPI に記載なし |
jobId | string | はい | OpenAPI に記載なし |
lastFiredAt | integer | はい | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
nextRunAt | integer | はい | OpenAPI に記載なし |
notify | object | いいえ | OpenAPI に記載なし |
orphanedAt | integer | はい | OpenAPI に記載なし |
scheduleKind | string | はい | OpenAPI に記載なし |
sessionId | string | はい | OpenAPI に記載なし |
sourceBlockId | string | はい | OpenAPI に記載なし |
sourceId | string | はい | OpenAPI に記載なし |
sourceName | string | はい | OpenAPI に記載なし |
sourceType | string | はい | OpenAPI に記載なし |
status | string | はい | OpenAPI に記載なし |
task | object | はい | OpenAPI に記載なし |
type | string | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | はい | OpenAPI に記載なし |
jobRunId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
run | object | はい | PlatformAgentJobRunRecord. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobId | string | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
status | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
list | array<object> | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
total | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dispatchState | string | はい | OpenAPI に記載なし |
errorCode | string | いいえ | OpenAPI に記載なし |
errorMessage | string | いいえ | OpenAPI に記載なし |
finishedAt | integer | いいえ | OpenAPI に記載なし |
firedAt | integer | はい | OpenAPI に記載なし |
jobId | string | はい | OpenAPI に記載なし |
jobRunId | string | はい | OpenAPI に記載なし |
resultId | string | いいえ | OpenAPI に記載なし |
resultSummary | object | いいえ | OpenAPI に記載なし |
severity | string | いいえ | OpenAPI に記載なし |
status | string | はい | OpenAPI に記載なし |
trigger | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dispatchState | string | はい | OpenAPI に記載なし |
jobId | string | はい | OpenAPI に記載なし |
jobRunId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardId | string | いいえ | OpenAPI に記載なし |
cronExpr | string | いいえ | OpenAPI に記載なし |
expiresAt | integer | いいえ | OpenAPI に記載なし |
intervalSeconds | integer | いいえ | OpenAPI に記載なし |
jobId | string | はい | OpenAPI に記載なし |
name | string | いいえ | OpenAPI に記載なし |
notify | object | いいえ | OpenAPI に記載なし |
notifyEnabled | integer | いいえ | Omit to preserve notification settings. 1 requires notify; 2 disables notifications and must omit notify. |
scheduleKind | string | いいえ | OpenAPI に記載なし |
sessionId | string | いいえ | OpenAPI に記載なし |
sourceBlockId | string | いいえ | OpenAPI に記載なし |
sourceId | string | いいえ | OpenAPI に記載なし |
sourceName | string | いいえ | OpenAPI に記載なし |
sourceType | string | いいえ | OpenAPI に記載なし |
task | object | いいえ | OpenAPI に記載なし |
type | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardKey | string | はい | OpenAPI に記載なし |
cardSpec | object | はい | OpenAPI に記載なし |
sourceSessionId | string | いいえ | OpenAPI に記載なし |
tags | array<string> | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
libraryItemId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
item | object | はい | PlatformAgentLibraryItem. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardKey | string | はい | OpenAPI に記載なし |
cardSpec | object | はい | OpenAPI に記載なし |
createdAt | integer | はい | OpenAPI に記載なし |
libraryItemId | string | はい | OpenAPI に記載なし |
sourceSessionId | string | はい | OpenAPI に記載なし |
tags | array<string> | はい | OpenAPI に記載なし |
updatedAt | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
page | integer | はい | OpenAPI に記載なし |
search | string | いいえ | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
tags | array<string> | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
list | array<object> | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
total | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
libraryItemId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardKey | string | はい | OpenAPI に記載なし |
cardSpec | object | はい | OpenAPI に記載なし |
sourceSessionId | string | はい | OpenAPI に記載なし |
tags | array<string> | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardSpec | object | はい | OpenAPI に記載なし |
expectedItem | object | はい | PlatformAgentLibrarySnapshot. スキーマの章で参照先のスキーマを確認してください。 |
libraryItemId | string | はい | OpenAPI に記載なし |
sourceSessionId | string | いいえ | OpenAPI に記載なし |
tags | array<string> | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardSpec | object | いいえ | OpenAPI に記載なし |
dataScope | object | いいえ | OpenAPI に記載なし |
images | array | いいえ | OpenAPI に記載なし |
missingData | object | はい | OpenAPI に記載なし |
operationId | string | はい | OpenAPI に記載なし |
resultSchemaVersion | integer | はい | OpenAPI に記載なし |
source | object | はい | PlatformAgentResultSource. スキーマの章で参照先のスキーマを確認してください。 |
steps | array | いいえ | OpenAPI に記載なし |
summary | string | いいえ | OpenAPI に記載なし |
tables | array | いいえ | OpenAPI に記載なし |
title | string | はい | OpenAPI に記載なし |
warnings | array<string> | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
jobRunId | string | はい | OpenAPI に記載なし |
resultId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
operationId | string | いいえ | Provide this or resultId, but not both. After a save timeout, retrieve by the original ID instead of saving again. |
resultId | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
result | object | はい | PlatformAgentStoredResult. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
page | integer | はい | OpenAPI に記載なし |
platformSessionId | string | いいえ | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
list | array<object> | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
total | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvasId | string | はい | OpenAPI に記載なし |
position | object | いいえ | OpenAPI に記載なし |
resultId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cardId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
agentId | string | はい | OpenAPI に記載なし |
platformRunId | string | いいえ | OpenAPI に記載なし |
platformSessionId | string | はい | OpenAPI に記載なし |
platformUserId | string | いいえ | OpenAPI に記載なし |
skillVersion | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
agentId | string | はい | OpenAPI に記載なし |
byteSize | integer | はい | OpenAPI に記載なし |
cardSpec | object | いいえ | OpenAPI に記載なし |
createdAt | integer | はい | OpenAPI に記載なし |
manifest | object | はい | OpenAPI に記載なし |
operationId | string | はい | OpenAPI に記載なし |
platformRunId | string | はい | OpenAPI に記載なし |
platformSessionId | string | はい | OpenAPI に記載なし |
resultId | string | はい | OpenAPI に記載なし |
skillVersion | string | はい | OpenAPI に記載なし |
sourceKind | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
email | string | いいえ | OpenAPI に記載なし |
grantedAt | integer | はい | Milliseconds |
roles | array<object> | はい | OpenAPI に記載なし |
userId | string | はい | OpenAPI に記載なし |
userName | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
roleId | string | はい | OpenAPI に記載なし |
roleKey | string | はい | OpenAPI に記載なし |
roleName | string | はい | OpenAPI に記載なし |
sources | array<object> | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appId | string | はい | OpenAPI に記載なし |
grantedAtEnd | integer | いいえ | Milliseconds; inclusive bounds with second precision. |
grantedAtStart | integer | いいえ | Milliseconds; inclusive bounds with second precision. |
page | integer | いいえ | OpenAPI に記載なし |
roleKeys | array<string> | いいえ | Match any value, case insensitive. |
scope | string | いいえ | draft: computed from draft roles; production or omitted: computed from the production version. |
size | integer | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
allActiveMembers | integer | はい | 1: all active members have access; 2: access is granted by role. |
appId | string | はい | OpenAPI に記載なし |
list | array<object> | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
productionVersionId | string | いいえ | OpenAPI に記載なし |
published | integer | はい | 1: published; 2: unpublished. |
roles | array<object> | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
total | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
description | string | いいえ | OpenAPI に記載なし |
memberCount | integer | はい | OpenAPI に記載なし |
roleId | string | はい | OpenAPI に記載なし |
roleKey | string | はい | OpenAPI に記載なし |
roleName | string | はい | OpenAPI に記載なし |
status | string | はい | active / retired |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
groupId | string | いいえ | OpenAPI に記載なし |
groupName | string | いいえ | OpenAPI に記載なし |
type | string | はい | direct / group |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
filePath | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
deleted | boolean | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
fileKey | string | はい | OpenAPI に記載なし |
uploadId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
aborted | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
fileKey | string | はい | OpenAPI に記載なし |
parts | array<object> | はい | OpenAPI に記載なし |
uploadId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
expiresAt | integer | いいえ | OpenAPI に記載なし |
filePath | string | はい | OpenAPI に記載なし |
fileUrl | string | いいえ | OpenAPI に記載なし |
sizeBytes | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appInstanceId | string | いいえ | OpenAPI に記載なし |
bizId | string | いいえ | OpenAPI に記載なし |
business | string | いいえ | OpenAPI に記載なし |
contentType | string | いいえ | OpenAPI に記載なし |
fileName | string | はい | OpenAPI に記載なし |
partSize | integer | いいえ | OpenAPI に記載なし |
sessionId | string | いいえ | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
useBy | string | いいえ | OpenAPI に記載なし |
visibility | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
expiresAt | integer | はい | OpenAPI に記載なし |
fileKey | string | はい | OpenAPI に記載なし |
filePath | string | はい | OpenAPI に記載なし |
partCount | integer | はい | OpenAPI に記載なし |
partSize | integer | はい | OpenAPI に記載なし |
uploadId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
etag | string | はい | OpenAPI に記載なし |
partNumber | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
expiresAt | integer | はい | OpenAPI に記載なし |
partNumber | integer | はい | OpenAPI に記載なし |
url | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
fileKey | string | はい | OpenAPI に記載なし |
partNumbers | array<integer> | はい | OpenAPI に記載なし |
uploadId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
partUrls | array<object> | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appInstanceId | string | いいえ | OpenAPI に記載なし |
business | string | いいえ | OpenAPI に記載なし |
contentType | string | いいえ | OpenAPI に記載なし |
fileName | string | はい | OpenAPI に記載なし |
sessionId | string | いいえ | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
useBy | string | いいえ | OpenAPI に記載なし |
visibility | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
expiresAt | integer | いいえ | OpenAPI に記載なし |
fileId | integer | いいえ | OpenAPI に記載なし |
filePath | string | はい | OpenAPI に記載なし |
fileUrl | string | いいえ | OpenAPI に記載なし |
postFields | object | はい | Send all signed fields before the file field. The policy constrains the object key and size. |
postUrl | string | はい | Signed POST URL for multipart/form-data upload. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
expiresAt | integer | いいえ | OpenAPI に記載なし |
fileUrl | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
business | string | いいえ | OpenAPI に記載なし |
contentType | string | いいえ | OpenAPI に記載なし |
fileName | string | はい | OpenAPI に記載なし |
isPublic | boolean | いいえ | OpenAPI に記載なし |
sha256 | string | いいえ | OpenAPI に記載なし |
size | integer | いいえ | OpenAPI に記載なし |
sizeBytes | integer | はい | OpenAPI に記載なし |
storageKey | string | いいえ | OpenAPI に記載なし |
useBy | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
filePath | string | はい | OpenAPI に記載なし |
fileUrl | string | いいえ | OpenAPI に記載なし |
postFields | object | はい | Send all signed fields before the file field. The policy constrains the object key and size. |
postUrl | string | はい | Signed POST URL for multipart/form-data upload. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
apiKeyName | string | はい | OpenAPI に記載なし |
email | string | はい | OpenAPI に記載なし |
keyPrefix | string | はい | OpenAPI に記載なし |
keyType | string | はい | OpenAPI に記載なし |
permissions | array<string> | はい | OpenAPI に記載なし |
roles | array<string> | はい | OpenAPI に記載なし |
userID | integer | はい | OpenAPI に記載なし |
userName | string | はい | OpenAPI に記載なし |
workspaceID | integer | はい | OpenAPI に記載なし |
workspaceName | string | はい | OpenAPI に記載なし |
OpenAPI 3.0 wire schema. Array contains/cardinality annotations and cross-field proof ordering require the shared JSON Schema plus SDK semantic checks; this projection alone is not full contract acceptance.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
product | object | はい | OpenAPI に記載なし |
productVersion | string | いいえ | OpenAPI に記載なし |
contractVersion | object | はい | OpenAPI に記載なし |
apiContractVersions | array<string> | はい | OpenAPI に記載なし |
sdkContractVersions | array<string> | はい | OpenAPI に記載なし |
capabilities | array<object> | はい | OpenAPI に記載なし |
deprecations | array<object> | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
errorCode | string | はい | INVALID_CREDENTIAL / CAPABILITY_INVALID_REQUEST / CAPABILITY_FORBIDDEN / CAPABILITY_UNAVAILABLE / CAPABILITY_INTERNAL_ERROR |
message | string | はい | A fixed public message; internal exceptions are not exposed. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
messageId | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
channels | array<object> | はい | OpenAPI に記載なし |
completedAt | string | いいえ | OpenAPI に記載なし |
createdAt | string | はい | OpenAPI に記載なし |
errorCode | string | いいえ | OpenAPI に記載なし |
message | string | いいえ | OpenAPI に記載なし |
messageId | string | はい | OpenAPI に記載なし |
recipientName | string | いいえ | Recipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now |
recipientUserId | string | はい | Recipient user ID of the request (a large integer carried as string), same as the recipientUserId given when sending |
status | string | はい | OpenAPI に記載なし |
type | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
capabilities | array<string> | はい | OpenAPI に記載なし |
mqttBroker | string | はい | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
version | string | はい | API version of the requested HTTP entry point |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
messageId | string | いいえ | Filter by message ID (a large integer carried as string, a positive integer); omitted or empty string means no filter |
page | integer | いいえ | Page number, 1-based; defaults to 1 when omitted, an explicit value must be >= 1 |
recipientUserId | string | いいえ | Filter by recipient user ID (a large integer carried as string, a positive integer); omitted or empty string means no filter |
size | integer | いいえ | Items per page; defaults to 20 when omitted, an explicit value must be between 1 and 100 |
status | string | いいえ | Filter by status: accepted / sent / failed; omitted or empty string means no filter, any other value is rejected with 400 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
list | array<object> | はい | OpenAPI に記載なし |
page | integer | はい | Page number actually used |
size | integer | はい | Items per page actually used |
total | integer | はい | Total number of records matching the filters |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
clientIDRandomSuffixEnabled | boolean | いいえ | OpenAPI に記載なし |
description | string | いいえ | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
clientID | string | はい | OpenAPI に記載なし |
clientIDRandomSuffixEnabled | boolean | はい | OpenAPI に記載なし |
id | integer | はい | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
password | string | はい | OpenAPI に記載なし |
username | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
success | boolean | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
channel | string | はい | OpenAPI に記載なし |
errorCode | string | いいえ | OpenAPI に記載なし |
message | string | いいえ | OpenAPI に記載なし |
platform | string | はい | OpenAPI に記載なし |
status | string | はい | One of sent / failed / no_device / not_configured / accepted / pending. accepted applies to inbox only (the in-app message is accepted and still being processed); pending means the channel was requested but its push is still being processed and has no final result yet. |
successCount | integer | はい | OpenAPI に記載なし |
targetCount | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
errorCode | string | はい | OpenAPI に記載なし |
message | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
channels | array<string> | はい | Requested terminal reminder channels, elements are web / mobile; an empty array for a silent message |
completedAt | string | いいえ | Completion time, RFC 3339 UTC; empty while the request is not completed |
createdAt | string | はい | Creation time, RFC 3339 UTC |
errorCode | string | いいえ | Only filled when status is failed |
keyId | string | はい | ID of the API key that sent the message (a large integer carried as string); the string 0 for records dispatched from the admin console |
message | string | いいえ | Only filled when status is failed |
messageId | string | はい | Message ID (a large integer carried as string) |
mode | string | はい | test / live |
recipientName | string | いいえ | Recipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now |
recipientUserId | string | はい | Recipient user ID (a large integer carried as string) |
senderId | string | いいえ | Machine identifier of the sender, self-reported, for display only |
senderName | string | いいえ | Display name of the sender, self-reported, for display only |
senderType | string | はい | app / other / system; self-reported by the sender, for display only |
status | string | はい | accepted / sent / failed |
title | string | はい | Notification title; the content is never returned by this endpoint |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | いいえ | For app, requires the appId (agent-platform UUID); optional for other and system. Pattern: [0-9a-zA-Z-]{1,128}. |
meta | object | いいえ | Type-specific metadata, at most 500 bytes when serialized. |
name | string | いいえ | Human-readable display name replacing the deprecated source field; at most 100 characters. |
type | string | いいえ | One of app, other or system; defaults to other. system is available only to internal platform senders (such as UNS Agent); app credentials cannot use system, and with sender.type=app the sender.id follows the app bound to the credential. Only type=app sent with an app-bound credential or a platform app credential is shown as an App; type=app self-declared by any other key is downgraded to other, and the API still returns success. Notifications are placed in the workspace System group. For the Agent in Builder (through Tier0 MCP): send a Builder-internal notification with type=app (sender.id is still required and is replaced by the App bound to the session); it appears only in that App's preview bell. Send a system notification with type=system and id=uns-agent; it goes to the regular message center. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
keyword | string | いいえ | OpenAPI に記載なし |
page | integer | いいえ | OpenAPI に記載なし |
roleKey | string | いいえ | OpenAPI に記載なし |
roles | array<string> | いいえ | OpenAPI に記載なし |
size | integer | いいえ | OpenAPI に記載なし |
statuses | array<string> | いいえ | OpenAPI に記載なし |
updatedAtEnd | string | いいえ | OpenAPI に記載なし |
updatedAtStart | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
email | string | いいえ | OpenAPI に記載なし |
nickName | string | いいえ | OpenAPI に記載なし |
roles | array<object> | はい | OpenAPI に記載なし |
status | string | はい | OpenAPI に記載なし |
updatedAt | string | はい | OpenAPI に記載なし |
userId | string | はい | OpenAPI に記載なし |
userName | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
description | string | いいえ | OpenAPI に記載なし |
roleId | string | はい | OpenAPI に記載なし |
roleKey | string | はい | OpenAPI に記載なし |
roleName | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
list | array<object> | はい | OpenAPI に記載なし |
page | integer | はい | OpenAPI に記載なし |
size | integer | はい | OpenAPI に記載なし |
total | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | OpenAPI に記載なし |
contractVersion | string | はい | OpenAPI に記載なし |
description | string | はい | OpenAPI に記載なし |
idempotency | string | はい | OpenAPI に記載なし |
inputSchema | object | はい | OpenAPI に記載なし |
name | string | はい | OpenAPI に記載なし |
outputSchema | object | はい | OpenAPI に記載なし |
sideEffect | string | はい | OpenAPI に記載なし |
status | string | はい | OpenAPI に記載なし |
timeoutMs | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
channels | array<string> | いいえ | OpenAPI に記載なし |
content | string | はい | Plain text only; a request containing HTML tags is rejected with 400. |
idempotencyKey | string | はい | OpenAPI に記載なし |
link | string | いいえ | OpenAPI に記載なし |
mode | string | いいえ | Deprecated (2026-11-04): test/live is decided by the platform from the API key and sender.type, and the value sent here is ignored (except for existing app credentials that do not distinguish preview from deployment, during the transition). test messages appear only in that App's Building preview bell; they do not enter the message center and are not pushed to devices. |
recipientUserId | string | はい | OpenAPI に記載なし |
sender | object | いいえ | PlatformNotificationSender. スキーマの章で参照先のスキーマを確認してください。 |
source | string | いいえ | Deprecated transitional alias for sender.name. sender.name takes precedence; this field will be removed. |
title | string | はい | Plain text only; a request containing HTML tags is rejected with 400. |
type | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
createdAt | string | はい | OpenAPI に記載なし |
messageId | string | はい | OpenAPI に記載なし |
recipientName | string | いいえ | Recipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now; never affects the send result |
recipientUserId | string | はい | Recipient user ID of the request (a large integer carried as string); on an idempotent hit it is the recipient of the existing request |
status | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
publishSubject | string | はい | OpenAPI に記載なし |
subscribeSubject | string | はい | OpenAPI に記載なし |
topic | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
appId | string | はい | OpenAPI に記載なし |
clientPublicKey | string | はい | OpenAPI に記載なし |
topics | array<object> | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
contractVersion | string | はい | OpenAPI に記載なし |
expiresAt | string | はい | OpenAPI に記載なし |
maxPayloadBytes | integer | はい | OpenAPI に記載なし |
permissions | array<object> | はい | OpenAPI に記載なし |
url | string | はい | OpenAPI に記載なし |
userJwt | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
publish | boolean | はい | OpenAPI に記載なし |
subscribe | boolean | はい | OpenAPI に記載なし |
topic | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
page | integer | いいえ | Defaults to 1. |
search | string | いいえ | OpenAPI に記載なし |
size | integer | いいえ | Defaults to 20. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
list | array<object> | はい | OpenAPI に記載なし |
total | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
idempotencyKey | string | いいえ | At most 128 decoded UTF-8 bytes. The frozen contract determines whether this field is required. |
input | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | OpenAPI に記載なし |
contractVersion | string | はい | The frozen contract version used for execution. |
replayed | boolean | はい | true indicates an idempotent replay; false indicates the first execution. |
result | object | はい | The JSON result defined by the contract; null is allowed. |
runID | string | はい | The execution identifier returned by the server, represented as an opaque string. |
status | string | はい | The final status returned by the server; never accepted, queued, pending or running. |
Ordinary business record. Business fields are in data; system attributes are siblings. filter/projection use bare business names and _id/_meta.*, not response-object paths. lock describes only active leases and does not return tokens.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
collectionId | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
revision | integer | はい | OpenAPI に記載なし |
createdAt | integer | はい | Unix milliseconds. |
updatedAt | integer | はい | Unix milliseconds. |
sourceId | string | はい | OpenAPI に記載なし |
sourceTime | integer | はい | Unix milliseconds. |
lock | object | いいえ | CloudRecordLockView. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
name | string | はい | OpenAPI に記載なし |
description | string | いいえ | OpenAPI に記載なし |
script | object | はい | StreamScript. スキーマの章で参照先のスキーマを確認してください。 |
sources | array<object> | いいえ | OpenAPI に記載なし |
sourceBindings | array<object> | いいえ | OpenAPI に記載なし |
extensions | object | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cdc | boolean | いいえ | OpenAPI に記載なし |
end | string | はい | OpenAPI に記載なし |
fields | array<string> | はい | OpenAPI に記載なし |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
object | string | はい | OpenAPI に記載なし |
queryAll | boolean | いいえ | OpenAPI に記載なし |
start | string | はい | OpenAPI に記載なし |
Ordinary sample object. Business fields are in data; time, quality, record identity and available provenance are siblings.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | はい | OpenAPI に記載なし |
collectionId | string | はい | OpenAPI に記載なし |
recordId | string | はい | OpenAPI に記載なし |
time | integer | はい | Sample timestamp supplied by the caller, in Unix milliseconds. |
receivedAt | integer | はい | Server-generated sample receipt time in Unix milliseconds. |
quality | string | はい | OpenAPI に記載なし |
data | object | はい | OpenAPI に記載なし |
sourceId | string | はい | OpenAPI に記載なし |
streamId | string | いいえ | OpenAPI に記載なし |
bindingId | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
additionalProperties | boolean | いいえ | OpenAPI に記載なし |
description | string | いいえ | OpenAPI に記載なし |
enum | array<object> | いいえ | OpenAPI に記載なし |
items | object | いいえ | Schema. スキーマの章で参照先のスキーマを確認してください。 |
maximum | number | いいえ | OpenAPI に記載なし |
minimum | number | いいえ | OpenAPI に記載なし |
properties | object | いいえ | OpenAPI に記載なし |
required | array<string> | いいえ | OpenAPI に記載なし |
title | string | いいえ | OpenAPI に記載なし |
type | string | はい | OpenAPI に記載なし |
unit | string | いいえ | OpenAPI に記載なし |
format | string | いいえ | Type representation annotation: int32 for integer, float (float32) or double (float64) for number, and date-time (datetime) for string. Adds no numeric range, precision or date-format validation, rounding, date parsing or time-zone conversion. Omission preserves base-type semantics. The outer sample time field is unchanged. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | はい | OpenAPI に記載なし |
username | string | いいえ | OpenAPI に記載なし |
secret | string | いいえ | OpenAPI に記載なし |
values | object | いいえ | OpenAPI に記載なし |
certificateFileId | string | いいえ | OpenAPI に記載なし |
privateKeyFileId | string | いいえ | OpenAPI に記載なし |
caFileId | string | いいえ | OpenAPI に記載なし |
Unified Source connection. Choose the matching protocol object; edge-sql uses one of sql.query (preset) or sql.queries (named). Query the target protocol catalog for installed execution, TLS and state capabilities.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
credentialRef | string | いいえ | Opaque existing credential reference returned for authorized editing and accepted on input. It contains no secret. Provision secrets only through create.credentials or credentials/update; secret material is never returned in the document. |
description | string | いいえ | OpenAPI に記載なし |
endpoint | string | はい | Protocol connection address or a discovered native device key. Never include credentials in the address. Managed server roles use the target-defined managed endpoint. |
extensions | object | いいえ | OpenAPI に記載なし |
file | object | いいえ | FileSourceOptions. スキーマの章で参照先のスキーマを確認してください。 |
http | object | いいえ | HTTPConnection. スキーマの章で参照先のスキーマを確認してください。 |
modbus | object | いいえ | ModbusOptions. スキーマの章で参照先のスキーマを確認してください。 |
mqtt | object | いいえ | MQTTOptions. スキーマの章で参照先のスキーマを確認してください。 |
name | string | いいえ | OpenAPI に記載なし |
opcua | object | いいえ | OPCUAOptions. スキーマの章で参照先のスキーマを確認してください。 |
openProtocol | object | いいえ | OpenProtocolOptions. スキーマの章で参照先のスキーマを確認してください。 |
protocol | string | はい | OpenAPI に記載なし |
role | string | いいえ | OpenAPI に記載なし |
runtimeLocation | string | いいえ | OpenAPI に記載なし |
sourceType | string | いいえ | OpenAPI に記載なし |
sql | object | いいえ | SQLConnection. スキーマの章で参照先のスキーマを確認してください。 |
Unified Source connection. Choose the matching protocol object; edge-sql uses one of sql.query (preset) or sql.queries (named). Query the target protocol catalog for installed execution, TLS and state capabilities.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
credentialRef | string | いいえ | Opaque existing credential reference returned for authorized editing and accepted on input. It contains no secret. Provision secrets only through create.credentials or credentials/update; secret material is never returned in the document. |
description | string | いいえ | OpenAPI に記載なし |
endpoint | string | いいえ | Protocol connection address or a discovered native device key. Never include credentials in the address. Managed server roles use the target-defined managed endpoint. |
extensions | object | いいえ | OpenAPI に記載なし |
file | object | いいえ | FileSourceOptions. スキーマの章で参照先のスキーマを確認してください。 |
http | object | いいえ | HTTPConnection. スキーマの章で参照先のスキーマを確認してください。 |
modbus | object | いいえ | ModbusOptions. スキーマの章で参照先のスキーマを確認してください。 |
mqtt | object | いいえ | MQTTOptions. スキーマの章で参照先のスキーマを確認してください。 |
name | string | いいえ | OpenAPI に記載なし |
opcua | object | いいえ | OPCUAOptions. スキーマの章で参照先のスキーマを確認してください。 |
openProtocol | object | いいえ | OpenProtocolOptions. スキーマの章で参照先のスキーマを確認してください。 |
protocol | string | いいえ | OpenAPI に記載なし |
role | string | いいえ | OpenAPI に記載なし |
runtimeLocation | string | いいえ | OpenAPI に記載なし |
sourceType | string | いいえ | OpenAPI に記載なし |
sql | object | いいえ | SQLConnection. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
caCertificate | string | いいえ | OpenAPI に記載なし |
query | string | いいえ | Preset approved business SELECT, supported on Cloud and Enterprise. Tool/WMS presets require PostgreSQL; quality-inspections requires SQL Server. Fixed reads support keyset scan; verify-full TLS is required. Query and queries are mutually exclusive. |
wms | object | いいえ | WMSMapping. スキーマの章で参照先のスキーマを確認してください。 |
queries | object | いいえ | Source-owned named queries on Cloud and Enterprise; never override SQL in Stream acquisition. PostgreSQL/MySQL use read-only transactions and bounded read. SQL Server has no public preview or live-query dryRun; explicitly authorized Stream execution is potentially writing and uses effect journaling. No named-query scan. limit 1..100; timeoutMs 100..10000. |
tlsMode | string | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
code | string | はい | OpenAPI に記載なし |
timeoutMs | integer | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
sourceId | string | いいえ | OpenAPI に記載なし |
configRevision | integer | いいえ | Opaque execution snapshot version. It may conservatively advance even for a rename. Use the authoritative receipt; never derive configRevision from revision. |
target | object | いいえ | StreamSourceTarget. スキーマの章で参照先のスキーマを確認してください。 |
acquisition | object | いいえ | Protocol acquisition only; cannot override connection or credentials. |
alias | string | はい | OpenAPI に記載なし |
resources | array<string> | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
sourceId | string | いいえ | OpenAPI に記載なし |
configRevision | integer | いいえ | Opaque execution snapshot version. It may conservatively advance even for a rename. Use the authoritative receipt; never derive configRevision from revision. |
target | object | いいえ | StreamSourceTarget. スキーマの章で参照先のスキーマを確認してください。 |
acquisition | object | いいえ | Protocol acquisition only; cannot override connection or credentials. |
alias | string | いいえ | OpenAPI に記載なし |
resources | array<string> | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
fleetNodeId | string | はい | OpenAPI に記載なし |
sourceId | string | はい | OpenAPI に記載なし |
configRevision | integer | はい | Opaque execution snapshot version. It may conservatively advance even for a rename. Use the authoritative receipt; never derive configRevision from revision. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
datasetUid | string | はい | OpenAPI に記載なし |
fileUid | string | はい | OpenAPI に記載なし |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
itemId | string | はい | OpenAPI に記載なし |
itemUid | string | はい | OpenAPI に記載なし |
queryUid | string | はい | OpenAPI に記載なし |
revisionUid | string | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
hasMore | boolean | はい | OpenAPI に記載なし |
records | array<object> | はい | OpenAPI に記載なし |
total | integer | はい | OpenAPI に記載なし |
Scalar elements use comparison operators; object elements use relative field conditions, optionally with nested logical composition. pull rejects $expr.
{
"type": "object",
"minProperties": 1,
"additionalProperties": true,
"description": "Scalar elements use comparison operators; object elements use relative field conditions, optionally with nested logical composition. pull rejects $expr."
}Unified predicates: business paths use field or customer.name; system paths use _id and _meta.revision/createdAt/updatedAt/sourceId/sourceTime/locked. Samples use _meta.recordId/time/receivedAt/quality/streamId/bindingId. Direct values equal $eq. Supports scalar comparisons, string $contains (ASCII case-insensitive substring), array $elemMatch/$all/$size, logical composition and restricted $expr. Dot-separated paths: escape literal dots as \. and backslashes as \\, escaping again in JSON. At most 512 bytes/10 segments; arrays use explicit indices, without implicit traversal. Field types are schema-validated; SQL and scripts are rejected. Record writes must match exactly one record by default. $eq:null matches null or missing; $ne:null matches present non-null fields; $ne:non-null also includes missing fields. $exists distinguishes presence from absence; explicit null counts as present.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
$and | array<object> | いいえ | OpenAPI に記載なし |
$or | array<object> | いいえ | OpenAPI に記載なし |
$nor | array<object> | いいえ | OpenAPI に記載なし |
$not | object | いいえ | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
$expr | object | いいえ | UnsV2PipelineExpression. スキーマの章で参照先のスキーマを確認してください。 |
Deduplicate by the field combination in by and output the alias fields. Uses ordinary offset pagination. Count unique values with $distinct followed by $count; there is no countDistinct stage.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
by | object | はい | UnsV2DistinctBy. スキーマの章で参照先のスキーマを確認してください。 |
Map output aliases to input field references. Aliases must be valid top-level field paths using the same escaping rules; empty names, $ prefixes, control characters and reserved prototype names are prohibited. An input row is discarded if any referenced field is missing; explicit null is preserved. Arrays compare as whole values; use $unwind first for element-level distinct values.
{
"type": "object",
"minProperties": 1,
"maxProperties": 16,
"additionalProperties": {
"type": "string",
"minLength": 2,
"maxLength": 513,
"pattern": "^\\$[^$].*$",
"description": "Declared field path with one $ prefix, such as $status; expressions and $$ variables are rejected."
},
"description": "Map output aliases to input field references. Aliases must be valid top-level field paths using the same escaping rules; empty names, $ prefixes, control characters and reserved prototype names are prohibited. An input row is discarded if any referenced field is missing; explicit null is preserved. Arrays compare as whole values; use $unwind first for element-level distinct values."
}| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
$eq | object | いいえ | UnsV2FilterScalar. スキーマの章で参照先のスキーマを確認してください。 |
$ne | object | いいえ | UnsV2FilterScalar. スキーマの章で参照先のスキーマを確認してください。 |
$gt | object | いいえ | UnsV2FilterScalar. スキーマの章で参照先のスキーマを確認してください。 |
$gte | object | いいえ | UnsV2FilterScalar. スキーマの章で参照先のスキーマを確認してください。 |
$lt | object | いいえ | UnsV2FilterScalar. スキーマの章で参照先のスキーマを確認してください。 |
$lte | object | いいえ | UnsV2FilterScalar. スキーマの章で参照先のスキーマを確認してください。 |
$in | array<object> | いいえ | OpenAPI に記載なし |
$nin | array<object> | いいえ | OpenAPI に記載なし |
$exists | boolean | いいえ | OpenAPI に記載なし |
$all | array<object> | いいえ | Each item matches by complete JSON-element equality. |
$size | integer | いいえ | OpenAPI に記載なし |
$elemMatch | object | いいえ | UnsV2ArrayElementFilter. スキーマの章で参照先のスキーマを確認してください。 |
$contains | string | いいえ | Substring matching for string fields only; ASCII letters are case-insensitive and other characters compare literally. Arrays and other types are errors. Wildcards and regex are unsupported. Cannot use indexes; large collections may time out. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
op | string | はい | OpenAPI に記載なし |
path | string | はい | Declared data.* path. Escape literal dot with \. and backslash with \\. Explicit array indexes are allowed; no implicit traversal or positional operators. Identity/revision fields cannot be modified. |
value | object | いいえ | Required except unset, directly or through an explicit result binding. append/addToSet: array of 1..200 elements; pull: nonempty scalar-operator or object-field predicate evaluated on each element. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
$eq | object | いいえ | UnsV2FilterScalar. スキーマの章で参照先のスキーマを確認してください。 |
$ne | object | いいえ | UnsV2FilterScalar. スキーマの章で参照先のスキーマを確認してください。 |
$gt | object | いいえ | UnsV2FilterScalar. スキーマの章で参照先のスキーマを確認してください。 |
$gte | object | いいえ | UnsV2FilterScalar. スキーマの章で参照先のスキーマを確認してください。 |
$lt | object | いいえ | UnsV2FilterScalar. スキーマの章で参照先のスキーマを確認してください。 |
$lte | object | いいえ | UnsV2FilterScalar. スキーマの章で参照先のスキーマを確認してください。 |
$in | array<object> | いいえ | OpenAPI に記載なし |
$nin | array<object> | いいえ | OpenAPI に記載なし |
$exists | boolean | いいえ | OpenAPI に記載なし |
$all | array<object> | いいえ | Each item matches by complete JSON-element equality. |
$size | integer | いいえ | OpenAPI に記載なし |
$elemMatch | object | いいえ | UnsV2ArrayElementFilter. スキーマの章で参照先のスキーマを確認してください。 |
$not | object | いいえ | UnsV2FieldComparisons. スキーマの章で参照先のスキーマを確認してください。 |
$contains | string | いいえ | Substring matching for string fields only; ASCII letters are case-insensitive and other characters compare literally. Arrays and other types are errors. Wildcards and regex are unsupported. Cannot use indexes; large collections may time out. |
{
"oneOf": [
{
"type": "string",
"nullable": true
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}Count frequencies by the fields in by, returning aliases and a fixed count field. Counts the current stage's input; results may be sorted or filtered further.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
by | object | はい | Uses distinct field-combination and missing/null rules; aliases cannot be count. |
{
"oneOf": [
{
"type": "string",
"maxLength": 128
},
{
"type": "object",
"required": [
"ref"
],
"additionalProperties": false,
"properties": {
"ref": {
"type": "string"
}
}
}
]
}| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
queryId | string | はい | Unique identifier within this query batch, used to correlate results. |
jobIds | array<string> | いいえ | OpenAPI に記載なし |
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"$sum": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$sum"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$avg": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$avg"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$min": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$min"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$max": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$max"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$count": {
"type": "object",
"maxProperties": 0
}
},
"required": [
"$count"
]
}
]
}$field path reference or scalar constant; $literal forces a constant. Arithmetic accepts numbers only. $divide returns null for zero denominators; $ifNull explicitly supplies a missing/null default. $expr must return boolean. $cond requires a boolean condition and compatible branch types. Conversion failures are errors; missing/null propagate. $trim input/chars are string expressions; omitting chars trims whitespace. $dateTrunc input/output use Unix milliseconds, timezone is IANA, and startOfWeek applies only to week. Expression depth is at most 8, with at most 512 nodes. Each intermediate $concat result is limited to 1 MiB of UTF-8, otherwise EXPRESSION_BUDGET_EXCEEDED. Arbitrary functions are unsupported.
{
"oneOf": [
{
"$ref": "#/components/schemas/UnsV2FilterScalar"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$ifNull": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$ifNull"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$add": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$add"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$subtract": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$subtract"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$multiply": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$multiply"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$divide": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$divide"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$literal": {
"$ref": "#/components/schemas/UnsV2FilterScalar"
}
},
"required": [
"$literal"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$eq": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$eq"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$ne": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$ne"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$gt": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$gt"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$gte": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$gte"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$lt": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$lt"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$lte": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$lte"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$and": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 1,
"maxItems": 64
}
},
"required": [
"$and"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$or": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 1,
"maxItems": 64
}
},
"required": [
"$or"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$not": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 1,
"maxItems": 1
}
},
"required": [
"$not"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$cond": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 3,
"maxItems": 3
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"if": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"then": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"else": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"if",
"then",
"else"
]
}
]
}
},
"required": [
"$cond"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$concat": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 1,
"maxItems": 64
}
},
"required": [
"$concat"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toLower": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toLower"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toUpper": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toUpper"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$strLenCP": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$strLenCP"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toString": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toString"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toDecimal": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toDecimal"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toLong": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toLong"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toBool": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toBool"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$trim": {
"type": "object",
"additionalProperties": false,
"properties": {
"input": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"chars": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"input"
]
}
},
"required": [
"$trim"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$convert": {
"type": "object",
"additionalProperties": false,
"properties": {
"input": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"to": {
"type": "string",
"enum": [
"string",
"decimal",
"long",
"bool"
]
}
},
"required": [
"input",
"to"
]
}
},
"required": [
"$convert"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$dateTrunc": {
"type": "object",
"additionalProperties": false,
"properties": {
"date": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"unit": {
"type": "string",
"enum": [
"millisecond",
"second",
"minute",
"hour",
"day",
"week",
"month",
"quarter",
"year"
]
},
"timezone": {
"type": "string",
"default": "UTC"
},
"binSize": {
"type": "integer",
"minimum": 1,
"maximum": 1000000,
"default": 1,
"description": "Above 1, only fixed UTC millisecond/second/minute/hour/day buckets aligned to the Unix epoch are supported. 1 supports calendar units and time zones."
},
"startOfWeek": {
"type": "string",
"enum": [
"sunday",
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday"
],
"default": "sunday"
}
},
"required": [
"date",
"unit"
]
}
},
"required": [
"$dateTrunc"
]
}
],
"description": "$field path reference or scalar constant; $literal forces a constant. Arithmetic accepts numbers only. $divide returns null for zero denominators; $ifNull explicitly supplies a missing/null default. $expr must return boolean. $cond requires a boolean condition and compatible branch types. Conversion failures are errors; missing/null propagate. $trim input/chars are string expressions; omitting chars trims whitespace. $dateTrunc input/output use Unix milliseconds, timezone is IANA, and startOfWeek applies only to week. Expression depth is at most 8, with at most 512 nodes. Each intermediate $concat result is limited to 1 MiB of UTF-8, otherwise EXPRESSION_BUDGET_EXCEEDED. Arbitrary functions are unsupported."
}| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
size | integer | いいえ | Page size; see this endpoint's maximum or the capability catalog. |
mode | string | いいえ | Pipelines containing only $match/$sort default to cursor (keyset); other pipelines default to offset and do not support cursor. |
page | integer | いいえ | Page number, starting at 1. |
cursor | string | いいえ | Signed keyset token containing complete sort values and unique identity, bound to query, collection, schema/revision and caller identity, valid for 7 days. Restart after identity, schema or signing-key changes. Does not freeze snapshots across requests. |
ordered sort pairs: [[field, 1|-1], ...]. Server appends _id as a stable tie breaker.
{
"type": "array",
"items": {
"type": "array",
"items": {
"oneOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "integer",
"enum": [
1,
-1
]
}
]
},
"minItems": 2,
"maxItems": 2
},
"minItems": 1,
"maxItems": 4,
"description": "ordered sort pairs: [[field, 1|-1], ...]. Server appends _id as a stable tie breaker."
}Exactly one operator per stage; stages execute in order. $lookup performs equality matching before its pipeline, producing an array; each target collection is authorized independently.
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"$match": {
"$ref": "#/components/schemas/UnsV2DataFilter"
}
},
"required": [
"$match"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$project": {
"type": "object",
"minProperties": 1,
"maxProperties": 64,
"additionalProperties": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"description": "Field inclusion/exclusion (1/0) or expressions. Supports nested output paths and $field references. Cannot mix inclusion and exclusion except for _id."
}
},
"required": [
"$project"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$set": {
"type": "object",
"minProperties": 1,
"maxProperties": 64,
"additionalProperties": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"description": "Add or replace computed fields, including nested paths, using only allowed expressions."
}
},
"required": [
"$set"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$sort": {
"$ref": "#/components/schemas/UnsV2PipelineSort"
}
},
"required": [
"$sort"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$group": {
"type": "object",
"required": [
"_id"
],
"properties": {
"_id": {
"anyOf": [
{
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
}
]
}
},
"additionalProperties": {
"$ref": "#/components/schemas/UnsV2PipelineAccumulator"
},
"description": "_id defines a scalar, null or object grouping key; other fields support $sum/$avg/$min/$max. Count with {$sum:1}."
}
},
"required": [
"$group"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$distinct": {
"$ref": "#/components/schemas/UnsV2Distinct"
}
},
"required": [
"$distinct"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$frequencies": {
"$ref": "#/components/schemas/UnsV2Frequencies"
}
},
"required": [
"$frequencies"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$lookup": {
"type": "object",
"additionalProperties": false,
"properties": {
"collectionId": {
"type": "string"
},
"recordId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"kind": {
"type": "string",
"enum": [
"records",
"samples"
],
"default": "records"
},
"localField": {
"type": "string"
},
"foreignField": {
"type": "string"
},
"as": {
"type": "string"
},
"pipeline": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineStage"
}
}
},
"required": [
"collectionId",
"localField",
"foreignField",
"as"
],
"oneOf": [
{
"properties": {
"kind": {
"enum": [
"samples"
]
}
},
"required": [
"kind",
"recordId"
]
},
{
"properties": {
"kind": {
"enum": [
"records"
]
}
},
"not": {
"required": [
"recordId"
]
}
}
],
"description": "kind=samples requires a fixed recordId and joins only within that record; records prohibits recordId. foreignField requires a ready B-tree index with that leading field, or an applicable built-in identity index. At most 1000 primary rows, 10000 raw joined rows per input, 8 MiB intermediate results and 200 final joined items per input. Overflow fails explicitly instead of truncating; a child pipeline may filter or aggregate."
}
},
"required": [
"$lookup"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$unwind": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
},
"preserveNullAndEmptyArrays": {
"type": "boolean"
}
},
"required": [
"path"
]
}
]
}
},
"required": [
"$unwind"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$skip": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
}
},
"required": [
"$skip"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$limit": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
}
},
"required": [
"$limit"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$count": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"description": "Valid top-level output field name following common path escaping and reserved-name rules. Output one count row; empty input returns 0. As the final stage, explicit page is prohibited. With later stages, paginate the final output normally."
}
},
"required": [
"$count"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$exists": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"description": "Valid top-level output field name following common path escaping and reserved-name rules. Output one boolean indicating whether the current stage has any input; empty input returns false. As the final stage, explicit page is prohibited. With later stages, paginate the final output normally."
}
},
"required": [
"$exists"
]
}
],
"description": "Exactly one operator per stage; stages execute in order. $lookup performs equality matching before its pipeline, producing an array; each target collection is authorized independently."
}| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
min | integer | いいえ | OpenAPI に記載なし |
max | integer | いいえ | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
update | object | いいえ | Update-operator document for record.update; mutually exclusive with operations. |
arrayFilters | array<object> | いいえ | OpenAPI に記載なし |
upsert | boolean | いいえ | When true, filter requires _id equality or equality covering every field of a ready unique index; otherwise UPSERT_REQUIRES_UNIQUE_INDEX. Insert when unmatched; unique conflicts return 409 DUPLICATE_KEY. |
opId | string | はい | Unique operation identifier within the transaction, used by dependencies and result references. |
action | string | はい | OpenAPI に記載なし |
id | object | いいえ | Record ID or a reference to an earlier create operation. Creation may omit it for automatic allocation. Existing-record operations may select by id, filter or target-result binding. record.query does not accept id. |
collectionId | object | はい | UnsV2Identity. スキーマの章で参照先のスキーマを確認してください。 |
expectedRevision | integer | いいえ | Optional revision check. For creation, reads, collection queries or exists=false checks, omit or use 0 only. |
data | object | いいえ | Business data for record.create/replace. |
dependsOn | array<string> | いいえ | Prerequisite opIds; the server checks dependency cycles. |
exists | boolean | いいえ | OpenAPI に記載なし |
filter | object | いいえ | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
selection | string | いいえ | Selection mode for record.read/update/modify/replace/delete. first requires filter and optionally sort. Defaults to exactOne; multiple matches are an error. |
sort | object | いいえ | Used only with selection=first; ID sorting is appended to stabilize ties. |
returnDocument | string | いいえ | before/after snapshot option for record.read/update/modify/replace/delete. Writes return no extra snapshot when omitted. |
operations | array<object> | いいえ | OpenAPI に記載なし |
bindings | array<object> | いいえ | Bind prior operation results to specified fields in this operation; no string templates or arbitrary code. |
query | object | いいえ | UnsV2TransactionQuery. スキーマの章で参照先のスキーマを確認してください。 |
lockToken | string | いいえ | OpenAPI に記載なし |
release | boolean | いいえ | OpenAPI に記載なし |
lockTokens | object | いいえ | OpenAPI に記載なし |
conditions | array<object> | いいえ | Conditions for record.check/update/modify; mutually exclusive with filter. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
field | string | はい | OpenAPI に記載なし |
op | string | はい | OpenAPI に記載なし |
value | object | はい | OpenAPI に記載なし |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
kind | string | はい | OpenAPI に記載なし |
id | string | はい | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
path | string | はい | data.field DTO paths, operations.N.value, or JSON Pointers beginning with filter/ such as filter/available/$gte and filter/_id/$eq. Filter pointers may replace only existing scalar/null placeholders, not predicate structure. id may bind a record identity from a query result in the same collection. |
ref | string | はい | OpenAPI に記載なし |
resultPath | string | はい | id/revision/collectionId/data.field; queries additionally expose query.total and query.records.N.id/revision/collectionId/data.field. Missing rows or fields fail the transaction. |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
filter | object | いいえ | UnsV2DataFilter. スキーマの章で参照先のスキーマを確認してください。 |
sort | array<array<object>> | いいえ | UnsV2PipelineSort. スキーマの章で参照先のスキーマを確認してください。 |
limit | integer | いいえ | Returned row limit; omitted or 0 means 20. Count assertions apply before this limit. |
expectCount | object | いいえ | UnsV2QueryCountExpectation. スキーマの章で参照先のスキーマを確認してください。 |
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
fields | array<string> | はい | OpenAPI に記載なし |
keyColumn | string | はい | OpenAPI に記載なし |
table | string | はい | OpenAPI に記載なし |
updatedAt | string | いいえ | OpenAPI に記載なし |