Tier0 Technical Guidance Manual

Get Started

Choosing the Best Product

Edge, Cloud, or Enterprise — positioning, plans, and a capability matrix for picking your Tier0 edition.

Check here for detailed features of each product and make the choice that fits you the best.

Get Started

Installation

Install Tier0 by edition.

Tier0 ships in three editions:

  • Cloud - Managed SaaS, no infrastructure required.
  • Enterprise - Private deployment for enterprise environments.
  • Edge - Open-source, runs locally with Docker.

See Choosing the Best Version to find the edition that best fits your requirements.

Apply for a trial account before exploring Tier0 Cloud.

  1. Register your account at Register Tier0.
  2. Use the verification code sent to your email to verify and then log in with the registered account.
  3. Create a workspace and start your trial.

Choosing the Best Version - Compare each version and select the one best fits you

Get Started

User Journey

The recommended way to get started with Tier0.

flowchart TD
  app["Build Your App"]
  namespace["Create Namespace"]
  external["Extend with External Data (Optional)"]
  use["Use Unified Data in Your App"]

  app --> namespace --> external --> use
  namespace -.->|"Skip optional step"| use

  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class use t0accent
Action Operator Edition Description
Build App You Cloud Talk to the Agent to create a custom application.
Create Namespace Agent Cloud Creates a Namespace and data models based on the App’s business logic.
Connect External Data (optional) You Cloud, Enterprise Provide information of existing business systems or devices for the agent to connect when necessary.
Integrate Data Agent Cloud, Enterprise Maps, transforms, and integrates external data into the existing model for the App.

Using Tier0

Preparing Data Foundation

Connect, model and intergrate external data into Tier0 for your applications.

Tier0 builds a data foundation for customized applications that:

  • Takes in business data from applications;
  • Connects external data sources from your existing systems and devices;
  • Integrates data into a unified model for your applications to use.

All data is modeled into Tables under Namespace and organized based on data types.

  • Relational data, mostly from business systems, is stored in Record tables.
  • Time-series data, mostly from devices, is stored in Sample tables.
flowchart TB
  namespace["Namespace"] --> table["Table"]
  table --> record["Record table<br/>relational data"]
  table --> sample["Sample table<br/>time-series data"]

  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class table t0accent
  • Business data can be from application usage or external systems.
  • Time-series data is mostly from connected devices.
flowchart LR
  app["App"] -->|"business data"| record["Record Table"]
  stream["Source & Stream"] -->|"device data"| sample["Sample Table"]

  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class record,sample t0accent
  • Source: Connects to external data servers, often with authentications.
  • Stream: Collects data from servers, processes it according to requirements and stores it in Namespace tables.
flowchart LR
  source["Source<br/>connects server"] --> stream["Stream<br/>collects + processes data from servers"]

  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class source,stream t0accent
  1. Build your application in Builder and have the business data models prepared in Namespace using agent.

  2. Connect needed data sources under Connect > Source with authentication.

  3. Tell the agent to create Stream to collect and process data from connected sources into Namespace models generated from the application.

Using Tier0

Using Apps Locally

Use Tier0 applications in a local Enterprise environment.

You can build industrial applications with the AI Agent in Tier0 Cloud, then export them to a local Enterprise environment for use.

  1. Build the application on Tier0 Cloud, with the input sources stated clear in the prompt.
  2. Prepare the data foundation, which match what stated in the prompt, on Enterprise.
  3. Export the application from Cloud, including necessary UNS data Tables generated from application operation.
  4. Import the application in App, and assign roles to users.
  5. Use the application in Launchpad.
Using Tier0

Manage Data from Center to Edge

Seamlessly manage data on connected edge nodes from a central node.

With Tier0 edge-center collaboration, you can collect data on edge devices, and manage it on the center platform.

  • Edge device: Tier0 Edge or Tier0 Enterprise on an edge node.
  • Center platform: Tier0 Enterprise on a center node or Tier0 Cloud.
  1. Create fleet nodes on the central node first.

  2. Use the token generated by the central node to connect each edge node.

  • Namespace Tables can be selected and synced only from edge nodes to the central node. Once synced, both history and real-time data of the selected Tables will be available on the central node.
  • From the central node, you can assign users or user groups to edge nodes for node management.
Using Tier0

Working with Factory Data

Operate on the UNS data over MQTT and the API — with the API reference.

Data in Tier0 unified namespace can be altered and managed through MQTT and APIs with authorization.

MQTT clients can connect to the UNS broker with credentials generated on Tier0.

Generate MQTT credentials in Connect > Source > MQTT Device and make a note of it.

  1. Install and open MQTTX.
  2. Add a connection with the information of the UNS broker and the generated credentials.
    Terminal window
    {
    "Host": "mqtt.tier0.dev",
    "Port": 1883,
    "Client ID": "<generated client ID>",
    "Username": "<generated username>",
    "Password": "<generated password>"
    }
  1. Make sure the client status is normal.
  2. Copy a UNS model topic and publish a message to it through the client.
  • Base URL: https://<your-tier0-host>/openapi/v2
  • Authentication: Send the API key obtained from Tier0 in the x-api-key header.
  • POST /uns/metadata:find — List tables and get the table ID

    Terminal window
    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);
  • POST /uns/collections/{collectionId}/records:find — List records and get the record ID

    Terminal window
    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);
  • POST /uns/collections/{collectionId}/samples:latest — Get the latest sample for a record

    Terminal window
    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);
  • POST /uns/collections/{collectionId}/samples:find — Get samples in a time range

    Terminal window
    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);
Using Tier0

Operating on Tier0 with Agents

Connect an AI agent to Tier0 through MCP.

Connect your AI agent to Tier0 through MCP. The agent can find and use platform APIs within the permissions you grant.

Work on Tier0 with your preferred AI agent.
Claude Code
Codex
Gemini CLI
Cursor
GitHub Copilot
WorkBuddy
  1. Add an MCP server in Settings > Plugin > MCP using the URL from Tier0.
  2. Add a personal API key in Tier0 under Settings > API Keys > Personal Keys with the required permission level.
  3. Enter the personal API key in the MCP server you added in Codex.
    Terminal window
    {
    "Authorization": "Bearer <your-personal-api-key>"
    }
  4. Ask the agent to use whoami to check the connection.
  • MCP tools:

    Tool Use
    whoami Check your identity and permissions.
    docs Read API documentation.
    search Find an API operation.
    execute Call an API operation.
  • Usage

    1. Ask your agent to use docs and search to find the API operation you want to call.
    2. Use execute to call the API operation.

For example:

Terminal window
Read the current value of `Plant/Line1/Metric/Temperature` in my workspace.

Working with Factory Data — Learn how Tier0 organizes and serves factory data.

Best Practice

User Management

Manage platform access and user permissions in Tier0.

Use the edition tab to find the applicable user management steps.

  • Workspace owner or existing members can invite new members by phone or email.

  • After receiving an invitation code or link, new members register an account and join the Workspace.

  • Set each new member’s seat type (Operator or Builder) when sending the invitation to determine which features they can access.

    • Builder: Can use Workspace functions except those reserved for the owner.
    • Operator: Can use applications they have access to in Launchpad.
  • Account registration requires two-step verification.

Action Who Description
Change seat type Owner / Builder
  • The owner can change any member’s seat type.
  • A Builder can change only an Operator’s seat type.
Delete Workspace Owner Deleting the Workspace immediately erases all data. This cannot be undone.
Transfer Workspace Owner —
Remove member Owner / Builder
  • The owner can remove any member.
  • A Builder can remove only an Operator.
Delete account All members
  • The owner must delete or transfer their Workspace first.
  • The member’s account immediately leaves all Workspaces.
  • Account data is erased immediately and cannot be recovered.
Best Practice

Connecting Data Sources

Tier0 supports connecting to various industrial protocols, including OPC UA, Modbus, MQTT and more.

  • Security configuration is automatically obtained from the server once you enter the server address.
  • Authentication is supported through username/password or certificate.
Terminal window
{
"name": "ua",
"description": "",
"protocol": "opcua",
"endpoint": "opc.tcp://220.184.175.73:4841/demo/",
"runtimeLocation": "local",
"opcua": {
"securityMode": "None",
"securityPolicy": "None"
}
}

Only server address and unit ID are required.

Terminal window
{
"name": "modbus",
"description": "",
"protocol": "modbus-tcp",
"endpoint": "tcp://220.184.175.73:1502",
"runtimeLocation": "local",
"modbus": {
"unitId": 1
}
}

Tier0 can be used as an MQTT broker to receive data from devices, or as a client to connect to an external MQTT broker.

  • As a broker:

    1. Generates connection credentials including client ID, username and password when connecting MQTT Device.
    2. Third-party client must use the publish topic displayed on the connection panel to publish messages.
    3. Use the agent to build a stream, with the publish topic as input, to send data to the secified Namespace.
  • As a client: Connect third-party broker.

    Terminal window
    {
    "name": "111",
    "description": "",
    "protocol": "mqtt",
    "endpoint": "mqtt://220.184.175.73:1883",
    "runtimeLocation": "local",
    "mqtt": {
    "clientId": "tier0UxxxxxxxxuwQVfi"
    }
    }

Tier0 can be used as an HTTP server for third-party to access, or as a client to call API from other HTTP server.

  • As a server:

    1. Add an HTTP server in Tier0, and get the full address from the information panel.
    2. Use the agent to build a stream that defines data and subsequent routing, together forming an API.
    3. Third-party uses the address and the set routing to call the API and get the data.
  • As a client: Connect third-party HTTP servers.

Terminal window
{
"name": "222",
"description": "",
"protocol": "http-api",
"endpoint": "http://220.184.175.73:8088/api/telemetry",
"runtimeLocation": "local",
"role": "client",
"http": {
"authentication": "none"
}
}
  • Database address must include both port and database name.
  • An initial query command is necessary.
  • When the database is available for anonymous connection, authentication can be skipped.
Terminal window
{
"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"
}
  1. Connect to Tier0 Github through OAuth.
  2. Discover resources in this organization on the source information panel.
  3. Ask the agent to build a stream to get needed data.
  1. Ask the agent to build streams to get data from the connected sources.
  2. Necessary information, such as Modbus registers, database queries, UA namespace URIs, MQTT topics are required in the prompt.
Best Practice

Security and Resilience

Overview of identity, data access, deployment availability, and recovery controls in Tier0.

Tier0 ensures data security through the following aspects:

  • Security: Controls who can access the platform, applications, and data.
  • Resilience: Covers service continuity and data recovery after failures.
Edition Security Coverage
Cloud Platform access control and authenticated access to MQTT and APIs.
Enterprise Platform and data access control, plus deployment availability, backup, and recovery for private deployments.
Edge (open source) Local data connection and modeling. Its built-in MQTT broker allows unauthenticated subscriptions.

See Choosing the Best Product for edition positioning.

Area Tier0 Mechanism Details
Platform access
  • Cloud controls access through workspace membership.
  • Enterprise controls access through user accounts.
User Management
Agent access Agents connect through MCP and operate the platform within the permissions granted to them. Connect an agent
Application access Tier0 uses RBAC to control access to applications. Access control
Access Tier0 Mechanism Details
MQTT
  • Clients authenticate with credentials generated by Tier0.
  • TLS and secure WebSocket encrypt data in transit.
MQTT credentials and connections
REST API Accessing data requires a key generated by Tier0. API Reference

Enterprise currently provides two deployment plans for center nodes:

Plan Availability Boundary Details
Standard deployment
  • Provides database primary/standby failover.
  • The Enterprise application and EMQX remain single points of failure.
Standard Deployment Plan
High availability deployment
  • Adds active/standby Enterprise nodes and defined failover behavior for the database, cache, object storage, and managed runtime files.
  • Does not promise zero interruption or zero data loss.
High Availability Deployment Plan

Enterprise provides database backup and recovery. After recovery, check deployment status, run basic functionality checks, and confirm that users can sign in to the platform.

Reference

API Reference

Connect to the Tier0 API, check responses, and retry writes safely.

  • Base URL: https://<your-tier0-host>/openapi/v2
  • Authentication: Send your Tier0 API key in the x-api-key request header.
  • Keep API keys on a trusted server; do not put them in a URL, browser bundle, or log.

Cloud OpenAPI endpoints lists paths, parameters, limits, and response schemas.

  • For /uns/ requests, check both the HTTP status and the response body. A successful response has a 2xx status and code: 0. Read the result from data.
  • On failure, inspect error.code for the reason and keep requestId for troubleshooting.
  • For batch requests, check each item even when the HTTP status is 200. Some items may have failed.
  • Check error.execution to see whether the write was started, rolled back, committed, or has an unknown outcome.
  • If error.retry.safe is true, retry the same request with the same idempotency key. If one was supplied, wait at least as long as indicated by error.retry.afterMs or the Retry-After header.
  • If part of a batch was committed, check which items succeeded before submitting any remaining work. If the outcome is unknown and the response does not confirm a safe retry, verify whether the write took effect before sending it again.
Reference

Standard Deployment Plan

Reference four-VM standard deployment plan for Tier0 Enterprise.

The simplified edition does not use Docker Swarm. It deploys one enterprise application node with a total of 4 virtual machines:

  • 1 enterprise node hosts tier0-enterprise + EMQX.
  • 2 database nodes form a PostgreSQL + TimescaleDB primary/standby cluster.
  • 1 Witness node participates in database supervision, quorum, and failover.

The simplified edition reduces deployment complexity. The tradeoff is that the application layer and EMQX are single points of failure. Only the database layer keeps DB VIP + Witness high availability.

The following IP addresses are placeholders. Replace them with the real site network before implementation.

Type Name Planned IP Description
Application node ent-enterprise-01 10.60.10.11 Single enterprise node hosting tier0-enterprise + EMQX
Logical entry DB VIP 10.60.20.10 Unified database endpoint, points only to the current primary
Database node ent-db-01 10.60.20.11 PostgreSQL + TimescaleDB primary candidate
Database node ent-db-02 10.60.20.12 PostgreSQL + TimescaleDB standby candidate
Quorum node ent-db-witness-01 10.60.20.13 repmgr witness / database quorum supervisor
flowchart TB
    clients["Clients / Site Systems"] -->|"HTTPS / MQTT<br/>443 / 1883 / 8883"| app["ent-enterprise-01<br/>10.60.10.11<br/>tier0-enterprise + EMQX"]
    app -->|"PostgreSQL 5432"| vip["DB VIP<br/>10.60.20.10:5432"]
    vip -->|"Current primary"| db1["ent-db-01<br/>10.60.20.11<br/>Primary candidate"]
    vip -.->|"After failover"| db2["ent-db-02<br/>10.60.20.12<br/>Standby candidate"]
    db1 -.->|"WAL replication"| db2
    db1 -.->|"Quorum / health"| witness["Witness<br/>10.60.20.13"]
    db2 -.->|"Quorum / promotion"| witness
    classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
    class vip t0accent

Core paths:

  • Business path: clients / site systems -> ent-enterprise-01 -> DB VIP -> current primary DB.
  • tier0-enterprise and EMQX both run on ent-enterprise-01.
  • Database access still goes through DB VIP; direct application access to ent-db-01/02 is prohibited.
  • Witness participates only in database quorum, promotion, and health checks. It is not on the business path.
Phase Path Description
Normal access ent-enterprise-01 -> DB VIP -> current primary Application always connects to 10.60.20.10:5432
Normal replication current primary -> current standby PostgreSQL WAL streaming replication
Normal supervision DB-01/DB-02 -> Witness repmgrd reports status; Witness participates in quorum
Primary failure standby -> Witness Standby requests quorum confirmation to avoid split-brain
Standby promotion standby promote Standby is promoted after Witness confirmation
VIP floating DB VIP -> new primary 10.60.20.10 binds to the new primary
Application recovery ent-enterprise-01 -> DB VIP -> new primary Application recovers after connection-pool reconnect
Node Role vCPU Memory Storage System disk recommendation Data disk recommendation Main components
ent-enterprise-01 Single enterprise node 8 32G 100G Single / system disk, 100G No separate data disk tier0-enterprise, EMQX, optional Nginx/HAProxy
ent-db-01 PostgreSQL/TSDB primary candidate 4 8G 500G / 80G /pgdata 360G, /pgwal 40G, /backup-staging 20G PostgreSQL, TimescaleDB, repmgr, keepalived
ent-db-02 PostgreSQL/TSDB standby candidate 4 8G 500G / 80G /pgdata 360G, /pgwal 40G, /backup-staging 20G PostgreSQL, TimescaleDB, repmgr, keepalived
ent-db-witness-01 Witness / quorum supervisor 2 4G 40G / 40G Not planned separately repmgr witness, monitoring agent, audit logs
Category Count Per-node spec vCPU subtotal Memory subtotal Storage subtotal
enterprise application node 1 8C / 32G / 100G 8C 32G 100G
PostgreSQL + TimescaleDB nodes 2 4C / 8G / 500G 8C 16G 1000G
Witness node 1 2C / 4G / 40G 2C 4G 40G
Total 4 - 18C 52G 1140G

Converted total:

  • Total VMs: 4
  • Total vCPU: 18
  • Total memory: 52G
  • Total storage: 1.14T
Target Method Port Description
All VMs ssh -i ~/.ssh/chen-rsa ops@<IP> 22/TCP Use after unified key-based SSH is implemented; use site account before that
ent-enterprise-01 https://10.60.10.11 443/TCP Business entry
DB VIP psql -h 10.60.20.10 -p 5432 5432/TCP Allow only enterprise node and operations whitelist
Source Target Port Purpose
Users / site systems ent-enterprise-01 80/TCP HTTP entry or HTTPS redirect, optional
Users / site systems ent-enterprise-01 443/TCP HTTPS business entry
Devices / site systems ent-enterprise-01 1883/TCP EMQX MQTT plaintext, optional
Devices / site systems ent-enterprise-01 8883/TCP EMQX MQTT TLS, recommended
Devices / site systems ent-enterprise-01 8083/TCP MQTT WebSocket, optional
Devices / site systems ent-enterprise-01 8084/TCP MQTT WebSocket TLS, optional
Operations network ent-enterprise-01 18083/TCP EMQX Dashboard, operations whitelist only
ent-enterprise-01 DB VIP 5432/TCP PostgreSQL business access
Source Target Port Purpose
ent-db-01 ent-db-02 5432/TCP PostgreSQL WAL streaming replication
ent-db-02 ent-db-01 5432/TCP Reverse replication after recovery
ent-db-01/02 ent-db-witness-01 5432/TCP repmgr metadata / witness communication
ent-db-01 ent-db-02 VRRP DB VIP floating; allow protocol 112
  • Do not deploy Docker Swarm.
  • Deploy tier0-enterprise and EMQX on the same ent-enterprise-01 node.
  • ent-enterprise-01 is an application-layer single point of failure. If it fails, recover manually or rebuild from backup.
  • The node has only one 100G system disk and is not suitable for long-term business data.
  • tier0-enterprise business data must be stored in PostgreSQL/TimescaleDB.
  • Uploads, imports/exports, and reports may be stored locally and backed up. If later upgraded to the standard edition, migrate these files to NFS/NAS or object storage.
  • EMQX is a single-node stateful service in the simplified edition.
  • Pin its data directory on ent-enterprise-01, for example /data/emqx.
  • Back up configuration, certificates, plugins, and rule-engine configuration.
  • No message-layer HA is provided. Use the standard edition with a three-node EMQX cluster if this is unacceptable.
  • PostgreSQL: 16 or the site-certified version.
  • TimescaleDB: stable version compatible with the selected PostgreSQL major version.
  • Replication: physical streaming replication.
  • Failover: repmgrd + witness.
  • Database entry: DB VIP.
  • Connection pool: PgBouncer can run on ent-enterprise-01 to reduce database connection pressure.
  • Witness stores only repmgr witness metadata and supervision logic.
  • Witness does not host business SQL.
  • Witness failure does not stop the current primary, but reduces trusted automatic failover capability.
Port / protocol Allowed scope Purpose
22/TCP Operations network to 4 VMs SSH
80/TCP User network to ent-enterprise-01 HTTP redirect or internal plaintext entry
443/TCP User network to ent-enterprise-01 HTTPS business entry
1883/TCP Devices / site systems to ent-enterprise-01 EMQX MQTT plaintext, optional
8883/TCP Devices / site systems to ent-enterprise-01 EMQX MQTT TLS, recommended
8083/TCP Devices / site systems to ent-enterprise-01 EMQX WebSocket, optional
8084/TCP Devices / site systems to ent-enterprise-01 EMQX WebSocket TLS, optional
18083/TCP Operations network to ent-enterprise-01 EMQX Dashboard, whitelist only
5432/TCP enterprise to DB VIP; DB/Witness internal PostgreSQL / repmgr
112/VRRP Between DB nodes DB VIP floating
9100/TCP Monitoring system to 4 VMs node exporter, optional
Failure scenario Expected behavior Business impact
ent-enterprise-01 fails Application and EMQX both stop; manual recovery or rebuild from backup is required Full application-layer outage
Current DB primary fails Standby is promoted after Witness quorum; DB VIP floats Write interruption for seconds to minutes; application must reconnect
DB standby fails Primary continues serving, replication alert is raised No direct business outage, but DB hot standby is lost
Witness fails Current primary continues serving, but automatic failover confidence is reduced No direct business outage, restore Witness first
DB VIP floating fails Database may have a new primary, but unified entry is unreachable Business outage; manual VIP binding required
Check item Pass criteria
4 VM hostnames are fixed hostnamectl matches the plan
Unified SSH works Operations terminal can access all 4 VMs with key-based SSH
Time synchronization Time drift across 4 VMs is below 1s
Firewall is open Ports from section 9 are allowed by scope
enterprise service is healthy tier0-enterprise health check passes
EMQX state is verified EMQX node, listening ports, and persistent directory are healthy
enterprise disk usage is safe / usage is below 70%; log and cache cleanup is configured
DB primary/standby is healthy repmgr cluster show shows primary, standby, and witness healthy
DB VIP works enterprise node can connect to 10.60.20.10:5432
Primary DB failover drill Standby can be promoted and DB VIP can float
Backup restore drill Backup can be restored to a test database
  1. Create 4 VMs and fix hostnames, IPs, time synchronization, and SSH.
  2. Initialize OS baseline, firewall, mounts, and kernel parameters.
  3. Deploy tier0-enterprise on ent-enterprise-01.
  4. Deploy single-node EMQX on ent-enterprise-01.
  5. Deploy PostgreSQL + TimescaleDB primary/standby.
  6. Deploy repmgr witness, repmgrd, and DB VIP floating scripts.
  7. Verify connectivity, EMQX recovery, database failover, backup restore, and routine checks.
  8. Finalize runbooks, credential archives, and routine check tasks.
  • The simplified edition has an application-layer single point. If ent-enterprise-01 fails, the whole business service is unavailable.
  • EMQX is single-node and does not provide message-layer HA.
  • ent-enterprise-01 has only a single 100G system disk. Logs, cache, attachments, and temporary files must be controlled.
  • If application-layer or EMQX HA is required later, switch to the standard edition.
  • Database RPO/RTO is not confirmed. This primary/standby design cannot guarantee zero data loss.
  • DB VIP floating scripts must be verified on site, especially whether the virtualization/network platform allows VRRP.
Reference

High Availability Deployment Plan

Reference deployment plan for a highly available Tier0 Enterprise environment.

This V2 plan deploys a logical Tier0 Enterprise Fleet Center in an offline or private environment. Six machines share the business, middleware, database, storage, and agent roles. Users and internal Enterprise services always connect through fixed VIP addresses. After one machine or one proxy fails, Keepalived, HAProxy, repmgr, RustFS, and Fleet Agent take over at their own layers.

The plan targets single-machine failure recovery in one network segment. It is an active-standby disaster recovery design, not a multi-data-center, consensus-election, or zero-data-loss high availability cluster.

The design goals are:

  • The Fleet Center entry can move to a healthy Standby node after the current business node fails.
  • PostgreSQL, Redis, and RustFS use fixed VIP addresses, so Enterprise does not need to change .env when backend roles change.
  • Local business files for App, Flow, Marimo, License, and similar runtime assets can be synchronized from Active to Standby.
  • One Cluster License maps to one logical installation and is not activated again after Enterprise switches nodes.
  • A separate deployer initializes the six machines, assigns roles, deploys services, monitors status, and validates failover.
  • VIP failover, file synchronization, independent Redis instances, database replication, and object-storage redundancy are clearly separated.

This plan applies only to Fleet Center. Branch Enterprise nodes are still installed as normal single-machine deployments and do not join this six-machine active-standby design.

Tier0 Enterprise overall topology

The core request path is:

Terminal window
Clients / site systems
-> Business VIP :8088
-> Current Active Enterprise (D / E / F)
|-- PostgreSQL VIP :5432 -> D/E HAProxy -> A/B current writable Primary
|-- Redis VIP :6379 -> C or F independent Redis
`-- RustFS VIP :19000 -> A/B HAProxy -> C/D/E/F RustFS cluster

The four VIPs are fixed entries in the business configuration. When Enterprise switches nodes or middleware backend roles change, clients and Enterprise do not change connection addresses.

The following addresses are examples only. Replace them with real addresses from the same on-site IPv4 subnet before implementation. The four VIPs must not be occupied by DHCP, static hosts, or other VRRP instances.

Name Example IP Description
deployer-controller 10.60.10.20 Independent deployer; not counted as one of the six business machines
ent-ha-01 / A 10.60.10.11 PostgreSQL Primary and related roles
ent-ha-02 / B 10.60.10.12 PostgreSQL Standby and related roles
ent-ha-03 / C 10.60.10.13 Witness, Redis-1, RustFS-1
ent-ha-04 / D 10.60.10.14 Initial Active Enterprise and related roles
ent-ha-05 / E 10.60.10.15 Enterprise Standby and related roles
ent-ha-06 / F 10.60.10.16 Enterprise Standby and related roles
Business VIP 10.60.10.101 Unified Enterprise entry, default 8088
PostgreSQL VIP 10.60.10.102 Unified database entry, default 5432
Redis VIP 10.60.10.103 Unified Redis entry, default 6379
RustFS VIP 10.60.10.104 Unified S3 entry, default 19000

Before implementation, confirm the business NIC name, IPv4 prefix, gateway, DNS, NTP, hostnames, SSH user, disk mount points, and firewall allowlist. VIPs, node IPs, and NICs must not be guessed by scripts and used directly in production.

Tier0 Enterprise six-machine active-standby architecture
Machine Default deployed components Key responsibility
A PostgreSQL Primary, RustFS HAProxy, Keepalived Initial database primary; first RustFS proxy candidate
B PostgreSQL Standby, RustFS HAProxy, Keepalived Streaming database standby; second RustFS proxy candidate
C PostgreSQL Witness, Redis-1, RustFS-1 Database witness/status record; Redis and RustFS data node
D PG HAProxy, Keepalived, RustFS-2, Enterprise, Fleet Agent, rsync Initial business Active; first PostgreSQL proxy candidate
E PG HAProxy, Keepalived, RustFS-3, Enterprise, Fleet Agent, rsync Business Standby; second PostgreSQL proxy candidate
F Redis-2, RustFS-4, Enterprise, Fleet Agent, rsync Business Standby; second Redis instance

This allocation is for single-machine failure tolerance and balanced resource usage across the six machines. The deployer maps machines to A-F by the natural order of hostnames/IP addresses and selects default roles, but the final assignment must still be reviewed against the on-site disk layout and failure domains.

The Enterprise business layer is single-active/standby. At any time, only the node holding the Business VIP serves business requests. Scale the business layer vertically by increasing CPU, memory, and disk on one business node. Do not estimate concurrency by multiplying the number of Enterprise nodes.

Machine Node type vCPU Memory Base storage Disk recommendation
A PostgreSQL Primary node 8C 16G 1T / about 80G; remaining space for PostgreSQL data, WAL, and backup staging
B PostgreSQL Standby node 8C 16G 1T / about 80G; remaining space for PostgreSQL data, WAL, and backup staging
C Witness / middleware node 4C 8G 500G Allocate fixed mount points for system, Redis, and RustFS data
D Initial Active Enterprise node 8C 32G 500G Allocate fixed mount points for system, containers, Enterprise synced files, and RustFS data
E Standby Enterprise node 8C 32G 500G Same as D
F Standby Enterprise node 8C 32G 500G Same as D
Category Count Per-node spec vCPU subtotal Memory subtotal Storage subtotal
PostgreSQL database nodes 2 8C / 16G / 1T 16C 32G 2T
Witness / middleware node 1 4C / 8G / 500G 4C 8G 500G
Enterprise business nodes 3 8C / 32G / 500G 24C 96G 1.5T
Total 6 - 44C 136G 4T

Unified Enterprise Connection Configuration

Section titled “Unified Enterprise Connection Configuration”

D, E, and F keep the same Enterprise configuration.

Dependency Configuration principle
PostgreSQL Connect to PostgreSQL VIP, not A/B node IPs
Redis Connect to Redis VIP, not C/F node IPs
File storage Use FILESTORE_DRIVER=s3; point the S3 endpoint to RustFS VIP
Fleet identity Three nodes share one logical installationId; each node has its own memberId
Fleet Agent One process-level Fleet Agent runs on each Enterprise node
License Activate once through the Business VIP; include the Bundle in the HA fileset

installationId and memberId are generated and persisted by the installation process. Operators should not invent them manually or copy memberId between machines.

VIP Candidate nodes Health basis Takeover result
Business VIP D, E, F Fleet Agent readiness, business container state, sync generation Only the Owner starts the Enterprise HA business group
PostgreSQL VIP D, E HAProxy/Keepalived state; HAProxy routes only to the writable Primary Enterprise keeps the same database address
Redis VIP C, F Redis PING and local service state Switches to the other independent instance; cache/session may be lost
RustFS VIP A, B HAProxy and RustFS backend health Proxy entry moves while the S3 address stays unchanged
  • D, E, and F install the same full Enterprise offline ZIP.
  • Fleet Agent is a host-level process service, not a business container.
  • Keepalived manages the Business VIP and calls the Fleet Agent readiness endpoint to decide whether the local node can hold the VIP.
  • Only the Business VIP Owner runs the business group; the other two nodes stay Standby.
  • A node that loses the VIP must stop the business group. A recovered node must rejoin as Standby first.
  • EMQX runs as part of the single-active business group. Do not restart it outside Agent control or build a separate election mechanism across the three machines.

PostgreSQL Primary/Standby, Witness, and Unified Entry

Section titled “PostgreSQL Primary/Standby, Witness, and Unified Entry”
  • A starts as Primary, B starts as Streaming Standby, and C runs repmgr Witness.
  • Witness records cluster state and participates in failure decisions. It does not store full business data and does not serve reads or writes.
  • When the primary fails, repmgr promotes a healthy Standby to the new Primary.
  • D/E HAProxy routes 5432 traffic only to the current writable Primary.
  • PostgreSQL VIP floats between the D/E proxy nodes. Proxy failover and database primary/standby failover are decoupled.
  • Acceptance must prove both “only one writable Primary” and “Standby resumes streaming”.
  • C and F each run one standalone Redis instance.
  • The two Redis instances do not form Sentinel, Cluster, or primary/replica replication.
  • Redis VIP only switches the connection entry. When the current instance fails, the VIP moves to the other healthy instance.
  • Redis may only store data that can be lost or rebuilt. Empty cache and user re-login after switching are within the design boundary.
  • If Redis later stores non-discardable state, upgrade to a replication/arbitration design instead of keeping the independent-instance assumption.
  • C, D, E, and F form a four-node distributed RustFS object storage cluster.
  • HAProxy on A and B proxies all healthy RustFS backends.
  • RustFS VIP floats between A and B. Enterprise always accesses S3 through this VIP.
  • A single RustFS node failure is handled by the cluster mechanism; a single proxy failure is handled by VIP failover.
  • Do not synchronize object data with rsync, hot copy, or direct edits to RustFS mount directories.
  • RustFS node count, disk count, and erasure-coding availability boundaries must follow the cluster check results of the deployed version.

App, Flow, Marimo, and License File Synchronization

Section titled “App, Flow, Marimo, and License File Synchronization”

Fleet Agent synchronizes only local business files that cannot be placed directly in PostgreSQL/RustFS but must exist on the new Active node:

  • App runtime directories and node_modules
  • Flow, Marimo, Notebook, and related local runtime files
  • License Bundle
  • Other HA filesets explicitly registered by the current implementation

Synchronization uses system rsync over deployer-managed SSH trust between business nodes. Each release creates a complete generation/manifest. A Standby node can take over only after confirming that the generation is complete. PostgreSQL data directories, Redis data directories, and RustFS data directories are not part of this synchronization scope.

Source Target Purpose
Users / site systems Business VIP Web/API business access
D/E/F Enterprise PostgreSQL VIP Business database reads/writes
D/E/F Enterprise Redis VIP Cache and session
D/E/F Enterprise RustFS VIP S3 object reads/writes
Deployer controller A-F SSH, deployment, status collection, operations
D/E/F D/E/F rsync/SSH file synchronization
A/B/C A/B/C PostgreSQL streaming replication, repmgr, Witness communication
RustFS members/proxies C/D/E/F RustFS cluster and S3 backend communication
Nodes sharing a VIP Corresponding candidates VRRP advertisement and VIP movement

Allow ports by minimum required source-to-target relationships. Do not expose all management ports directly to the user network.

Port / protocol Suggested allowlist Purpose
22/TCP Deployer -> A-F; D/E/F mutual sync SSH, deployment, rsync
8088/TCP User network -> Business VIP Enterprise business entry
5432/TCP D/E/F -> PostgreSQL VIP; PG/proxy internal access PostgreSQL, streaming replication, proxy
6379/TCP D/E/F -> Redis VIP; health-check nodes -> C/F Redis access and health checks
19000/TCP D/E/F -> RustFS VIP Enterprise fixed S3 entry
9000/TCP A/B -> C/D/E/F; RustFS members RustFS S3 backend/cluster communication; confirm by version
9001/TCP Controlled operations network -> RustFS admin entry Optional RustFS admin endpoint; do not expose to user network
19731/TCP Localhost / Keepalived / controlled operations network Fleet Agent HTTP health and control interface
18080/TCP Operations network -> deployer controller Deployer HTTPS UI
112/VRRP Candidate nodes for each VIP Keepalived VIP movement; this is an IP protocol number, not TCP/UDP
1883/8883 Site device network -> business entry, per product configuration MQTT/MQTTS
Failure scenario Expected behavior Boundary
D Active business node fails Business VIP moves to E or F; the healthy Standby verifies the fileset generation before starting the business group Files not yet synchronized after the last successful sync may be lost
Fleet Agent fails Readiness fails, the old business group stops, and Business VIP moves Do not bypass the Agent to start containers manually
PostgreSQL A Primary fails B is promoted; HAProxy routes to the new Primary and PostgreSQL VIP stays fixed Connections briefly fail during failover; restore a new Standby afterward
One PostgreSQL HAProxy fails PostgreSQL VIP moves to the other proxy Database roles do not change
Redis current node fails Redis VIP moves to the other independent Redis instance Cache may be lost and sessions may expire
One RustFS data node fails Remaining cluster nodes continue service Tolerance depends on actual erasure coding and disk health
One RustFS HAProxy fails RustFS VIP moves to the other proxy The S3 address stays fixed; existing connections may need to reconnect
Deployer controller fails The running data plane continues Deployment, centralized monitoring, and operations are temporarily unavailable; the controller has no automatic standby
Network partition Safe automatic leader election is not guaranteed Two VIP owners or Active nodes may appear; isolate the faulty side and recover manually
Any two machines fail simultaneously No blanket availability guarantee The outcome depends on the pair of roles and must be tested per scenario

Network partition, simultaneous multi-node failure, incorrect VRRP priority, full disks, clock drift, and manual changes outside the deployer are outside the normal automatic recovery promise and must be covered by operations procedures.

  • PostgreSQL requires independent logical or physical backup and restore verification.
  • RustFS requires capacity, disk, and cluster health monitoring.
  • Redis must be treated as cache/session unless a future replication design is introduced.
  • Fleet Agent and Keepalived state must be monitored on D/E/F.
  • rsync generation lag must be monitored. A Standby with stale generation must not take over business traffic.
  • Regular failover drills must include business VIP, PostgreSQL promotion, Redis VIP switch, RustFS proxy switch, and restore from backup.
Check Pass criterion
Machines and roles Six business machines A–F match the plan; the deployer is separate.
SSH and sudo The deployer can access A–F without interactive prompts using a controlled account; host keys are verified.
Network and time The six machines share the planned subnet; four VIPs are unused; NICs, prefixes, and time synchronization meet requirements.
Docker/Compose All six nodes are initialized, with no conflicting old containers, ports, networks, or data directories.
Disks PostgreSQL, RustFS, and Enterprise filesets use planned mount points; capacity and inodes are healthy.
PostgreSQL There is one Primary, a streaming Standby, an online Witness, and read/write access through the PostgreSQL VIP.
Redis C/F instances are healthy; PING works through the Redis VIP; the non-replicated data boundary after failover is accepted.
RustFS All four nodes are healthy; object writes, reads, and deletes work through the RustFS VIP.
Enterprise D/E/F run the same version; only the Business VIP owner runs the business group.
Fleet Agent All three Agents are online; readiness, sync history, and generation status can be checked.
License The Cluster License is activated once through the Business VIP and remains active after failover.
App sync An imported App with node_modules still runs after synchronization and failover.
Firewall Only the sources, destinations, and protocols required by this plan are allowed.
Backup PostgreSQL, RustFS, and deployer backup plans are in place, with at least one restore test completed.
  1. Prepare an independent deployer controller, six business machines, four VIPs, NICs, and disk layout.
  2. Verify SHA256 checksums of the complete delivery package and Enterprise offline ZIP.
  3. Start the deployer, enter SSH credentials and six machines, and check connectivity.
  4. Initialize Docker/Compose and the offline images on all six target machines.
  5. Create a standard deployment and confirm A–F roles and four VIPs.
  6. Deploy PostgreSQL, Redis, RustFS, HAProxy, and Keepalived in order.
  7. Establish dedicated rsync accounts and SSH trust between D/E/F.
  8. Deploy Enterprise and Fleet Agent on D/E/F; confirm that only D is initially Active.
  9. Activate the License once through the Business VIP and wait for License synchronization.
  10. Import a test App and verify synchronization of the App, node_modules, Flow/Marimo, and License filesets.
  11. Drill single-node failures for Enterprise, PostgreSQL, Redis, and RustFS separately.
  12. Restore nodes and confirm one VIP Owner, one Active, one Primary, and complete synchronization.
  13. Complete a backup restore drill, operations handoff, and on-site parameter records.
  • Users can access Enterprise through the Business VIP.
  • Enterprise reads and writes PostgreSQL only through PostgreSQL VIP.
  • Enterprise uses Redis only through Redis VIP.
  • Enterprise uses RustFS only through RustFS VIP.
  • App, Flow, Marimo, Notebook, and License files are present on the Active node after failover.
  • Branch Enterprise can still be installed independently and does not join this six-machine HA group.
  • Stop the Active business node: Business VIP moves to a healthy Standby and the business group starts only there.
  • Stop PostgreSQL Primary: Standby is promoted and PostgreSQL VIP continues pointing to the writable Primary.
  • Stop the Redis VIP owner: Redis VIP moves to the other instance, with cache/session loss accepted.
  • Stop the RustFS proxy owner: RustFS VIP moves to the other proxy.
  • Stop one RustFS data node: object access remains within the actual RustFS redundancy boundary.
  • Recover failed nodes: they return as Standby or healthy members and do not overwrite newer data or files.
  • Whether all four VIPs are on one Layer 2 network shared by the six machines.
  • Whether network devices allow VRRP/GARP and security policies permit VIP movement.
  • Whether the site is fully air-gapped; the deployer still checks Harbor reachability, so verify routing or a proxy first.
  • Whether PostgreSQL, RustFS, and Enterprise fileset capacity, growth, and RPO/RTO targets meet requirements.
  • Whether Redis contains data that cannot be lost; if so, two independent instances are insufficient.
  • Whether App/Flow/Marimo file volume, change volume, and acceptable synchronization delay meet requirements.
  • Whether cross-subnet, cross-data-center, network-partition, or any two-machine failure availability is mandatory.
  • Who is responsible for production certificates, domains, passwords, License, SSH keys, and audit records.
  • How the deployer controller will be recovered, backed up, and replaced by an operations channel if unavailable.

Changes to any of these items can affect VIPs, roles, storage, and failure boundaries. Update the plan before implementation.

The current plan centers on six machines, four fixed VIPs, and single-active Enterprise. It decouples the business entry, database entry, cache entry, and object storage entry. It can cover common single-machine failures within the same network segment and significantly reduces the work required after failover to change connection configuration, reactivate License, and manually copy App files.

At the same time, three boundaries must be accepted: Redis does not replicate data, business filesets are synchronized asynchronously, and network partition has no consensus arbitration. Therefore, this plan is suitable to define as a Fleet Center six-machine single-active active-standby disaster recovery plan. It should not promise zero interruption, zero data loss, or strict cross-data-center high availability.

Reference

SLA and High Availability Boundaries

SLA recommendations, high availability boundaries, acceptance gates, drills, and hardening items for the standard Tier0 Enterprise deployment.

This document applies to the six-VM fully offline deployment: three application / Swarm nodes, two PostgreSQL HA nodes, and one witness node.

Layer Current Design High Availability Boundary
Application runtime Enterprise New compose runs on the fixed tier0_app_active_node. backend, redis, EMQX, Marimo, and OPC UA Server are not automatically multi-replica services yet.
HTTP entry Three application nodes run keepalived APP VIP + HAProxy. The VIP can float. HAProxy forwards to the active node on 8088/TCP and checks /healthz.
MQTT / OPC UA EMQX uses 1883/8883/8083/8084; OPC UA uses 4840. These connect directly to the active node. They are not included in TCP VIP proxying, so protocol-entry HA is not promised.
Database PostgreSQL / TimescaleDB streaming replication + repmgr + witness + DB VIP. If the primary fails, the standby can be promoted automatically. Asynchronous replication cannot promise strict zero RPO.
Backup and restore backup-db.sh / restore-db.sh. Provides recoverability, but it is not the same as online HA.
Service Object Recommended Statement Constraints
Platform HTTP entry Start from monthly availability of 99.5%. VIP failover is not the same as automatic migration of the active application node.
Database access Operations target: RTO <= 2 minutes. RPO depends on replication lag. Historical failover tests on the same architecture were about 59-64 seconds.
MQTT / OPC UA No HA SLA is promised in the current design. HAProxy TCP proxying, a separate VIP, or service clustering must be added first.
Backup and restore Daily backups; mandatory backup before major changes. Restore time depends on data volume and on-site I/O.

Before claiming 99.9% or higher, complete application automatic migration or multi-replica deployment, protocol-entry HA, monitoring alerts, and recovery drills. Do not describe planned capabilities as delivered capabilities.

Each deployment or upgrade must satisfy at least the following:

  • verify-materials.sh passes, and the delivery package SHA256 checks pass.
  • The three Swarm nodes are Ready.
  • APP VIP /healthz and /readyz return 200, and the home page and /uns are accessible.
  • The seven compose services on the active node are running.
  • DB VIP:5432 is accessible, and the primary, standby, and witness topology is normal.
  • The default account can actually log in. Do not judge IAM initialization success only from ports, containers, or HTTP 200 responses.
  • Smoke checks for HTTP, EMQX ports, WebSocket/WSS, and OPC UA TCP pass.

Run the following every day:

Terminal window
./bin/verify.sh --site config/site.conf
./bin/smoke-business-emqx.sh --site config/site.conf

Configure at least the following alerts:

  • APP VIP /healthz or /readyz failure.
  • DB VIP unreachable, no primary, split-brain risk, replication interruption, or replication lag above threshold.
  • keepalived, HAProxy, PostgreSQL, or repmgrd abnormal status.
  • Key containers such as backend, redis, and EMQX exit or restart frequently.
  • Data disk usage exceeds 80% / 90%.
  • The latest backup failed or was not generated.
Drill Frequency Verification Criteria
APP VIP failover Before delivery and quarterly. After stopping keepalived on the current VIP node, /healthz and /readyz recover.
DB primary failure Before delivery and every six months. The standby is promoted, DB VIP recovers, and the old primary is rebuilt as a standby.
Database restore Monthly sample and before major changes. The backup is restorable. After restore, verify, smoke checks, and login verification pass.
Material verification Every package build. Source materials, package SHA, and unpacking verification pass.
  1. Confirm the impact scope first: HTTP, MQTT, OPC UA, database, and single-node impact.
  2. Prioritize restoring VIP, HAProxy, the active application, and the database primary.
  3. Preserve logs, data directories, and backups. Do not directly clean or overwrite the incident site.
  4. For database incidents, determine the current primary first, then decide whether to fail over, rejoin, or restore.
  5. After recovery, run verify, smoke checks, and actual login verification.
  • Make the application multi-replica, or establish a verifiable automatic migration process for the active node.
  • Cluster EMQX, or route it through HAProxy TCP / TLS with a dedicated VIP.
  • Provide a high-availability entry for OPC UA through HAProxy TCP, a dedicated VIP, or service clustering.
  • Use PostgreSQL synchronous replication, or define acceptable replication lag and RPO clearly.
  • Automate backup scheduling, off-site replication, and regular restore drills.
  • Connect containers, hosts, databases, logs, and black-box probes to unified alerting.

Related procedures: Operations Runbook and Standard Port List.

Reference

Standard Port List

Firewall port list for the standard six-VM offline Tier0 Enterprise deployment.

The following table is based on the Enterprise New six-VM offline deployment. Customer firewalls should allow traffic from the minimum required source ranges only. Do not expose these ports directly to the public internet.

Source Target Port Protocol Purpose
Control host Six target VMs 22 TCP SSH / Ansible
Three application nodes, mutually Three application nodes 2377 TCP Docker Swarm management plane
Three application nodes, mutually Three application nodes 7946 TCP/UDP Swarm node discovery
Three application nodes, mutually Three application nodes 4789 UDP Swarm overlay
Three application nodes Active application node 8088 TCP HAProxy to Enterprise New backend; application network segment only
Business network segment APP VIP 80 TCP Platform HTTP entry, /healthz, /readyz
Business network segment APP VIP / active application node 1883 TCP MQTT
Business network segment APP VIP / active application node 8883 TCP MQTT TLS
Business network segment APP VIP / active application node 8083 TCP MQTT WebSocket
Business network segment APP VIP / active application node 8084 TCP MQTT WebSocket TLS
Business network segment APP VIP / active application node 4840 TCP OPC UA Server
Controlled application network segment Active application node 8089 TCP Launchpad
Dynamic app access network segment Active application node 30000-30199 TCP App Gateway / dynamic application host ports
Application nodes, DB nodes, and witness DB VIP / DB nodes 5432 TCP PostgreSQL / TimescaleDB
DB1, DB2, and witness DB1, DB2, and witness 5432 TCP Streaming replication / repmgr
Application nodes NFS server 2049 TCP/UDP Used when NFS_ENABLED=true

The current compose deployment does not expose Redis, Marimo, or the EMQX Dashboard externally. These services are only called by the backend inside the Docker runtime network.

Reference

Operations Runbook

Daily inspection, failover, backup, restore, cleanup, and troubleshooting procedures for the standard Tier0 Enterprise deployment.

This document is based on the Enterprise New offline application.

  1. Run the following commands from the deployment package root directory:
    Terminal window
    ./bin/verify.sh --site config/site.conf
    ./bin/smoke-business-emqx.sh --site config/site.conf
  2. Confirm the following items:
    • The 3 Swarm nodes are Ready.
    • APP VIP /healthz and /readyz return 200.
    • DB VIP:5432 is accessible.
    • The PostgreSQL primary, standby, and witness topology is normal.
    • backend, redis, emqx, marimo, and opcua-server are all running on the active application node.
  1. Run the following commands on the active application node:

    Terminal window
    cd /opt/tier0-enterprise/tier0-deploy
    bash bin/compose.sh ps
    bash bin/compose.sh logs --tail=200 backend
    curl -fsS http://127.0.0.1:8088/healthz
    curl -fsS http://127.0.0.1:8088/readyz
  2. Health-check interpretation:

    • healthz failure: check the backend process, image, and container logs first.
    • readyz failure: also check DB VIP, Redis, and database migration logs.
    • Home page reachable but login unavailable: confirm ADMIN_INITIAL_PASSWORD in .env, then check backend IAM migration logs and user tables. Do not judge deployment success only from the HTTP port.
Terminal window
nc -vz <APP_VIP> 1883
nc -vz <APP_VIP> 8883
nc -vz <APP_VIP> 8083
nc -vz <APP_VIP> 8084
nc -vz <APP_VIP> 4840

Run the following on database nodes:

Terminal window
systemctl status tier0-postgresql
systemctl status tier0-repmgrd
sudo -iu postgres psql -Atqc 'select pg_is_in_recovery();'
sudo -iu postgres /usr/local/bin/repmgr -f /etc/repmgr.conf cluster show
  • pg_is_in_recovery=false means primary.
  • pg_is_in_recovery=true means standby.
  • DB VIP must only be located on the current primary.
  • If standby replication is interrupted or the witness reports upstream errors, preserve the site first. Do not rerun the full deployment directly.
  1. Before testing, record the node that currently owns the VIP and verify:

    Terminal window
    curl -fsS http://<APP_VIP>/healthz
    curl -fsS http://<APP_VIP>/readyz
  2. After stopping keepalived on the current VIP node, confirm VIP takeover on another application node, then retest both URLs. The HAProxy backend points to the active application node on 8088/TCP, so all three application nodes must be able to reach port 8088 on the active node.

  3. After restoring keepalived, run verify.sh and smoke checks again. Do not stop active application containers during the drill.

Before a failure drill, create a backup and confirm replication is healthy:

Terminal window
./bin/backup-db.sh --site config/site.conf

After stopping tier0-postgresql on the current primary, observe repmgr promoting the standby and DB VIP takeover. The target RTO is within 2 minutes. Historical tests on the same architecture were about 59-64 seconds.

  • Backup:

    Terminal window
    ./bin/backup-db.sh --site config/site.conf
  • Restore:

    Terminal window
    ./bin/restore-db.sh --site config/site.conf --restore-file /backup/tier0-db/postgres-YYYYmmddTHHMMSS.dump
Terminal window
./full-cleanup.sh --env install.env --yes
./install.sh --auto --yes
Terminal window
cd /opt/tier0-enterprise/tier0-deploy
bash bin/compose.sh logs --tail=300 backend
bash bin/compose.sh ps
Terminal window
cd /opt/tier0-enterprise/tier0-deploy
bash bin/compose.sh logs --tail=200 emqx
Terminal window
systemctl status tier0-repmgrd
tail -100 /var/log/repmgr/repmgr.log
sudo -iu postgres psql -Atqc 'show shared_preload_libraries;'
Terminal window
./bin/verify-materials.sh
Reference

OpenAPI Reference Appendix

Tier0 OpenAPI 4.0.0 · Operations: 173 · Schemas: 487

Operations

API field names, examples, and source descriptions follow the bundled English OpenAPI specification.

Collection Management

Collection management APIs

POST/uns/discovery/describe

Read Collection fields, relationships and measurement semantics

Returns the Collection Schema and explicitly declared semantics. Do not infer undeclared relationships, units or granularity from field names.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
collectionIdstringYesCollection ID owning the business Records and Samples.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "collectionId": "string",
    "description": "string",
    "fields": [
      "value"
    ],
    "indexStatus": [
      "value"
    ],
    "indexes": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCollectionDescription. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/discovery/search

Search accessible Collections

Search Collections accessible to the current identity by name or description. Discover real IDs before interpreting their fields.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
searchstringNoSearch by name or supported text fields; not SQL.
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog. At most 200 items per page.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "asOf": 0,
    "complete": false,
    "hasMore": false,
    "list": [
      "value"
    ],
    "nextCursor": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesDiscoveryResult. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

Metadata

Metadata APIs

POST/uns/app/context

context · App

Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

This request body has no declared object fields in OpenAPI.

Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/auto-indexes/disable

Disable or enable an automatic index specification

Disable or enable an automatic index specification. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/auto-indexes/disable' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"collectionId":"string","fields":[{"field":"value","direction":"value","form":"value"}],"action":"disable"}'

application/json

FieldTypeRequiredDescription
collectionIdstringYesCollection ID for the business records and samples.
fieldsarray<object>YesSpecification to disable or enable, taken from autoIndexes[].spec.fields or disabledAutoIndexSpecs[].spec.fields.
actionstringYesdisable deletes existing automatic indexes with the same specification and prevents their automatic recreation; enable restores automatic management.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "collectionId": "string",
    "specKey": "string",
    "spec": {
      "paths": "value",
      "fields": "value"
    },
    "state": "disabled",
    "removingIndexIds": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/auto-indexes/pin

Pin or unpin an automatic index

Pin or unpin an automatic index. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/auto-indexes/pin' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"collectionId":"string","indexId":"string","action":"pin"}'

application/json

FieldTypeRequiredDescription
collectionIdstringYesCollection ID for the business records and samples.
indexIdstringYesAutomatic index task ID (autoIndexes[].id).
actionstringYespin pins the index: the platform will neither delete nor rebuild it; unpin removes the pin.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "id": "string",
    "name": "string",
    "physicalNames": [
      "value"
    ],
    "spec": {
      "paths": "value",
      "fields": "value"
    },
    "state": "pending"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudAutoIndex. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/batch/status

Query the caller’s write receipt and current durable delivery status

Retains existing cross-type batch semantics for recovery by existing clients. New calls should use meta/batch, /uns/records:transact or the items array on ordinary Record/Sample resource operations. Do not replay an unresolved old request through a different endpoint.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/batch/status' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"scope":"string","idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
scopestringNoNot specified in OpenAPI
idempotencyKeystringYesUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "committedAt": 0,
    "deliveries": [
      "value"
    ],
    "itemCount": 0,
    "jobId": "string",
    "retryAdvice": {
      "recommendedAction": "value",
      "canRetrySameRequest": "value",
      "keepIdempotencyKey": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesTransactionStatusResult. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/edges/collection-sync/validate

Validate this Edge Collection mapping, current center grant and target schema

Validate this Edge Collection mapping, current center grant and target schema. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/edges/collection-sync/validate' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"collectionId":"string"}'

application/json

FieldTypeRequiredDescription
collectionIdstringYesCollection ID owning the business Records and Samples.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "collectionId": "string",
    "targetCollectionId": "string",
    "centerId": "string",
    "sourceRevision": 0,
    "targetRevision": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/edges/config/get

Read an Edge configuration section and its revision

Read an Edge configuration section and its revision. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/edges/config/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"section":"collectionSync"}'

application/json

FieldTypeRequiredDescription
sectionstringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "section": "collectionSync",
    "revision": 0,
    "config": "string",
    "effectiveAt": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/edges/config/update

Save an Edge configuration section with revision checking. uploadPolicy sets the delivery cadence for newly queued Collection replication

Save an Edge configuration section with revision checking. uploadPolicy sets the delivery cadence for newly queued Collection replication. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/edges/config/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"section":"collectionSync","expectedRevision":0,"config":"string","collectionId":"string","expectedCollectionRevision":0}'

application/json

FieldTypeRequiredDescription
sectionstringYesNot specified in OpenAPI
expectedRevisionintegerYesExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
configobjectYesNot specified in OpenAPI
collectionIdstringNoCollection ID owning the business Records and Samples.
expectedCollectionRevisionintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "section": "collectionSync",
    "revision": 0,
    "config": "string",
    "effectiveAt": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/edges/list

Query the Fleet node directory managed by the Cluster center

Lists configuration by page/size/search; archived=true selects archived items only. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
keywordstringNoNot specified in OpenAPI
statusstringNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "list": [
      "value"
    ],
    "total": 0,
    "page": 0,
    "size": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

Apps and Grants

App identity and authorization APIs

POST/uns/app-stream-access/list

List configured App Request grants with current platform management authority. includeInactive=1 retains revoked or missing-publication grants for review and revocation.

Lists configuration by page/size/search; archived=true selects archived items only. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
streamIdstringNoNot specified in OpenAPI
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
includeInactiveintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "items": [
      "value"
    ],
    "page": 0,
    "size": 0,
    "total": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/app-stream-policy/get

Get native App Stream policy; current manager session or full_access personal/Agent/service key requires uns.write and stream.requests.manage; restricted MCP OAuth and App runtime credentials cannot manage policy; preserves data grants and does not upgrade credentials or enable message transport

Reads only the object definition, ID and revision, without expanding business Records or Samples. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "appId": "string",
    "revision": 0,
    "version": "cloud-hosted-app-stream/v1",
    "status": "active",
    "platformPermissions": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesAppStreamPolicyView. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/app-stream-policy/update

Update native App Stream policy; current manager session or full_access personal/Agent/service key requires uns.write and stream.requests.manage; restricted MCP OAuth and App runtime credentials cannot manage policy; preserves data grants and does not upgrade credentials or enable message transport

Updates only the basic information listed by this operation. Omitted fields retain their values. Schema, connections, drafts and grants use their own operations. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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","platformPermissions":["stream.requests.read"],"messageTopics":[{"publish":"value","subscribe":"value","topic":"value"}]}'

application/json

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
expectedRevisionintegerYesExpected revision; provide it after reading the current object. On conflict, reread and decide how to proceed instead of blindly overwriting. Shared App metadata revision; zero only when no metadata exists. Read the current revision before updating.
statusstringYesNot specified in OpenAPI
platformPermissionsarray<string>YesNot specified in OpenAPI
messageTopicsarray<object>NoNot specified in OpenAPI
idempotencyKeystringYesUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/app/collections/archive

Archive an App-owned Collection and revoke its data grants

Archive an App-owned Collection and revoke its data grants. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
aliasstringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "alias": "string",
    "collectionId": "string",
    "revision": 0,
    "archived": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/app/collections/ensure

Resolve an existing Collection or create/widen a Collection owned by the current App

Resolve an existing Collection or create/widen a Collection owned by the current App. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/ensure' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appId":"string","dryRun":false,"collections":[{"alias":"value","name":"value","description":"value","directoryPath":"value","recordSchema":"value"}]}'

application/json

FieldTypeRequiredDescription
appIdstringNoNot specified in OpenAPI
dryRunbooleanNoNot specified in OpenAPI
collectionsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "appId": "string",
    "results": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/app/collections/list

List Collections owned by a local App, including archived Collections

List Collections owned by a local App, including archived Collections. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "appId": "string",
    "collections": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/app/collections/restore

Restore an App-owned Collection and the data grants revoked by this archive

Restore an App-owned Collection and the data grants revoked by this archive. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
aliasstringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "alias": "string",
    "collectionId": "string",
    "revision": 0,
    "archived": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/app/collections/schema:replace

Explicitly replace the Schema and indexes of an App-owned Collection

Explicitly replace the Schema and indexes of an App-owned Collection. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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"],"format":"string","items":{"additionalProperties":"value","description":"value","enum":"value","format":"value","items":"value"}},"indexes":[{"expireAfterSeconds":"value","kind":"value","path":"value","paths":"value","target":"value"}],"description":"string","expectedRevision":0}'

application/json

FieldTypeRequiredDescription
aliasstringYesNot specified in OpenAPI
recordSchemaobjectYesSchema. See the referenced schema in the Schemas section.
indexesarray<object>YesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI
dryRunbooleanNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "alias": "string",
    "collectionId": "string",
    "revision": 0,
    "status": "unchanged",
    "retired": {
      "paths": "value",
      "enumValues": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/apps:replace

Replace App configuration

Replaces the complete configuration under current domain rules. System fields are read-only. Credential, release, associated-resource and authorization checks still apply.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps:replace' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","expectedRevision":0,"replacement":{"collections":["value"],"description":"string","entry":{"basePath":"value","environment":"value","path":"value"},"members":["value"],"name":"string"},"dryRun":false,"idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
replacementobjectYesAppData. See the referenced schema in the Schemas section.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "matchedCount": 0,
    "modifiedCount": 0,
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/apps/context

Read the current App identity and grants

Requires an App data Key. Returns actual Collection grants and cannot elevate permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/context' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'

application/json

This request body has no declared object fields in OpenAPI.

Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/apps/create

Create app; schemaVersion is assigned by the server

Creates App configuration. Set initial Collection grants, members, roles and linked Topics through their dedicated update operations. This creates neither a deployment nor a page. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","description":"value","entry":"value","name":"value","platformPermissions":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/apps/get

Get one app definition and revision, without data expansion

Reads only the object definition, ID and revision, without expanding business Records or Samples. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "kind": "app",
    "id": "string",
    "revision": 0,
    "data": {
      "collections": "value",
      "description": "value",
      "entry": "value",
      "members": "value",
      "name": "value"
    },
    "createdAt": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/apps/grants/update

Replace App collections only; all other App fields are preserved

Replaces the complete collections grant list; omitted grants are removed and [] clears it. alias is the Collection alias within the App. permissions explicitly grant record:read/write/delete and sample:read/write. Linked Topics grant none of these permissions. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/grants/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","collections":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/apps/keys/create

Issue an App data Key

The secret is returned only on creation. Store it on a trusted server; never in a browser.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/keys/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appId":"string","name":"string"}'

application/json

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/apps/keys/revoke

Revoke an App data Key

The specified Key can no longer access the API after revocation.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/keys/revoke' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appId":"string","keyId":"string"}'

application/json

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
keyIdstringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/apps/list

List apps; archived=true selects archived objects only

Lists configuration by page/size/search; archived=true selects archived items only. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"page":0,"size":0,"search":"string","archived":false}'

application/json

FieldTypeRequiredDescription
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.
archivedbooleanNotrue lists archived objects only; false lists active objects only.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "asOf": 0,
    "complete": false,
    "hasMore": false,
    "nextCursor": "string",
    "nextPage": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/apps/members/update

Replace App members only; all other App fields are preserved

Replaces all members; userId references a user and roleIds reference this App's roles. Omitted members are removed; [] clears the list. This does not grant platform roles. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/members/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","members":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/apps/navigation/update

Replace the App associated Topic list (navigation.topicIds); this does not configure page menus or grant data access; all other App fields are preserved

Replaces the App's complete linked Topic list; an empty list clears it. navigation is the retained API field name for Topic associations, not a page navbar or menu. Linking grants no Collection data permissions and does not modify App pages. idempotencyKey and expectedRevision are optional and apply when supplied; dryRun=true validates only.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/navigation/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","navigation":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/apps/platform-permissions/update

Replace explicit App platform permissions; empty array revokes all; permissions cannot exceed issuer resources; MCP consent is unavailable

Replaces the complete App platformPermissions list; [] revokes all platform capabilities. Collection grants, roles and linked Topics do not substitute for platform permissions. Effective capabilities remain the intersection with Key scope and owner permissions. Optionally supply the current expectedRevision; dryRun=true validates only.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/platform-permissions/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","platformPermissions":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/apps/roles/update

Replace App roles only; all other App fields are preserved

Replaces all roles; each role has id/name. Omitted roles are removed; [] clears the list. Collection data permissions remain configured through grants. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/roles/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","roles":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/apps/session/inspect

Verify a human platform session for the caller App; OpenAPI requires an App-bound API Key matching appId; internal callers may inspect only themselves; returns minimal identity and current App roles, never credentials; no implicit administrator membership

The App server uses an App Key matching appId to verify a platform session token and read the trusted user identity and App roles. It issues no login credentials and does not elevate data permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/session/inspect' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appId":"string","token":"string"}'

application/json

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
tokenstringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "appId": "string",
    "roleIds": [
      "value"
    ],
    "roles": [
      "value"
    ],
    "sessionExpireAt": "string",
    "user": {
      "nickName": "value",
      "userId": "value",
      "userName": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesAppSessionIdentity. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/apps/update

Update app metadata only; omitted fields are preserved

Updates only the basic information listed by this operation. Omitted fields retain their values. Schema, connections, drafts and grants use their own operations. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","name":"value","description":"value","status":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

API Capabilities

API capability discovery

POST/uns/catalog/get

Read the API capability catalog

Returns operations, Schemas and limits supported by this server. Call for a new connection or after a version change.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

This request body has no declared object fields in OpenAPI.

Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

Namespaces

Namespace APIs

POST/uns/namespace:copy

Copy a directory or display Topic

Directory copies preserve the tree; Topic copies preserve explicit references. Collections, Records and Samples are not copied. Mounted resources are read-only. Permissions, names, parents and references are still validated.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/namespace:copy' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"directory","id":"string","expectedRevision":0,"data":{"name":"string","parentId":"string","description":"string"},"dryRun":false}'

application/json

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
idstringYesNot specified in OpenAPI
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
dataobjectYesNot specified in OpenAPI
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "insertedId": "string",
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/namespace/query

Read directory trees in a batch

Reads the directory/topic display hierarchy; Records are not expanded into tree nodes.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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","kinds":"value"}]}'

application/json

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/topics/view

Read Topic display data

Reads the saved records/fields view of a Topic without creating a data copy.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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","include":"value","records":"value","selectedRecord":"value"}]}'

application/json

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

Metadata Management

Metadata management APIs

POST/uns/metadata

Insert one metadata object

Creates a directory, Topic or Collection with current identity permissions and configuration validation. Use dedicated operations for App grants.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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":{},"dryRun":false,"idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
idstringNoNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "insertedId": "string",
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/metadata:aggregate

Aggregate metadata

Supports match/project/group/sort/skip/limit for permitted metadata kinds, without cross-table joins or writes.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
kindstringNoNot specified in OpenAPI
kindsarray<string>NoNot specified in OpenAPI
statestringNoActive, soft-deleted, or all objects.
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
pipelinearray<object>YesSupports $match/$project/$group/$sort/$skip/$limit/$distinct. The $distinct stage sorts by JSONB value and uses outer pagination.
pageobjectNoNot specified in OpenAPI
limitintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "items": [
      "value"
    ],
    "pageInfo": {
      "mode": "value",
      "hasMore": "value",
      "nextCursor": "value",
      "nextPage": "value",
      "snapshotScope": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query results.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/metadata:bulkWrite

Execute mixed metadata writes

At most 200 operations within one kind. Atomic by default. For non-atomic batches, ordered controls whether to continue after failure. Per-item results retain original input indices.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
operationsarray<object>YesNot specified in OpenAPI
atomicbooleanNoThe entire batch commits atomically by default. Set false to commit items independently. Full authorization and domain validation still apply to each object.
orderedbooleanNoWith atomic=false, controls whether to stop or continue after a failure. Atomic batches reject ordered=false.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "insertedCount": 0,
    "matchedCount": 0,
    "modifiedCount": 0,
    "deletedCount": 0,
    "restoredCount": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/metadata:count

Count metadata

Counts matching objects within the specified kind and state.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
kindstringNoNot specified in OpenAPI
kindsarray<string>NoNot specified in OpenAPI
statestringNoActive, soft-deleted, or all objects.
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "count": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query results.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/metadata:deleteMany

Soft-delete multiple metadata objects

An atomic conditional batch within an explicit kind. Rejects the entire batch if matches exceed maxDocs. Use bulkWrite when objects require independent revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
atomicbooleanNoThe entire batch commits atomically. Use bulkWrite to commit individual items.
maxDocsintegerNoRejects the entire operation if the match limit is exceeded. The write set is never truncated.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "deletedCount": 0,
    "results": [
      "value"
    ],
    "errors": [
      "value"
    ],
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/metadata:deleteOne

Soft-delete one metadata object

Recycles an active object. Directories include their active subtree. Collections retain Records, Samples and references while rejecting writes.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
returnDocumentstringNonone returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "deletedCount": 0,
    "status": "validated",
    "replayed": false,
    "value": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/metadata:find

Find metadata

Queries directories, Topics and Collections. Use bare configuration field names and _id/_meta.* for system fields. Returns items/pageInfo.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
kindstringNoNot specified in OpenAPI
kindsarray<string>NoNot specified in OpenAPI
statestringNoActive, soft-deleted, or all objects.
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
pageobjectNoNot specified in OpenAPI
limitintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "items": [
      "value"
    ],
    "pageInfo": {
      "mode": "value",
      "hasMore": "value",
      "nextCursor": "value",
      "nextPage": "value",
      "snapshotScope": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesMetadataPage. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query results.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/metadata:purge

Permanently purge recycled objects

Asynchronously purges explicitly selected recycled objects; directories include recycled descendants. Deletes metadata after cleaning Records and Samples in batches. Returns jobId. Retain idempotencyKey when retrying.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
idsarray<string>YesNot specified in OpenAPI
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/metadata:replaceOne

Replace one metadata object

Fully replaces writable configuration, validating Schema, indexes and references. System fields remain server-managed. An upsert insertion requires an explicit _id and complete configuration.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
replacementobjectYesNot specified in OpenAPI
upsertbooleanNoSupported for single-resource updates and replacements. The filter must specify equality on _id, and the new configuration must be complete and valid. A deleted object with the same ID is never restored automatically.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
returnDocumentstringNonone returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "matchedCount": 0,
    "modifiedCount": 0,
    "upsertedId": "string",
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/metadata:restore

Restore metadata objects by ID

Atomically restores the batch, revalidating current names, parent directories and references, and incrementing revision. Dependencies are not implicitly restored.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "restoredCount": 0,
    "items": [
      "value"
    ],
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/metadata:transact

Execute a metadata transaction

Atomic operations across directories, Topics and Collections. opId/dependsOn control dependencies. parentId/collectionId support {ref:opId} to reference creation results. At most 200 items. dryRun=true validates then rolls back.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
operationsarray<object>YesNot specified in OpenAPI
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "results": [
      "value"
    ],
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/metadata:updateMany

Update multiple metadata objects

An atomic conditional batch within an explicit kind. Rejects the entire batch if matches exceed maxDocs. Use bulkWrite when objects require independent revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
updateobjectYesSupports only $set, $unset, and $setOnInsert. Configuration paths omit the data. prefix. System fields are read-only. An array update replaces the whole field.
atomicbooleanNoThe entire batch commits atomically. Use bulkWrite to commit individual items.
maxDocsintegerNoRejects the entire operation if the match limit is exceeded. The write set is never truncated.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "matchedCount": 0,
    "modifiedCount": 0,
    "upsertedId": "string",
    "results": [
      "value"
    ],
    "errors": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/metadata:updateOne

Update one metadata object

Selection and update run in the same transaction with domain validation. An upsert insertion requires an explicit _id and complete configuration.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
updateobjectYesSupports only $set, $unset, and $setOnInsert. Configuration paths omit the data. prefix. System fields are read-only. An array update replaces the whole field.
upsertbooleanNoSupported for single-resource updates and replacements. The filter must specify equality on _id, and the new configuration must be complete and valid. A deleted object with the same ID is never restored automatically.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
returnDocumentstringNonone returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "matchedCount": 0,
    "modifiedCount": 0,
    "upsertedId": "string",
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/references/query

Query object references

Inspects references between configuration objects; it does not infer business batch relationships.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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","relationKinds":"value"}]}'

application/json

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

Jobs

Job APIs

POST/uns/jobs/query

Query asynchronous job status

accepted means the job was accepted. Wait for its final status to confirm a successful commit.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

Business Data

Query, write, soft-delete and restore business Records; manage lease locks and cross-Collection transactions. Use bare business field names and _id/_meta.* for system fields.

POST/uns/collections/{collectionId}/records

Insert one Record

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
idstringNoObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
dataobjectYesNot specified in OpenAPI
returnDocumentstringNonone returns the original insertedId response. after includes the created value in the same write transaction and requires the corresponding read permission. Idempotent replays return the original creation snapshot. dryRun returns an uncommitted preview.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "insertedId": "string",
    "value": {
      "id": "value",
      "collectionId": "value",
      "data": "value",
      "revision": "value",
      "createdAt": "value"
    },
    "acceptedId": "string",
    "deliveryState": "pendingUpload",
    "centerCommitted": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:aggregate

Aggregate business Records

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
pipelinearray<object>YesNot specified in OpenAPI
limitintegerNoNot specified in OpenAPI
pageobjectNoUnsV2PipelinePage. See the referenced schema in the Schemas section.
countobjectNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "items": [
      "value"
    ],
    "pageInfo": {
      "mode": "value",
      "hasMore": "value",
      "nextCursor": "value",
      "nextPage": "value",
      "snapshotScope": "value"
    },
    "total": {
      "count": "value",
      "capped": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudDataPage. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:bulkWrite

Execute mixed writes within a Collection

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
operationsarray<object>YesNot specified in OpenAPI
orderedbooleanNoNot specified in OpenAPI
atomicbooleanNotrue commits the entire batch atomically, with up to 200 items for document actions. false commits each document separately.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
lockTokensobjectNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "insertedCount": 0,
    "matchedCount": 0,
    "modifiedCount": 0,
    "deletedCount": 0,
    "upsertedCount": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:count

Count Records

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
maxCountintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "count": 0,
    "capped": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:deleteMany

Soft-delete multiple Records

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
maxDocsintegerNoDefault 1000; atomic requests default to 200.
resumeAfterstringNoNot specified in OpenAPI
atomicbooleanNotrue commits the entire batch atomically. Document actions are limited to 200 items, maxDocs must be at most 200, and the complete match set must fit the limit. false commits each document separately.
orderedbooleanNoNot specified in OpenAPI
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
lockTokensobjectNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "deletedCount": 0,
    "delivery": {
      "centerCommitted": "value",
      "eventIds": "value",
      "failed": "value",
      "localCommitted": "value",
      "pending": "value"
    },
    "status": "string",
    "replayed": false,
    "writeErrors": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:deleteOne

Soft-delete one Record

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
returnDocumentstringNonone returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "deletedCount": 0,
    "delivery": {
      "centerCommitted": "value",
      "eventIds": "value",
      "failed": "value",
      "localCommitted": "value",
      "pending": "value"
    },
    "status": "string",
    "replayed": false,
    "value": {
      "id": "value",
      "collectionId": "value",
      "data": "value",
      "revision": "value",
      "createdAt": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:explain

Assess query and write scope. aggregate uses the actual pipeline and pagination; returns only the database plan without executing aggregation or writes.

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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,"pipeline":["string"]}'

application/json

FieldTypeRequiredDescription
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
opstringNoNot specified in OpenAPI
limitintegerNoFor scope evaluation, the default is 1000 and the maximum is 10000. For aggregate, the default is 20 and the maximum is 200.
pipelinearray<object>NoNot specified in OpenAPI
pageobjectNoUnsV2PipelinePage. See the referenced schema in the Schemas section.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:find

Find business Records

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
limitintegerNoNot specified in OpenAPI
cursorstringNoNot specified in OpenAPI
countobjectNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "items": [
      "value"
    ],
    "pageInfo": {
      "mode": "value",
      "hasMore": "value",
      "nextCursor": "value",
      "nextPage": "value",
      "snapshotScope": "value"
    },
    "total": {
      "count": "value",
      "capped": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudRecordPage. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:get

Read Records by ID

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idsarray<string>YesNot specified in OpenAPI
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "items": [
      "value"
    ],
    "missing": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:lock

Lock or claim Records

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idsarray<string>NoNot specified in OpenAPI
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
limitintegerNoNot specified in OpenAPI
ttlMsintegerNoNot specified in OpenAPI
labelstringNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "locks": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:renew

Renew Record lock leases

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
locksarray<object>YesNot specified in OpenAPI
ttlMsintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "locks": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:replaceOne

Replace one Record

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
replacementobjectYesNot specified in OpenAPI
upsertbooleanNoInserts if no record matches. The filter must specify equality on _id or equality for all fields of a ready unique index. Concurrent conflicts do not create duplicate records.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
returnDocumentstringNonone returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "matchedCount": 0,
    "modifiedCount": 0,
    "upsertedId": "string",
    "delivery": {
      "centerCommitted": "value",
      "eventIds": "value",
      "failed": "value",
      "localCommitted": "value",
      "pending": "value"
    },
    "status": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:restore

Restore Records by ID in a batch

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idsarray<string>YesNot specified in OpenAPI
dryRunbooleanNoNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "restoredCount": 0,
    "restoredIds": [
      "value"
    ],
    "delivery": {
      "centerCommitted": "value",
      "eventIds": "value",
      "failed": "value",
      "localCommitted": "value",
      "pending": "value"
    },
    "status": "string",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:unlock

Release Record locks

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
locksarray<object>NoNot specified in OpenAPI
idsarray<string>NoNot specified in OpenAPI
forcebooleanNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "unlockedCount": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:updateMany

Update multiple Records

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
updateobjectYesupdate 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.
arrayFiltersarray<object>NoNot specified in OpenAPI
maxDocsintegerNoDefault 1000; atomic requests default to 200.
resumeAfterstringNoNot specified in OpenAPI
atomicbooleanNotrue commits the entire batch atomically. Document actions are limited to 200 items, maxDocs must be at most 200, and the complete match set must fit the limit. false commits each document separately.
orderedbooleanNoNot specified in OpenAPI
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
lockTokensobjectNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "matchedCount": 0,
    "modifiedCount": 0,
    "delivery": {
      "centerCommitted": "value",
      "eventIds": "value",
      "failed": "value",
      "localCommitted": "value",
      "pending": "value"
    },
    "status": "string",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/records:updateOne

Update one Record

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
updateobjectYesupdate 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.
arrayFiltersarray<object>NoNot specified in OpenAPI
upsertbooleanNoInserts if no record matches. The filter must specify equality on _id or equality for all fields of a ready unique index. Concurrent conflicts do not create duplicate records.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
returnDocumentstringNonone returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "matchedCount": 0,
    "modifiedCount": 0,
    "upsertedId": "string",
    "delivery": {
      "centerCommitted": "value",
      "eventIds": "value",
      "failed": "value",
      "localCommitted": "value",
      "pending": "value"
    },
    "status": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/records:queryBatch

Query business Records in a batch

Query business Records in a batch. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "results": {}
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

GET/uns/records:subscribe

Subscribe to authorized Record changes using SSE. Supply repeated collectionIds/recordIds query parameters, Accept: text/event-stream and optional Last-Event-ID. Notifications contain no business fields. Current key and App permissions are rechecked on every poll.

Subscribe to authorized Record changes using SSE. Supply repeated collectionIds/recordIds query parameters, Accept: text/event-stream and optional Last-Event-ID. Notifications contain no business fields. Current Key and App permissions are rechecked on every poll. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
collectionIdsqueryarray<string>NoNot specified in OpenAPI
recordIdsqueryarray<string>NoNot specified in OpenAPI
AcceptheaderstringYesNot specified in OpenAPI
Last-Event-IDheaderstringNoOpaque resume cursor from the last SSE event id.
Responses
200401403404409413422500503504
Success response example

200 · text/event-stream

"string"
Response status meanings
StatusMeaningMedia type
200Server-Sent Events: change, heartbeat, or reset. Never contains business data.text/event-stream
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/records:transact

Execute a cross-Collection business transaction

Atomically orchestrates query/check/read/create/update/replace/delete and result bindings across authorized Collections. record.query supports filter, sort, limit (default 20, maximum 100) and expectCount.min/max (asserts the total before limit). Later items may bind id=query.records.N.id from the same Collection and must omit a static id. Write each Record at most once. Query transactions use serializable isolation and Record locks; conflicts roll back the entire batch and never skip locked rows. Transactional join aggregation and allowPartial are unsupported. Use items arrays for ordinary same-kind operations. Idempotency keys are optional. Query accepted jobs by jobId; inspect business state before retrying a timeout.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
dryRunbooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/records:updateManyAtomic

Update all matching Records in one serializable transaction

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/records:updateManyAtomic' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"collectionId":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"update":{},"arrayFilters":[{}],"idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
collectionIdstringYesCollection ID owning the business Records and Samples.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
updateobjectYesupdate 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.
arrayFiltersarray<object>NoNot specified in OpenAPI
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "matchedCount": 0,
    "modifiedCount": 0,
    "transactionTime": 0,
    "replayed": false,
    "dryRun": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

Streams

Stream APIs

POST/uns/stream-requests/grants/get

Inspect user RBAC eligibility or manage an App grant for a frozen Request release. Provide the native snapshot token or Cloud code and target revisions. User identities cannot activate per-Request grants.

Inspect user RBAC eligibility or manage an App grant for a frozen Request release. Provide the native snapshot token or Cloud code and target revisions. User identities cannot activate per-Request grants. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
principalKindstringYesNot specified in OpenAPI
principalIDstringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "code": "string",
    "principalKind": "app",
    "principalID": "string",
    "status": "string",
    "bindingDigest": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesAppRequestGrantView. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/stream-requests/grants/set

Inspect user RBAC eligibility or manage an App grant for a frozen Request release. Provide the native snapshot token or Cloud code and target revisions. User identities cannot activate per-Request grants.

Inspect user RBAC eligibility or manage an App grant for a frozen Request release. Provide the native snapshot token or Cloud code and target revisions. User identities cannot activate per-Request grants. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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,"actions":["stream.requests.read"]}'

application/json

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
principalKindstringYesNot specified in OpenAPI
principalIDstringYesNot specified in OpenAPI
activeintegerYesNot specified in OpenAPI
actionsarray<string>NoNot specified in OpenAPI
expectedSnapshotTokenstringNoNot specified in OpenAPI
expectedCodeRevisionintegerNoNot specified in OpenAPI
expectedBindingDigeststringNoNot specified in OpenAPI
targetRevisionsarray<object>NoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "code": "string",
    "principalKind": "app",
    "principalID": "string",
    "status": "string",
    "bindingDigest": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesAppRequestGrantView. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams:replace

Replace Stream configuration

Replaces the complete configuration under current domain rules. System fields are read-only. Credential, release, associated-resource and authorization checks still apply.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams:replace' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","expectedRevision":0,"replacement":{"description":"string","draft":{"name":"value","description":"value","script":"value","sources":"value","sourceBindings":"value"},"executionMode":"string","name":"string","schemaVersion":1},"dryRun":false,"idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
replacementobjectYesStreamData. See the referenced schema in the Schemas section.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "matchedCount": 0,
    "modifiedCount": 0,
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/streams/create

Create stream; schemaVersion is assigned by the server

draft describes the supported protocol, parameter Schema, JavaScript processor and output Schema. Creating a draft does not execute it. Full programs use the native Source/Stream API and SDK; storage policy is configured separately. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","description":"value","draft":"value","executionMode":"value","name":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/documents/create

Create a Stream document

Create a Stream document. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
dryRunbooleanNoNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
documentobjectNoCloudStreamDocument. See the referenced schema in the Schemas section.
programobjectNoRuntimeStreamDefinition. See the referenced schema in the Schemas section.
expectedSourceRevisionintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "activeRelease": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/documents/disable

Disable a Stream document

Disable a Stream document. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI
dryRunbooleanYesNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
expectedActiveVersionstringYesAuthoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "activeRelease": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/documents/get

Read a Stream document

Read a Stream document. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idstringYesPositive decimal int64 identifier; always a string on the wire.
viewstringNosummary requires only read permission and omits scripts and connection settings. full or an omitted value requires management permission. API Keys also require full_access, and MCP requires the corresponding management scope.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "activeRelease": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/documents/update

Update a Stream document

Update a Stream document. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
dryRunbooleanNoNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
idstringYesPositive decimal int64 identifier; always a string on the wire.
expectedRevisionintegerNoNot specified in OpenAPI
documentobjectNoCloudStreamDocument. See the referenced schema in the Schemas section.
programobjectNoRuntimeStreamDefinition. See the referenced schema in the Schemas section.
expectedSourceRevisionintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "activeRelease": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/documents/validate

Validate a Stream document

Validate a Stream document. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
documentobjectNoCloudStreamDocument. See the referenced schema in the Schemas section.
idstringNoStable current Stream ID when validating edits. Omit for new drafts; names never identify which active routes to exclude.
programobjectNoRuntimeStreamDefinition. See the referenced schema in the Schemas section.
expectedSourceRevisionintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/draft/update

draft/update stream

Replaces the complete draft without changing existing releases. Call publish to create a new fixed release. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/draft/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","draft":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/get

Get one stream definition and revision, without data expansion

Reads only the object definition, ID and revision, without expanding business Records or Samples. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "kind": "stream",
    "id": "string",
    "revision": 0,
    "data": {
      "description": "value",
      "draft": "value",
      "executionMode": "value",
      "name": "value",
      "schemaVersion": "value"
    },
    "createdAt": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/list

List streams; archived=true selects archived objects only

Lists configuration by page/size/search; archived=true selects archived items only. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"page":0,"size":0,"search":"string","archived":false}'

application/json

FieldTypeRequiredDescription
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.
archivedbooleanNotrue lists archived objects only; false lists active objects only.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "asOf": 0,
    "complete": false,
    "hasMore": false,
    "nextCursor": "string",
    "nextPage": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/observation/get

Read Stream observations

Read Stream observations. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "window": {
      "from": "value",
      "to": "value"
    },
    "diagnostics": {
      "release": "value",
      "streamRevision": "value",
      "state": "value",
      "stage": "value",
      "evidence": "value"
    },
    "opcuaAcquisition": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/program/delete

Delete a Stream program

Delete a Stream program. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
dryRunbooleanYesNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
idstringYesPositive decimal int64 identifier; always a string on the wire.
expectedRevisionintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/program/deploy

program/deploy: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed

program/deploy: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly. Optional optimistic concurrency guard; omission updates the current object.
expectedSourceRevisionintegerNoNot specified in OpenAPI
expectedReleaseStatestringNoCloud extension: require inactive state; mutually exclusive with expectedActiveVersion.
expectedActiveVersionstringNoAuthoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "activeRelease": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/program/invoke

program/invoke: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed

program/invoke: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/invoke' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"id":"string","expectedActiveVersion":"string","entryId":"string"}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
expectedActiveVersionstringYesNot specified in OpenAPI
entryIdstringNoNot specified in OpenAPI
inputobjectYesNot specified in OpenAPI
timeoutMsintegerYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/program/list

List Stream programs

List Stream programs. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
searchstringNoNot specified in OpenAPI
sourceIdstringNoPositive decimal int64 identifier; always a string on the wire.
modelstringNoNot specified in OpenAPI
statusstringNoNot specified in OpenAPI
archivedbooleanNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/program/rollback

program/rollback: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed

program/rollback: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly. Optional optimistic concurrency guard; omission updates the current object.
expectedSourceRevisionintegerNoNot specified in OpenAPI
versionIdstringYesNot specified in OpenAPI
expectedReleaseStatestringNoCloud extension: require inactive state; mutually exclusive with expectedActiveVersion.
expectedActiveVersionstringNoAuthoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "activeRelease": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/program/runs/get

program/runs/get: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed

program/runs/get: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/runs/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","runId":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
runIdstringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/program/runs/list

program/runs/list: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed

program/runs/list: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/runs/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","page":0,"size":0,"search":"string","status":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.
statusstringNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/program/test

program/test: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed

program/test: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/test' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"document":{"name":"string","description":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"],"sourceBindings":["value"]},"input":{"checkpointSample":"string","data":"string","previewWrites":false,"sourceSamples":{},"topicSamples":{}},"phase":"input"}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
documentobjectYesRuntimeStreamDefinition. See the referenced schema in the Schemas section.
inputobjectYesRuntimeProgramTestInput. See the referenced schema in the Schemas section.
phasestringYesNot specified in OpenAPI
entryIdstringNoNot specified in OpenAPI
expectedSourceRevisionintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/program/versions/list

program/versions/list: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed

program/versions/list: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/publish

Publish an immutable Stream release on its execution node

Creates an immutable release from the current draft; expectedRevision is the current Stream revision. Full programs use their native publishing lifecycle. Verify runtime state and delivered data after the call. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/publish' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/releases/get

Read one immutable shared transform release with parameter/output schemas; processor code is redacted

Read one immutable shared transform release with parameter/output schemas; processor code is redacted. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/releases/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","release":0}'

application/json

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
releaseintegerYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "streamId": "string",
    "release": 0,
    "publishedAt": 0,
    "definition": {
      "name": "value",
      "description": "value",
      "script": "value",
      "sources": "value",
      "sourceBindings": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/releases/list

List immutable shared transform releases in descending release order; this is not a program deployment version

List immutable shared transform releases in descending release order; this is not a program deployment version. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/releases/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","page":0,"size":0,"search":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "asOf": 0,
    "complete": false,
    "hasMore": false,
    "nextCursor": "string",
    "nextPage": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/releases/restore

Restore a shared release into the draft on the server, retaining hidden processor code; does not change enabled Bindings or publish a new release

Restore a shared release into the draft on the server, retaining hidden processor code; does not change enabled Bindings or publish a new release. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/releases/restore' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","release":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/runs/get

Read a redacted native Stream run receipt.

Read a redacted native Stream run receipt. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/runs/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"runId":"string"}'

application/json

FieldTypeRequiredDescription
runIdstringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/runs/list

List Stream runs

List Stream runs. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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","page":0,"size":0,"search":"string","cursor":"string"}'

application/json

FieldTypeRequiredDescription
idstringNoObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.
cursorstringNoOpaque creation-time/id continuation bound; retain the same id and native filters. Mutually exclusive with page when nonempty.
statusstringNoNot specified in OpenAPI
sourceIdstringNoNot specified in OpenAPI
topicIdstringNoNot specified in OpenAPI
modelstringNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "items": [
      "value"
    ],
    "list": [
      "value"
    ],
    "nextCursor": "string",
    "page": 0,
    "size": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/sample/test

Test Stream Samples

Test a Stream entry in an isolated Worker. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
documentobjectYesCloudStreamDocument. See the referenced schema in the Schemas section.
entryIdstringYesNot specified in OpenAPI
inputobjectYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "status": "completed",
    "errorCode": "string",
    "snapshot": "string",
    "entryId": "string",
    "data": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/streams/update

Update stream metadata only; omitted fields are preserved

Updates only the basic information listed by this operation. Omitted fields retain their values. Schema, connections, drafts and grants use their own operations. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","name":"value","description":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

Sources

Source APIs

POST/uns/sources:replace

Replace Source configuration

Replaces the complete configuration under current domain rules. System fields are read-only. Credential, release, associated-resource and authorization checks still apply.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources:replace' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","expectedRevision":0,"replacement":{"adapter":"http-api","config":{"connection":"value"},"description":"string","name":"string","schemaVersion":1},"dryRun":false,"idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
replacementobjectYesSourceData. See the referenced schema in the Schemas section.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "matchedCount": 0,
    "modifiedCount": 0,
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation counts or object, plus commit or validation status.application/json
defaultOperation failed. See error for the reason, rollback state and recovery advice.application/json

POST/uns/sources/credentials/list

List Edge-local shared Source credential references; never returns secrets; string Source IDs

List Edge-local shared Source credential references; never returns secrets; string Source IDs. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/credentials/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/devices/list

List currently attached physical devices on this Edge without reading input. Returns a fresh snapshot with checkedAt, revision, completeness and existing Source bindings. Serial discovery does not imply a supported serial acquisition driver.

List currently attached physical devices on this Edge without reading input. Returns a fresh snapshot with checkedAt, revision, completeness and existing Source bindings. Serial discovery does not imply a supported serial acquisition driver. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
kindstringNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/discover

discover: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed

discover: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/documents/create

Create a Source document

Create a Source document. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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","connectTimeoutMs":"value"}},"credentials":{"kind":"basic","username":"string","secret":"string","values":{},"certificateFileId":"string"},"items":[{"id":"value","document":"value","credentials":"value"}]}'

application/json

FieldTypeRequiredDescription
dryRunbooleanNoNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
documentobjectNoSourceDefinition. See the referenced schema in the Schemas section.
credentialsobjectNoSourceCredentials. See the referenced schema in the Schemas section.
itemsarray<object>NoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/documents/credentials/update

Set or rotate encrypted credentials on the native Edge, including MQTT mTLS, file access and SQL login.

Set or rotate encrypted credentials on the native Edge, including MQTT mTLS, file access and SQL login. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringYesUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
expectedRevisionintegerYesExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
credentialsobjectYesSourceCredentials. See the referenced schema in the Schemas section.
confirmedImpactRevisionstringNoDependency 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.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/documents/delete

Delete a native Source using its current revision and dependency impact confirmation. Stops future connections and acquisition without a separate disable step; history is retained.

Delete a native Source using its current revision and dependency impact confirmation. Stops future connections and acquisition without a separate disable step; history is retained. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
expectedRevisionintegerYesExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
confirmedImpactRevisionstringNoDependency 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.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/documents/get

Read a Source document

Read a Source document. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idstringYesPositive decimal int64 identifier; always a string on the wire.
viewstringNosummary requires only read permission and omits scripts and connection settings. full or an omitted value requires management permission. API Keys also require full_access, and MCP requires the corresponding management scope.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "sourceType": "string",
    "catalogId": "aws-iot-core"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/documents/list

List Source documents

List Source documents. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
searchstringNoNot specified in OpenAPI
protocolstringNoNot specified in OpenAPI
healthstringNoNot specified in OpenAPI
archivedbooleanNoNot specified in OpenAPI
includeDocumentbooleanNoFalse returns safe summaries for viewers. True additionally requires current Source manage permission and returns full native editor documents, including opaque references.
desiredStatestringNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "list": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/documents/oauth/complete

Complete the native OAuth flow with its stored one-time state.

Complete the native OAuth flow with its stored one-time state. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only, without committing. Validation does not reserve resources; execution checks them again. OAuth state creation and token exchange require execution. A preview is rejected.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
statestringYesNot specified in OpenAPI
codestringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/documents/oauth/start

Start native OAuth authorization; secrets remain encrypted on the Source installation.

Start native OAuth authorization; secrets remain encrypted on the Source installation. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only, without committing. Validation does not reserve resources; execution checks them again. OAuth state creation and token exchange require execution. A preview is rejected.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
redirectUristringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/documents/state/update

Enable or disable Source connections with revision and dependency confirmation; configuration, Stream documents and history are retained.

Enable or disable Source connections with revision and dependency confirmation; configuration, Stream documents and history are retained. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
dryRunbooleanYesNot specified in OpenAPI
idstringYesNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI
desiredStatestringYesNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
confirmedImpactRevisionstringNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/documents/update

Update a Source document

Update a Source document. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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","connectTimeoutMs":"value"}}}'

application/json

FieldTypeRequiredDescription
dryRunbooleanNoNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
idstringNoPositive decimal int64 identifier; always a string on the wire.
expectedRevisionintegerNoNot specified in OpenAPI
documentobjectNoSourceDefinition. See the referenced schema in the Schemas section.
confirmedImpactRevisionstringNoCloud 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.
patchobjectNoSourceDefinitionPatch. See the referenced schema in the Schemas section.
itemsarray<object>NoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/history

Read Source revision history

Read durable revision history for a local Source. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
beforeRevisionintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "sourceID": "string",
    "currentRevision": 0,
    "deleted": 1,
    "total": 0,
    "missingRevisionCount": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/impact

Assess Source change impact

Assess Source change impact. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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","connectTimeoutMs":"value"}},"offset":0}'

application/json

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI
actionstringYesNot specified in OpenAPI
documentobjectNoSourceDefinition. See the referenced schema in the Schemas section.
offsetintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
impactRevisionstringNoOpaque exact-intent confirmation from sourceImpact. Never inferred, synthesized or refreshed automatically.
patchobjectNoSourceDefinitionPatch. See the referenced schema in the Schemas section.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/observations/get

Read Source observations

Read Source observations. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
viewstringNosummary returns only the latest durable admission time for each requested revision; full preserves the 24-hour counters.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/opcua/endpoints

Discover SignAndEncrypt with Basic256Sha256 at the supplied OPC UA address. Does not create a Source or device session, accept certificates or write device data.

Discover SignAndEncrypt with Basic256Sha256 at the supplied OPC UA address. Does not create a Source or device session, accept certificates or write device data. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/opcua/endpoints' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"endpoint":"string"}'

application/json

FieldTypeRequiredDescription
endpointstringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "endpoint": "string",
    "securityMode": "SignAndEncrypt",
    "securityPolicy": "Basic256Sha256"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/opcua/points/discover

Browse child nodes or describe up to 100 explicit OPC UA Variable references on the selected Source. The selectors are mutually exclusive.

Browse child nodes or describe up to 100 explicit OPC UA Variable references on the selected Source. The selectors are mutually exclusive. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/opcua/points/discover' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"id":"string","expectedRevision":0,"parentResourceRef":"string"}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
expectedRevisionintegerYesExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
parentResourceRefstringNoNot specified in OpenAPI
resourceRefsarray<string>NoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/probe

probe: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed

probe: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed. Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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,"mode":"connection"}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
timeoutMsintegerYesNot specified in OpenAPI
modestringNoconnection performs a bounded lightweight check; data explicitly validates a configured readable resource without writing business data. Only enabled Sources are periodically checked every 10 minutes on their owning runtime. Cloud never schedules checks for Edge references. Data checks never replace connection health.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "mode": "connection",
    "health": "healthy",
    "stage": "string",
    "errorCode": "string",
    "message": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesExecuted checks return SourceCheckResult fields; dryRun returns validated:true and sideEffects:false without performing a check.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/protocols/list

protocols/list: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed

protocols/list: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

This request body has no declared object fields in OpenAPI.

Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/resources/catalog

Describe the read-only resources declared on this native Source, including mode, parameters, result shape and required permission.

Describe the read-only resources declared on this native Source, including mode, parameters, result shape and required permission. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
configRevisionintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "id": "string",
    "configRevision": 0,
    "protocol": "string",
    "sourceType": "string",
    "resources": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/resources/preview

Perform one bounded read on an enabled native Source at the specified revision. Use the instance catalog for supported parameters and output fields.

Perform one bounded read on an enabled native Source at the specified revision. Use the instance catalog for supported parameters and output fields. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
configRevisionintegerYesNot specified in OpenAPI
resourceRefstringYesNot specified in OpenAPI
paramsobjectNoNot specified in OpenAPI
timeoutMsintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "resourceRef": "string",
    "configRevision": 0,
    "collectedAt": 0,
    "items": [
      "value"
    ],
    "returned": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/resources/scan

Read one bounded native page of a resource declared by this Source. Pass the issued opaque cursor unchanged with the same parameters, caller, resource and revision.

Read one bounded native page of a resource declared by this Source. Pass the issued opaque cursor unchanged with the same parameters, caller, resource and revision. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
configRevisionintegerYesNot specified in OpenAPI
resourceRefstringYesNot specified in OpenAPI
cursorstringNoNot specified in OpenAPI
paramsobjectNoNot specified in OpenAPI
limitintegerYesUse the resource catalog bounds. Only Salesforce object queries support a native page of 200.
timeoutMsintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "resourceRef": "string",
    "configRevision": 0,
    "collectedAt": 0,
    "items": [
      "value"
    ],
    "nextCursor": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/runtime/get

Read observed Source and per-Stream acquisition health, pagination checkpoint, counts and last error; no payloads or credentials

Read observed Source and per-Stream acquisition health, pagination checkpoint, counts and last error; no payloads or credentials. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
Responses
200401403404409413422500503504
Success response example

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"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/runtime/read

Read one Modbus range on this Edge using an enabled native Source at exactly configRevision; fixed read operation; endpoint, credentials and unit ID remain local; no subscriptions or writes

Read one Modbus range on this Edge using an enabled native Source at exactly configRevision; fixed read operation; endpoint, credentials and unit ID remain local; no subscriptions or writes. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/runtime/read' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","configRevision":0,"range":{"id":"string","table":"holding-register","address":0,"quantity":0},"timeoutMs":0}'

application/json

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
configRevisionintegerYesNot specified in OpenAPI
rangeobjectYesNot specified in OpenAPI
timeoutMsintegerYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/sources/validate

validate: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed

validate: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed. Reads are constrained by the current caller's permissions.

Request parameters
NameLocationTypeRequiredDescription
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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","connectTimeoutMs":"value"}}}'

application/json

FieldTypeRequiredDescription
documentobjectYesSourceDefinition. See the referenced schema in the Schemas section.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

Time Series Data

Append Samples, query multiple Records, aggregate, read latest values and delete within explicit time ranges. Latest values always refer to actual Samples.

POST/uns/collections/{collectionId}/records/{recordId}/samples

Append Samples

Uses collectionId, dryRun, an items array and optional mode. Defaults to whole-batch rollback. allowPartial=true independently commits items and returns results in input order, with error.code/path/reason/repair per failure. For partiallyCommitted, inspect summary and jobId. dryRun validates only. Idempotency keys and Record revisions are optional. Query accepted jobs by jobId; never automatically resubmit an unknown outcome. Sample requests require recordId alongside collectionId and items; items contain time/data and optional quality and cannot override the parent Record.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
recordIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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":[{"time":"value","quality":"value","data":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "jobId": "string",
    "nextIndex": 0,
    "replayed": false,
    "results": [
      "value"
    ],
    "status": "committed"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/samples:aggregate

Aggregate Samples

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
recordIdsarray<string>NoIn rows mode, accepts up to 20 IDs. Omission uses the authorized scope. In series mode, IDs are required and are paginated in request order.
fromintegerYesInclusive start time in Unix milliseconds.
tointegerYesExclusive end time in Unix milliseconds. Must be greater than from.
pipelinearray<object>YesNot specified in OpenAPI
limitintegerNoNot specified in OpenAPI
pageobjectNoUnsV2PipelinePage. See the referenced schema in the Schemas section.
resultFormatstringNorows returns a list of aggregation documents. series paginates the supplied Record IDs. Each outer item is {recordId, items}, with an empty items array if no Samples match.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "items": [
      "value"
    ],
    "pageInfo": {
      "mode": "value",
      "hasMore": "value",
      "nextCursor": "value",
      "nextPage": "value",
      "snapshotScope": "value"
    },
    "total": {
      "count": "value",
      "capped": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudDataPage. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/samples:delete

Delete Samples for specified Records within a time range

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
recordIdsarray<string>YesList of Record IDs, with no Collection IDs.
fromintegerYesTime range start, Unix milliseconds.
tointegerYesTime range end, Unix milliseconds.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "deletedCount": 0,
    "dryRun": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/samples:deleteExact

Delete explicit Sample identities atomically

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:deleteExact' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"samples":[{"recordId":"value","id":"value","time":"value"}],"dryRun":false,"idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
samplesarray<object>YesNot specified in OpenAPI
dryRunbooleanNoNot specified in OpenAPI
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "deletedCount": 0,
    "missingCount": 0,
    "dryRun": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/samples:find

Find Samples

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
recordIdsarray<string>NoNot specified in OpenAPI
fromintegerYesInclusive start time in Unix milliseconds.
tointegerYesExclusive end time in Unix milliseconds. Must be greater than from.
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
limitintegerNoNot specified in OpenAPI
cursorstringNoNot specified in OpenAPI
pageobjectNoUnsV2PipelinePage. See the referenced schema in the Schemas section.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "items": [
      "value"
    ],
    "pageInfo": {
      "mode": "value",
      "hasMore": "value",
      "nextCursor": "value",
      "nextPage": "value",
      "snapshotScope": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudSamplePage. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/uns/collections/{collectionId}/samples:latest

Read the latest Sample of each Record

4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
X-Fleet-Node-IdheaderstringNoRegistered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding.
Request body
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

FieldTypeRequiredDescription
recordIdsarray<string>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "series": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status.application/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

Instance Identity and Users

Shared by platform integrations and business Apps subject to permissions; Apps require the corresponding platformPermissions. identity/get verifies the current Key identity; info/get reads platform information. users/list and projects/members/list require platform permissions. Listing users does not grant an App access to their business data.

POST/apps/access-members/list

List App access members

An App Key can only query deployed-role members of its own App. Grant timestamps come from current effective direct or group grants. Older grants without a recorded time return grantedAt=0; timestamp filtering involving these members returns 503. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
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","roleKeys":["string"],"grantedAtStart":0,"grantedAtEnd":0,"scope":""}'

application/json

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
roleKeysarray<string>NoNot specified in OpenAPI
grantedAtStartinteger (int64)NoStart of the authorization period in Unix milliseconds.
grantedAtEndinteger (int64)NoEnd of the authorization period in Unix milliseconds.
scopestringNoNot specified in OpenAPI
pageinteger (int64)NoPage number. Uses page 1 when omitted or set to 0.
sizeinteger (int64)NoResults per page, up to 100. Uses 20 when omitted or set to 0.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "appId": "string",
    "published": 0,
    "productionVersionId": "string",
    "allActiveMembers": 0,
    "roles": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/auth/whoami

Read SDK caller identity

Returns the API Key's current identity and effective permissions. Request body may be omitted; a nonempty body requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/auth/whoami' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'

application/json

This request body has no declared object fields in OpenAPI.

Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "userID": 0,
    "userName": "string",
    "email": "string",
    "workspaceID": 0,
    "workspaceName": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle the status and error code; do not bypass permission failures.application/json
401Request failed. Handle the status and error code; do not bypass permission failures.application/json
403Request failed. Handle the status and error code; do not bypass permission failures.application/json
404Request failed. Handle the status and error code; do not bypass permission failures.application/json
409Request failed. Handle the status and error code; do not bypass permission failures.application/json
413Request failed. Handle the status and error code; do not bypass permission failures.application/json
415Request failed. Handle the status and error code; do not bypass permission failures.application/json
422Request failed. Handle the status and error code; do not bypass permission failures.application/json
429Request failed. Handle the status and error code; do not bypass permission failures.application/json
500Request failed. Handle the status and error code; do not bypass permission failures.application/json
503Request failed. Handle the status and error code; do not bypass permission failures.application/json
504Request failed. Handle the status and error code; do not bypass permission failures.application/json

POST/capabilities/discover

Discover capabilities available to the current identity

Read-only assessment of registered operations and platform prerequisites; does not replace target resource checks. Accepts only an empty JSON object (maximum 4 KiB), with no query parameters.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/capabilities/discover' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'

application/json

This request body has no declared object fields in OpenAPI.

Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "product": "cloud",
  "productVersion": "string",
  "contractVersion": "2.0",
  "apiContractVersions": [
    "string"
  ],
  "sdkContractVersions": [
    "string"
  ]
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
productobjectYesSee the referenced schema in the Schemas section.
productVersionstringNoSee the referenced schema in the Schemas section.
contractVersionobjectYesSee the referenced schema in the Schemas section.
apiContractVersionsarray<string>YesSee the referenced schema in the Schemas section.
sdkContractVersionsarray<string>YesSee the referenced schema in the Schemas section.
capabilitiesarray<object>YesSee the referenced schema in the Schemas section.
deprecationsarray<object>YesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle the status and error code; do not bypass permission failures.application/json
401Request failed. Handle the status and error code; do not bypass permission failures.application/json
403Request failed. Handle the status and error code; do not bypass permission failures.application/json
404Request failed. Handle the status and error code; do not bypass permission failures.application/json
409Request failed. Handle the status and error code; do not bypass permission failures.application/json
413Request failed. Handle the status and error code; do not bypass permission failures.application/json
415Request failed. Handle the status and error code; do not bypass permission failures.application/json
422Request failed. Handle the status and error code; do not bypass permission failures.application/json
429Request failed. Handle the status and error code; do not bypass permission failures.application/json
500Request failed. Handle the status and error code; do not bypass permission failures.application/json
503Request failed. Handle the status and error code; do not bypass permission failures.application/json
504Request failed. Handle the status and error code; do not bypass permission failures.application/json

POST/info

Read SDK platform information

No credentials required. Returns the API version, public MQTT address and registered public API capability families. capabilities describes route families, not caller authorization; read effective permissions through auth/whoami or platform/info/get. Request body may be omitted; a nonempty body requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/info' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'

application/json

This request body has no declared object fields in OpenAPI.

Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "name": "string",
    "version": "string",
    "mqttBroker": "string",
    "capabilities": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/mqtt-auth/create

Create ordinary MQTT credentials

Requires full_access and a non-App Key. The password is returned only on successful creation. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/mqtt-auth/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"name":"string","description":"string","clientIDRandomSuffixEnabled":false}'

application/json

FieldTypeRequiredDescription
namestringYesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
clientIDRandomSuffixEnabledbooleanNoNot specified in OpenAPI
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "id": 0,
    "name": "string",
    "clientID": "string",
    "username": "string",
    "password": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/mqtt-auth/delete

Delete ordinary MQTT credentials

Requires full_access and a non-App Key. System credentials are unaffected. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
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

FieldTypeRequiredDescription
idinteger (int64)YesRegular MQTT credential ID.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "success": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/platform/getMembers

List Workspace members

App callers receive only fields needed for directory use. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/platform/getMembers' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"keyword":"string","roleKey":"string","roles":["string"],"statuses":["string"],"updatedAtStart":"string"}'

application/json

FieldTypeRequiredDescription
keywordstringNoNot specified in OpenAPI
roleKeystringNoNot specified in OpenAPI
rolesarray<string>NoNot specified in OpenAPI
statusesarray<string>NoNot specified in OpenAPI
updatedAtStartstringNoNot specified in OpenAPI
updatedAtEndstringNoNot specified in OpenAPI
pageinteger (int64)NoPage number. Uses page 1 when omitted or set to 0.
sizeinteger (int64)NoResults per page, up to 100. Uses 20 when omitted or set to 0.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "list": [
      "value"
    ],
    "total": 0,
    "page": 0,
    "size": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/platform/identity/get

Read the current caller identity

Returns the trusted subject and grants associated with the API Key, never the secret. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/platform/identity/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'

application/json

This request body has no declared object fields in OpenAPI.

Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "userId": "string",
    "userName": "string",
    "authType": "string",
    "apiKeyId": "string",
    "appId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/platform/info/get

Read platform information

Reads current instance information without changing configuration. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/platform/info/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'

application/json

This request body has no declared object fields in OpenAPI.

Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "name": "string",
    "version": "string",
    "apiVersion": "v2",
    "capabilities": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/platform/projects/members/list

List project members

projectId is a positive decimal project ID string. The API Key owner must have access to this project. App Keys also require platform.projects.members.read. This operation neither adds members nor grants permissions. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/platform/projects/members/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"projectId":"string","page":0,"size":0}'

application/json

FieldTypeRequiredDescription
projectIdstringYesTarget project ID as a positive integer string.
pageinteger (int64)NoPage number. Uses page 1 when omitted or set to 0.
sizeinteger (int64)NoResults per page, up to 100. Uses 20 when omitted or set to 0.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "list": [
      "value"
    ],
    "total": 0,
    "page": 0,
    "size": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/platform/users/list

Find platform users by page

Searches users by text under the intersection of current Key and owner permissions. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/platform/users/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"search":"string","page":0,"size":0,"roleKeys":["string"],"statuses":["active"]}'

application/json

FieldTypeRequiredDescription
searchstringNoSearch text for supported fields such as usernames and display names.
pageinteger (int64)NoPage number. Uses page 1 when omitted or set to 0.
sizeinteger (int64)NoResults per page, up to 100. Uses 20 when omitted or set to 0.
roleKeysarray<string>NoMatches any specified platform role.
statusesarray<string>NoNot specified in OpenAPI
updatedAtStartstring (date-time)NoStart of the last-update time range, in RFC3339 format.
updatedAtEndstring (date-time)NoEnd of the last-update time range, in RFC3339 format.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "list": [
      "value"
    ],
    "total": 0,
    "page": 0,
    "size": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

Notifications

Shared by platform integrations and business Apps subject to permissions; Apps require the corresponding platformPermissions. send creates an inbox notification using a stable idempotency key; status/get reads the status of messages created by the same caller. Creation does not mean the recipient has read the message. Notifications are outside UNS batch transactions.

POST/notifications/get

Read SDK notification send status

Only reads messages created by the current API Key. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
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

FieldTypeRequiredDescription
messageIdstringYesNot specified in OpenAPI
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "messageId": "string",
  "type": "string",
  "status": "string",
  "createdAt": "string",
  "completedAt": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
messageIdstringYesSee the referenced schema in the Schemas section.
typestringYesSee the referenced schema in the Schemas section.
statusstringYesSee the referenced schema in the Schemas section.
createdAtstring (date-time)YesSee the referenced schema in the Schemas section.
completedAtstring (date-time)NoSee the referenced schema in the Schemas section.
errorCodestringNoSee the referenced schema in the Schemas section.
messagestringNoSee the referenced schema in the Schemas section.
recipientUserIdstringYesSee the referenced schema in the Schemas section.
recipientNamestringNoSee the referenced schema in the Schemas section.
channelsarray<object>YesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle the status and error code; do not bypass permission failures.application/json
401Request failed. Handle the status and error code; do not bypass permission failures.application/json
403Request failed. Handle the status and error code; do not bypass permission failures.application/json
404Request failed. Handle the status and error code; do not bypass permission failures.application/json
409Request failed. Handle the status and error code; do not bypass permission failures.application/json
413Request failed. Handle the status and error code; do not bypass permission failures.application/json
415Request failed. Handle the status and error code; do not bypass permission failures.application/json
422Request failed. Handle the status and error code; do not bypass permission failures.application/json
429Request failed. Handle the status and error code; do not bypass permission failures.application/json
500Request failed. Handle the status and error code; do not bypass permission failures.application/json
503Request failed. Handle the status and error code; do not bypass permission failures.application/json
504Request failed. Handle the status and error code; do not bypass permission failures.application/json

POST/notifications/list

Query SDK notification send history

Normally restricted to this Key. A personal Key with Workspace management permission can read instance send history. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"page":0,"size":0,"messageId":"string","recipientUserId":"string","status":""}'

application/json

FieldTypeRequiredDescription
pageinteger (int64)NoPage number.
sizeinteger (int64)NoResults per page.
messageIdstringNoNot specified in OpenAPI
recipientUserIdstringNoNot specified in OpenAPI
statusstringNoNot specified in OpenAPI
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "list": [
    {
      "messageId": "value",
      "type": "value",
      "status": "value",
      "createdAt": "value",
      "completedAt": "value"
    }
  ],
  "total": 0,
  "page": 0,
  "size": 0
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
listarray<object>YesSee the referenced schema in the Schemas section.
totalinteger (int64)YesSee the referenced schema in the Schemas section.
pageinteger (int64)YesSee the referenced schema in the Schemas section.
sizeinteger (int64)YesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle the status and error code; do not bypass permission failures.application/json
401Request failed. Handle the status and error code; do not bypass permission failures.application/json
403Request failed. Handle the status and error code; do not bypass permission failures.application/json
404Request failed. Handle the status and error code; do not bypass permission failures.application/json
409Request failed. Handle the status and error code; do not bypass permission failures.application/json
413Request failed. Handle the status and error code; do not bypass permission failures.application/json
415Request failed. Handle the status and error code; do not bypass permission failures.application/json
422Request failed. Handle the status and error code; do not bypass permission failures.application/json
429Request failed. Handle the status and error code; do not bypass permission failures.application/json
500Request failed. Handle the status and error code; do not bypass permission failures.application/json
503Request failed. Handle the status and error code; do not bypass permission failures.application/json
504Request failed. Handle the status and error code; do not bypass permission failures.application/json

POST/notifications/send

Send an inbox notification

The server derives sender from the trusted identity; clients cannot supply it. Retry with the same idempotencyKey and request. A sent status does not mean the recipient has read it. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/send' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"recipientUserId":"string","type":"inbox","title":"string","content":"string","idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
recipientUserIdstringYesRecipient user ID as a positive integer string to preserve large integer precision.
typestringNoNot specified in OpenAPI
titlestringYesNot specified in OpenAPI
contentstringYesNot specified in OpenAPI
idempotencyKeystringYesNot specified in OpenAPI
modestringNoNot specified in OpenAPI
linkstringNoBusiness link starting with http://, https://, or /. Credentials, protocol-relative URLs, and control characters are forbidden.
channelsarray<string>NoOmit or pass an empty array to send a silent inbox message. Enterprise accepts web/mobile metadata without sending external push notifications. The get operation returns not_configured for external channels. sent means the message was persisted in the local inbox.
sourcestringNoNot specified in OpenAPI
wechatEventRefstringNoNot specified in OpenAPI
senderobjectNoNot specified in OpenAPI
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "messageId": "string",
    "type": "string",
    "status": "string",
    "createdAt": "string",
    "completedAt": "string"
  },
  "messageId": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
messageIdstringYesSee the referenced schema in the Schemas section.
typestringNoSee the referenced schema in the Schemas section.
statusstringYesSee the referenced schema in the Schemas section.
createdAtstring (date-time)YesSee the referenced schema in the Schemas section.
completedAtstring (date-time)NoSee the referenced schema in the Schemas section.
errorCodestringNoSee the referenced schema in the Schemas section.
messagestringNoSee the referenced schema in the Schemas section.
recipientUserIdstringYesSee the referenced schema in the Schemas section.
recipientNamestringNoSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle the status and error code; do not bypass permission failures.application/json
401Request failed. Handle the status and error code; do not bypass permission failures.application/json
403Request failed. Handle the status and error code; do not bypass permission failures.application/json
404Request failed. Handle the status and error code; do not bypass permission failures.application/json
409Request failed. Handle the status and error code; do not bypass permission failures.application/json
413Request failed. Handle the status and error code; do not bypass permission failures.application/json
415Request failed. Handle the status and error code; do not bypass permission failures.application/json
422Request failed. Handle the status and error code; do not bypass permission failures.application/json
429Request failed. Handle the status and error code; do not bypass permission failures.application/json
500Request failed. Handle the status and error code; do not bypass permission failures.application/json
503Request failed. Handle the status and error code; do not bypass permission failures.application/json
504Request failed. Handle the status and error code; do not bypass permission failures.application/json

POST/notifications/status/get

Read notification send status

Only reads messageId values created by the current caller. Inaccessible messages do not reveal their existence. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/status/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"messageId":"string"}'

application/json

FieldTypeRequiredDescription
messageIdstringYesMessage ID returned by send.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "messageId": "string",
    "type": "string",
    "status": "string",
    "createdAt": "string",
    "completedAt": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

Files and Attachments

Shared by platform integrations and business Apps subject to permissions; Apps require the corresponding platformPermissions. POST operations are the JSON control plane. GET assets/files/url uses query parameters; GET assets/files/download returns 302/Location. Single file: obtain a signed form with uploads/create, then upload binary content directly to upload.url with upload.fields. Large file: multipart/create, obtain part PUT URLs with parts, upload parts, then submit their ETags with complete; use abort on failure. downloads/create returns a short-lived download URL. File permissions follow the authenticated caller; clients cannot impersonate App ownership.

POST/assets/files

Request an SDK file upload

Returns signed form fields. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileName":"string","contentType":"string","size":0,"visibility":"private","business":"string"}'

application/json

FieldTypeRequiredDescription
fileNamestringYesNonempty original filename. Disallowed extensions include html and php.
contentTypestringNoOptional file MIME type, such as application/pdf.
sizeinteger (int64)YesFile size in bytes.
visibilitystringNoWith private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use.
businessstringNoNot specified in OpenAPI
useBystringNoNot specified in OpenAPI
appInstanceIdstringNoNot specified in OpenAPI
sessionIdstringNoOptional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "fileId": 0,
    "filePath": "string",
    "fileUrl": "string",
    "postUrl": "string",
    "postFields": {}
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/assets/files/delete

Delete an SDK file

Deletes a file the caller may manage. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
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

FieldTypeRequiredDescription
filePathstringYesManaged file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "deleted": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

GET/assets/files/download

Download an SDK file

Checks file permissions and redirects to the download URL.

Request parameters
NameLocationTypeRequiredDescription
filePathquerystringYesNot specified in OpenAPI
responseContentDispositionquerystringNoNot specified in OpenAPI
Responses
302400401403404409413415422429500503504
Response status meanings
StatusMeaningMedia type
302Redirect to an authorized file URL.—
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/assets/files/multipart/abort

Abort an SDK multipart upload

Revokes the specified multipart session. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
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

FieldTypeRequiredDescription
fileKeystringYesFile identifier returned by multipart initialization.
uploadIdstringYesSession identifier returned by multipart initialization. Use it together with filePath exactly as returned.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "aborted": 1
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/assets/files/multipart/complete

Complete an SDK multipart upload

Submit part numbers and ETags after all parts are uploaded. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
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","uploadId":"string","parts":[{"partNumber":"value","etag":"value"}]}'

application/json

FieldTypeRequiredDescription
fileKeystringYesFile identifier returned by multipart initialization.
uploadIdstringYesSession identifier returned by multipart initialization. Use it together with filePath exactly as returned.
partsarray<object>YesNot specified in OpenAPI
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "filePath": "string",
    "fileUrl": "string",
    "sizeBytes": 0,
    "expiresAt": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/assets/files/multipart/init

Initialize an SDK multipart upload

Returns a file identity and multipart session. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/multipart/init' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileName":"string","contentType":"string","size":0,"visibility":"private","business":"string"}'

application/json

FieldTypeRequiredDescription
fileNamestringYesNonempty original filename. Disallowed extensions include html and php.
contentTypestringNoOptional file MIME type, such as application/pdf.
sizeinteger (int64)YesFile size in bytes.
visibilitystringNoWith private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use.
businessstringNoNot specified in OpenAPI
useBystringNoNot specified in OpenAPI
appInstanceIdstringNoNot specified in OpenAPI
sessionIdstringNoOptional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace.
partSizeinteger (int64)NoBytes.
bizIdstringNoNot specified in OpenAPI
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "fileKey": "string",
    "filePath": "string",
    "uploadId": "string",
    "partSize": 0,
    "partCount": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/assets/files/multipart/part-urls

Read SDK multipart upload links

Upload each part to its corresponding signed URL. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
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","uploadId":"string","partNumbers":[0]}'

application/json

FieldTypeRequiredDescription
fileKeystringYesFile identifier returned by multipart initialization.
uploadIdstringYesSession identifier returned by multipart initialization. Use it together with filePath exactly as returned.
partNumbersarray<integer (int64)>YesNot specified in OpenAPI
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "partUrls": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

GET/assets/files/url

Read an SDK file URL

Issues an access link after checking file permissions.

Request parameters
NameLocationTypeRequiredDescription
filePathquerystringYesNot specified in OpenAPI
expiredSecqueryinteger (int64)NoNot specified in OpenAPI
responseContentDispositionquerystringNoNot specified in OpenAPI
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "fileUrl": "string",
    "expiresAt": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/assets/upload

Request an SDK asset upload

Returns signed form fields; the storage service creates the file object identity. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/upload' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileName":"string","sizeBytes":0,"contentType":"string","size":0,"sha256":"string"}'

application/json

FieldTypeRequiredDescription
fileNamestringYesNonempty original filename. Disallowed extensions include html and php.
sizeBytesinteger (int64)YesDeclared file size in bytes. Direct and multipart uploads each support up to 1 GiB.
contentTypestringNoOptional file MIME type, such as application/pdf.
sizeinteger (int64)NoNot specified in OpenAPI
sha256stringNoNot specified in OpenAPI
storageKeystringNoNot specified in OpenAPI
isPublicbooleanNoNot specified in OpenAPI
businessstringNoNot specified in OpenAPI
useBystringNoNot specified in OpenAPI
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "filePath": "string",
    "fileUrl": "string",
    "postUrl": "string",
    "postFields": {}
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/files/delete

Delete a file

Deletes a file the current caller may manage. Use filePath returned by uploads/create or multipart/complete. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/delete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"filePath":"string"}'

application/json

FieldTypeRequiredDescription
filePathstringYesManaged file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "filePath": "string",
    "deleted": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/files/downloads/create

Create a file download link

Creates a time-limited download URL after checking file access. The URL is a temporary credential; do not expose it in public logs. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/downloads/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"filePath":"string","expiresInSeconds":0}'

application/json

FieldTypeRequiredDescription
filePathstringYesManaged file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding.
expiresInSecondsinteger (int64)NoRequested URL lifetime in seconds. Uses the server default when omitted or set to 0, with a maximum of 7 days.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "filePath": "string",
    "url": "string",
    "expiresAt": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/files/uploads/create

Create file upload credentials

Creates upload credentials only. The caller must still submit the file to upload.url with upload.fields and the upload.fileField file field. This response does not mean the file is uploaded. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/uploads/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileName":"string","contentType":"string","sizeBytes":0,"visibility":"private","sessionId":"string"}'

application/json

FieldTypeRequiredDescription
fileNamestringYesNonempty original filename. Disallowed extensions include html and php.
contentTypestringNoOptional file MIME type, such as application/pdf.
sizeBytesinteger (int64)YesDeclared file size in bytes. Direct and multipart uploads each support up to 1 GiB.
visibilitystringNoWith private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use.
sessionIdstringNoOptional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "fileId": "string",
    "filePath": "string",
    "upload": {
      "method": "value",
      "url": "value",
      "fields": "value",
      "fileField": "value"
    },
    "expiresAt": 0,
    "sizeBytes": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/files/uploads/multipart/abort

Abort a multipart upload

Cancels an unfinished multipart session. Use files/delete to delete a completed file. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/uploads/multipart/abort' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"filePath":"string","uploadId":"string"}'

application/json

FieldTypeRequiredDescription
filePathstringYesManaged file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding.
uploadIdstringYesSession identifier returned by multipart initialization. Use it together with filePath exactly as returned.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "filePath": "string",
    "aborted": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/files/uploads/multipart/complete

Complete a multipart upload

Submits part numbers and ETags only after all parts are uploaded. Associate filePath with business Records after success. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/uploads/multipart/complete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"filePath":"string","uploadId":"string","parts":[{"partNumber":"value","etag":"value"}]}'

application/json

FieldTypeRequiredDescription
filePathstringYesManaged file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding.
uploadIdstringYesSession identifier returned by multipart initialization. Use it together with filePath exactly as returned.
partsarray<object>YesNot specified in OpenAPI
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "fileId": "string",
    "filePath": "string",
    "url": "string",
    "sizeBytes": 0,
    "expiresAt": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/files/uploads/multipart/create

Initialize a multipart upload

Creates a multipart session. Split the file using returned partSizeBytes/partCount; the file is not uploaded yet. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/uploads/multipart/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileName":"string","contentType":"string","sizeBytes":0,"visibility":"private","sessionId":"string"}'

application/json

FieldTypeRequiredDescription
fileNamestringYesNonempty original filename. Disallowed extensions include html and php.
contentTypestringNoOptional file MIME type, such as application/pdf.
sizeBytesinteger (int64)YesDeclared file size in bytes. Direct and multipart uploads each support up to 1 GiB.
visibilitystringNoWith private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use.
sessionIdstringNoOptional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace.
partSizeBytesinteger (int64)NoRequested part size in bytes. Omit, set to 0, or supply less than 5 MiB to use 10 MiB. Use the actual part size returned in the response.
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "filePath": "string",
    "uploadId": "string",
    "partSizeBytes": 0,
    "partCount": 0,
    "expiresAt": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

POST/files/uploads/multipart/parts

Create multipart upload links

Obtains a separate signed URL for each partNumber. Save every uploaded part's ETag for complete. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/uploads/multipart/parts' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"filePath":"string","uploadId":"string","partNumbers":[0]}'

application/json

FieldTypeRequiredDescription
filePathstringYesManaged file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding.
uploadIdstringYesSession identifier returned by multipart initialization. Use it together with filePath exactly as returned.
partNumbersarray<integer (int64)>YesNot specified in OpenAPI
Responses
200400401403404409413415422429500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "list": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeinteger (int64)YesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it.application/json
400Request failed. Handle code/msg; do not bypass permission failures.application/json
401Request failed. Handle code/msg; do not bypass permission failures.application/json
403Request failed. Handle code/msg; do not bypass permission failures.application/json
404Request failed. Handle code/msg; do not bypass permission failures.application/json
409Request failed. Handle code/msg; do not bypass permission failures.application/json
413Request failed. Handle code/msg; do not bypass permission failures.application/json
415Request failed. Handle code/msg; do not bypass permission failures.application/json
422Request failed. Handle code/msg; do not bypass permission failures.application/json
429Request failed. Handle code/msg; do not bypass permission failures.application/json
500Request failed. Handle code/msg; do not bypass permission failures.application/json
503Request failed. Handle code/msg; do not bypass permission failures.application/json
504Request failed. Handle code/msg; do not bypass permission failures.application/json

Stream Requests

Discover contracts by public Request code and invoke them synchronously. Discovery and invocation permissions are independent. Apps also require current Stream policy and a grant for the frozen contract release; this does not grant Source/Stream management permissions.

POST/stream-requests/{requestCode}/describe

Describe a Stream Request contract

Requires stream.requests.read or stream.requests.manage. requestCode belongs only in the URL path; send {} as the body. Returns the active public contract itself, excluding internal Stream bindings. Content-Type: application/json. Body must be one valid UTF-8 object, maximum 1 MiB. Unknown/duplicate fields and query parameters are rejected. Errors are flat {errorCode,message}.

Request parameters
NameLocationTypeRequiredDescription
requestCodepathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/stream-requests/{requestCode}/describe' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'

application/json

This request body has no declared object fields in OpenAPI.

Responses
200400401403404409422429500502503504
Success response example

200 · application/json

{
  "code": "string",
  "name": "string",
  "description": "string",
  "contractVersion": "string",
  "inputSchema": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codestringYesSee the referenced schema in the Schemas section.
namestringYesSee the referenced schema in the Schemas section.
descriptionstringYesSee the referenced schema in the Schemas section.
contractVersionstringYesSee the referenced schema in the Schemas section.
inputSchemaobjectYesSee the referenced schema in the Schemas section.
outputSchemaobjectYesSee the referenced schema in the Schemas section.
sideEffectstringYesSee the referenced schema in the Schemas section.
idempotencystringYesSee the referenced schema in the Schemas section.
timeoutMsinteger (int64)YesSee the referenced schema in the Schemas section.
statusstringYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Flat public result, without a code/msg/requestId/data envelope.application/json
400STREAM_REQUEST_INVALID_INPUTapplication/json
401INVALID_CREDENTIALapplication/json
403STREAM_REQUEST_FORBIDDENapplication/json
404STREAM_REQUEST_NOT_FOUNDapplication/json
409STREAM_REQUEST_INACTIVE / IDEMPOTENCY_CONFLICTapplication/json
422STREAM_REQUEST_OUTPUT_INVALIDapplication/json
429STREAM_REQUEST_RATE_LIMITEDapplication/json
500STREAM_REQUEST_INTERNAL_ERRORapplication/json
502SOURCE_PROTOCOL_ERRORapplication/json
503STREAM_REQUEST_UNAVAILABLEapplication/json
504STREAM_REQUEST_RESULT_UNKNOWNapplication/json

POST/stream-requests/{requestCode}/invoke

Invoke a Stream Request

Requires stream.requests.invoke; write contracts also require stream.requests.write. Discovery permission is unnecessary. requestCode belongs only in the URL path. input is required; send null when there is no business input. Follow the contract idempotency policy. Success is a flat result and status is always succeeded. HTTP 504 / STREAM_REQUEST_RESULT_UNKNOWN means an unknown outcome: do not treat it as execution failure or automatically retry with a new idempotency key. Content-Type: application/json. Body must be one valid UTF-8 object, maximum 1 MiB. Unknown/duplicate fields and query parameters are rejected. Errors are flat {errorCode,message}.

Request parameters
NameLocationTypeRequiredDescription
requestCodepathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/stream-requests/{requestCode}/invoke' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"input":"string","idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
inputobjectYesRequired. Accepts any JSON value that conforms to the contract inputSchema. Pass null when there is no business input.
idempotencyKeystringNoUp to 128 UTF-8 bytes without surrounding whitespace. A write/required contract requires a nonempty, durable key. Replays must reuse the same key and input.
Responses
200400401403404409422429500502503504
Success response example

200 · application/json

{
  "code": "string",
  "contractVersion": "string",
  "result": "string",
  "runID": "string",
  "status": "succeeded"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codestringYesSee the referenced schema in the Schemas section.
contractVersionstringYesSee the referenced schema in the Schemas section.
resultobjectYesBusiness result that conforms to the contract outputSchema. May be null.
runIDstringYesSee the referenced schema in the Schemas section.
statusstringYesSee the referenced schema in the Schemas section.
replayedbooleanYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Flat public result, without a code/msg/requestId/data envelope.application/json
400STREAM_REQUEST_INVALID_INPUTapplication/json
401INVALID_CREDENTIALapplication/json
403STREAM_REQUEST_FORBIDDENapplication/json
404STREAM_REQUEST_NOT_FOUNDapplication/json
409STREAM_REQUEST_INACTIVE / IDEMPOTENCY_CONFLICTapplication/json
422STREAM_REQUEST_OUTPUT_INVALIDapplication/json
429STREAM_REQUEST_RATE_LIMITEDapplication/json
500STREAM_REQUEST_INTERNAL_ERRORapplication/json
502SOURCE_PROTOCOL_ERRORapplication/json
503STREAM_REQUEST_UNAVAILABLEapplication/json
504STREAM_REQUEST_RESULT_UNKNOWNapplication/json

POST/stream-requests/discover

Discover Stream Requests

Requires stream.requests.read or stream.requests.manage. Returns only visible active Request contracts, filtering by App grants before pagination and counting; the result is flat {total,list}. Content-Type: application/json. Body must be one valid UTF-8 object, maximum 1 MiB. Unknown/duplicate fields and query parameters are rejected. Errors are flat {errorCode,message}.

Request body
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,"size":0,"search":"string"}'

application/json

FieldTypeRequiredDescription
pageinteger (int64)NoUses page 1 when omitted or set to 0.
sizeinteger (int64)NoUses 20 when omitted or set to 0.
searchstringNoUp to 256 UTF-8 bytes.
Responses
200400401403404409422429500502503504
Success response example

200 · application/json

{
  "total": 0,
  "list": [
    {
      "code": "value",
      "name": "value",
      "description": "value",
      "contractVersion": "value",
      "inputSchema": "value"
    }
  ]
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
totalinteger (int64)YesSee the referenced schema in the Schemas section.
listarray<object>YesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Flat public result, without a code/msg/requestId/data envelope.application/json
400STREAM_REQUEST_INVALID_INPUTapplication/json
401INVALID_CREDENTIALapplication/json
403STREAM_REQUEST_FORBIDDENapplication/json
404STREAM_REQUEST_NOT_FOUNDapplication/json
409STREAM_REQUEST_INACTIVE / IDEMPOTENCY_CONFLICTapplication/json
422STREAM_REQUEST_OUTPUT_INVALIDapplication/json
429STREAM_REQUEST_RATE_LIMITEDapplication/json
500STREAM_REQUEST_INTERNAL_ERRORapplication/json
502SOURCE_PROTOCOL_ERRORapplication/json
503STREAM_REQUEST_UNAVAILABLEapplication/json
504STREAM_REQUEST_RESULT_UNKNOWNapplication/json

Fleet

Enterprise collaboration management; explicit cluster.edge.manage authorization required.

POST/fleet/rollouts/cancel

Stop dispatch of pending rollout steps

Requires a personal full-access API key explicitly granted cluster.edge.manage, and current user and Edge permissions. The Fleet Center rechecks the key before dispatch.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/fleet/rollouts/cancel' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"jobKey":"string"}'

application/json

FieldTypeRequiredDescription
jobKeystringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string",
  "error": {
    "code": "string",
    "stage": "string",
    "message": "string",
    "repair": "string",
    "path": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
errorobjectNoOptional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included.
Response status meanings
StatusMeaningMedia type
200Operation resultapplication/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/fleet/rollouts/create

Submit selected preflight targets with a stable idempotency key

Requires a personal full-access API key explicitly granted cluster.edge.manage, and current user and Edge permissions. The Fleet Center rechecks the key before dispatch.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/fleet/rollouts/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"previewId":"string","previewDigest":"string","approvedTargets":["string"],"impactConfirmations":[{"targetId":"value","sourceRef":"value","impactRevision":"value"}],"idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
previewIdstringYesNot specified in OpenAPI
previewDigeststringYesNot specified in OpenAPI
approvedTargetsarray<string>YesNot specified in OpenAPI
impactConfirmationsarray<object>NoNot specified in OpenAPI
idempotencyKeystringYesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string",
  "error": {
    "code": "string",
    "stage": "string",
    "message": "string",
    "repair": "string",
    "path": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
errorobjectNoOptional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included.
Response status meanings
StatusMeaningMedia type
200Operation resultapplication/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/fleet/rollouts/get

Read a rollout preview or durable job with target evidence

Requires a personal full-access API key explicitly granted cluster.edge.manage, and current user and Edge permissions. The Fleet Center rechecks the key before dispatch.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/fleet/rollouts/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"previewId":"string","jobKey":"string","page":0,"size":0,"evidenceTargetId":"string"}'

application/json

FieldTypeRequiredDescription
previewIdstringNoNot specified in OpenAPI
jobKeystringNoNot specified in OpenAPI
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
evidenceTargetIdstringNoWith jobKey, recheck late sample evidence for this expired target without retrying its deployment.
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string",
  "error": {
    "code": "string",
    "stage": "string",
    "message": "string",
    "repair": "string",
    "path": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
errorobjectNoOptional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included.
Response status meanings
StatusMeaningMedia type
200Operation resultapplication/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/fleet/rollouts/list

List the current operator’s Fleet rollout jobs or target history

Requires a personal full-access API key explicitly granted cluster.edge.manage, and current user and Edge permissions. The Fleet Center rechecks the key before dispatch.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/fleet/rollouts/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"page":0,"size":0,"status":"pending","view":"targets","nodeId":"string"}'

application/json

FieldTypeRequiredDescription
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
statusstringNoFilter by the job status in either view.
viewstringNoOmit for job summaries. Use targets for one history row per node in each job, newest job first.
nodeIdstringNoFilter by node in the targets view.
onlyIssuesbooleanNoIn the targets view, include only failed, expired, unknown, conflict, denied, waitingOffline and reconciling targets.
jobKeystringNoFilter by job in the targets view.
Responses
200401403404409413422500503504
Success response example

200 · application/json

"string"
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerNoSee the referenced schema in the Schemas section.
msgstringNoSee the referenced schema in the Schemas section.
requestIdstringNoSee the referenced schema in the Schemas section.
dataobjectNoSee the referenced schema in the Schemas section.
errorobjectNoOptional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included.
dataobjectNoFleetV2RolloutListResult. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation resultapplication/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/fleet/rollouts/preview

Preflight a bounded Fleet rollout and freeze target guards

Requires a personal full-access API key explicitly granted cluster.edge.manage, and current user and Edge permissions. The Fleet Center rechecks the key before dispatch.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/fleet/rollouts/preview' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"action":"saveConfig","config":{},"targets":[{"nodeId":"value","streamBinding":"value","streamDocument":"value","sourceBindings":"value","collectionBindings":"value"}],"taskExpiresAt":0}'

application/json

FieldTypeRequiredDescription
actionstringYesNot specified in OpenAPI
configobjectNoNot specified in OpenAPI
targetsarray<object>YesNot specified in OpenAPI
taskExpiresAtintegerNoNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string",
  "error": {
    "code": "string",
    "stage": "string",
    "message": "string",
    "repair": "string",
    "path": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
errorobjectNoOptional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included.
Response status meanings
StatusMeaningMedia type
200Operation resultapplication/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

POST/fleet/rollouts/retry

Wake selected recoverable rollout targets without changing intent

Requires a personal full-access API key explicitly granted cluster.edge.manage, and current user and Edge permissions. The Fleet Center rechecks the key before dispatch.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/fleet/rollouts/retry' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"jobKey":"string","targetIds":["string"]}'

application/json

FieldTypeRequiredDescription
jobKeystringYesNot specified in OpenAPI
targetIdsarray<string>YesNot specified in OpenAPI
Responses
200401403404409413422500503504
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string",
  "error": {
    "code": "string",
    "stage": "string",
    "message": "string",
    "repair": "string",
    "path": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
errorobjectNoOptional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included.
Response status meanings
StatusMeaningMedia type
200Operation resultapplication/json
401Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes.application/json
403Permission denied: request authorization; do not bypass Collection restrictions.application/json
404Object does not exist or is inaccessible.application/json
409Condition, revision or unique-key conflict: read the latest state and decide again.application/json
413Request or response exceeds a limit: narrow the scope without splitting an atomic business intent.application/json
422Invalid request: correct parameters using error.path and the repair advice.application/json
500Server error: query transaction status first when the outcome is unknown.application/json
503Temporarily unavailable: follow retry advice and retain the original idempotency key.application/json
504Query timeout: narrow the time range, joins or aggregation scope.application/json

Schemas

API field names, examples, and source descriptions follow the bundled English OpenAPI specification.

AppCollectionContext

FieldTypeRequiredDescription
aliasstringYesNot specified in OpenAPI
autoIndexesarray<object>YesNot specified in OpenAPI
collectionIdstringYesCollection ID owning the business Records and Samples.
descriptionstringNoNot specified in OpenAPI
directoryPatharray<string>YesNot specified in OpenAPI
indexStatusarray<object>YesRead-only index status: name/spec/state/error. Only ready means the declared physical index is usable. pending/building/failed cannot support business-key upsert. Mounted Collections have source-managed unique constraints.
indexesarray<object>NoUnified index declarations, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omit to retain; [] removes declarations. Fields omit data. Unique indexes apply only to Record B-trees, build asynchronously and must be checked through indexStatus.
namestringYesNot specified in OpenAPI
ownerAppIdstringNoNot specified in OpenAPI
permissionsarray<string>YesNot specified in OpenAPI
recordSchemaobjectYesSchema. See the referenced schema in the Schemas section.
revisionintegerYesNot specified in OpenAPI
sampleSchemaobjectNoSchema. See the referenced schema in the Schemas section.
sampleSchemaModestringNoNot specified in OpenAPI
slowShapesarray<object>YesNot specified in OpenAPI
ttlobjectYesNot specified in OpenAPI

AppContext

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
collectionsarray<object>YesNot specified in OpenAPI
dataStatestringYesNot specified in OpenAPI
limitsobjectYesAppDataLimits. See the referenced schema in the Schemas section.
namestringYesNot specified in OpenAPI
platformPermissionsarray<string>YesExplicit platform capabilities; default none; current App grants intersect with key and issuer resources
revisionintegerYesNot specified in OpenAPI

AppData

collections[] explicitly grants collectionId, alias and record:read/write/delete or sample:read/write; App N:M Collection; grants cannot exceed issuer permissions; roles never add collection permissions; platformPermissions[] grants explicit platform capabilities independently of Collection grants; omitted or empty means no platform authorization; Platform capabilities must be allowlisted and within issuer resources; effective access intersects current App grants, key resources and user resources; Platform operations recheck the active App and its current grants on every request; removing a grant immediately prevents its use by existing keys; navigation.topicIds are entry points only, not data grants; members[] references platform users; roleIds reference this App's roles, members N:M roles; MCP manages Collection grants/navigation, preserves members/roles; credential APIs are separate; MCP has no consent for platformPermissions

FieldTypeRequiredDescription
collectionsarray<object>YesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
entryobjectNoAppEntry. See the referenced schema in the Schemas section.
membersarray<object>NoNot specified in OpenAPI
namestringYesUnique display name; no surrounding whitespace
navigationobjectYesTopics associated with the App. This retained field name does not describe a page menu and grants no data permissions.
platformPermissionsarray<string>NoExplicit platform capabilities; default none; current App grants intersect with key and issuer resources
rolesarray<object>NoNot specified in OpenAPI
schemaVersionintegerYesNot specified in OpenAPI
statusstringNoNot specified in OpenAPI
streamInteractionobjectNoAppStreamPolicy. See the referenced schema in the Schemas section.

AppDataCountLimits

FieldTypeRequiredDescription
defaultMaxintegerYesNot specified in OpenAPI
maxintegerYesNot specified in OpenAPI

AppDataLimits

FieldTypeRequiredDescription
concurrencyobjectYesNot specified in OpenAPI
countobjectYesAppDataCountLimits. See the referenced schema in the Schemas section.
getobjectYesNot specified in OpenAPI
idempotencyWindowMsintegerYesNot specified in OpenAPI
queryBatchobjectYesNot specified in OpenAPI
subscribeobjectYesNot specified in OpenAPI
totalobjectYesAppDataCountLimits. See the referenced schema in the Schemas section.
transactionobjectYesNot specified in OpenAPI
ttlobjectYesNot specified in OpenAPI

AppDataView

collections[] explicitly grants collectionId, alias and record:read/write/delete or sample:read/write; App N:M Collection; grants cannot exceed issuer permissions; roles never add collection permissions; platformPermissions[] grants explicit platform capabilities independently of Collection grants; omitted or empty means no platform authorization; Platform capabilities must be allowlisted and within issuer resources; effective access intersects current App grants, key resources and user resources; Platform operations recheck the active App and its current grants on every request; removing a grant immediately prevents its use by existing keys; navigation.topicIds are entry points only, not data grants; members[] references platform users; roleIds reference this App's roles, members N:M roles; MCP manages Collection grants/navigation, preserves members/roles; credential APIs are separate; MCP has no consent for platformPermissions

FieldTypeRequiredDescription
collectionsarray<object>YesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
entryobjectNoAppEntry. See the referenced schema in the Schemas section.
membersarray<object>NoNot specified in OpenAPI
namestringYesUnique display name; no surrounding whitespace
navigationobjectYesTopics associated with the App. This retained field name does not describe a page menu and grants no data permissions.
platformPermissionsarray<string>NoExplicit platform capabilities; default none; current App grants intersect with key and issuer resources
rolesarray<object>NoNot specified in OpenAPI
schemaVersionintegerYesNot specified in OpenAPI
statusstringNoNot specified in OpenAPI
streamInteractionobjectNoAppStreamPolicy. See the referenced schema in the Schemas section.

AppEntry

FieldTypeRequiredDescription
basePathstringNoNot specified in OpenAPI
environmentstringNoNot specified in OpenAPI
pathstringYesNot specified in OpenAPI

AppKeyCreated

FieldTypeRequiredDescription
apiKeystringYesNot specified in OpenAPI
appIdstringYesNot specified in OpenAPI
keyIdstringYesNot specified in OpenAPI
resourceKeysarray<string>YesNot specified in OpenAPI

AppKeyRevoked

FieldTypeRequiredDescription
keyIdstringYesNot specified in OpenAPI
revokedbooleanYesNot specified in OpenAPI

AppRequestGrantView

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
principalKindstringYesNot specified in OpenAPI
principalIDstringYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
bindingDigeststringYesNot specified in OpenAPI
snapshotTokenstringYesNot specified in OpenAPI
recipientEligibleintegerYesNot specified in OpenAPI
recipientActionsarray<string>YesNot specified in OpenAPI
activationSupportedintegerYesNot specified in OpenAPI
registeredintegerYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
activeintegerYesNot specified in OpenAPI
actionsarray<string>YesNot specified in OpenAPI
targetsarray<object>YesNot specified in OpenAPI
createdPrincipalstringYesNot specified in OpenAPI
updatedPrincipalstringYesNot specified in OpenAPI
createdTimeintegerYesNot specified in OpenAPI
updatedTimeintegerYesNot specified in OpenAPI

AppSessionIdentity

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
roleIdsarray<string>YesNot specified in OpenAPI
rolesarray<object>YesNot specified in OpenAPI
sessionExpireAtstringYesNot specified in OpenAPI
userobjectYesAppSessionUser. See the referenced schema in the Schemas section.

AppSessionUser

FieldTypeRequiredDescription
nickNamestringYesNot specified in OpenAPI
userIdstringYesNot specified in OpenAPI
userNamestringYesNot specified in OpenAPI

AppStreamMessageTopicPermission

FieldTypeRequiredDescription
publishbooleanYesNot specified in OpenAPI
subscribebooleanYesNot specified in OpenAPI
topicstringYesNot specified in OpenAPI

AppStreamPolicy

FieldTypeRequiredDescription
messageTopicsarray<object>NoNot specified in OpenAPI
platformPermissionsarray<string>YesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
versionstringYesNot specified in OpenAPI

AppStreamPolicyView

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
versionstringYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
platformPermissionsarray<string>YesNot specified in OpenAPI
messageTopicsarray<object>NoNot specified in OpenAPI
authorityStatusstringYesNot specified in OpenAPI
appNamestringYesNot specified in OpenAPI

AutoIndexFieldView

FieldTypeRequiredDescription
directionstringYesNot specified in OpenAPI
fieldstringYesNot specified in OpenAPI
formstringYesNot specified in OpenAPI

AutoIndexReason

FieldTypeRequiredDescription
callsintegerYesNot specified in OpenAPI
p95BeforeMsnumberYesNot specified in OpenAPI
shapeHashstringYesNot specified in OpenAPI
timeoutsintegerYesNot specified in OpenAPI

AutoIndexSpecView

FieldTypeRequiredDescription
fieldsarray<object>YesNot specified in OpenAPI
pathsarray<string>YesNot specified in OpenAPI

AutoIndexView

FieldTypeRequiredDescription
createdAtintegerYesNot specified in OpenAPI
errorstringNoNot specified in OpenAPI
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
lastUsedAtintegerYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
originstringYesNot specified in OpenAPI
p95AfterMsnumberYesNot specified in OpenAPI
physicalNamesarray<string>YesNot specified in OpenAPI
pinnedintegerYesNot specified in OpenAPI
reasonobjectYesAutoIndexReason. See the referenced schema in the Schemas section.
replacesarray<string>YesNot specified in OpenAPI
specobjectYesAutoIndexSpecView. See the referenced schema in the Schemas section.
statestringYesNot specified in OpenAPI
takenOverintegerYesNot specified in OpenAPI

CloudAutoIndex

An index automatically maintained by the platform for Record queries.

FieldTypeRequiredDescription
idstringYesObject ID (string), obtained from a discovery or read endpoint; do not use a name as an ID. Automatic index task ID (autoIndexes[].id).
namestringYesPrimary physical index name. Newly created indexes use the qa_ prefix; adopted existing indexes retain their original names.
physicalNamesarray<string>YesAll physical index names. An adopted existing regular index may have a pair ending in _j and _v; a newly created index has only one.
specobjectYesCloudAutoIndexSpec. See the referenced schema in the Schemas section.
statestringYesreplacing means the index is being replaced by a better index and remains usable until replacement completes.
errorstringNoError code when state=failed.
originstringYesNot specified in OpenAPI
takenOverintegerYes1 means adopted from an existing regular declared index; 0 means newly created by the platform.
pinnedintegerYes1 means pinned: the platform will neither delete nor rebuild the index; 0 means unpinned.
reasonobjectYesReason for creation; null for an adopted existing index.
p95AfterMsnumberYesp95 duration of the same query after the index has been ready for 24 hours, in milliseconds; null if not yet reassessed.
replacesarray<string>YesID of the old index replaced by this index.
createdAtintegerYesTask creation time, in Unix milliseconds.
lastUsedAtintegerYesLast time the index was observed being used by a query, based on daily snapshots, in Unix milliseconds; null if no observation exists.

CloudAutoIndexDisabledSpec

An index specification that has been disabled and will no longer be created automatically by the platform.

FieldTypeRequiredDescription
specKeystringYesSpecification key (columns, directions, and notation). Use the same fields when enabling it.
specobjectYesCloudAutoIndexSpec. See the referenced schema in the Schemas section.
disabledAtintegerYesTime disabled, in Unix milliseconds.

CloudAutoIndexDisableReq

FieldTypeRequiredDescription
collectionIdstringYesCollection ID for the business records and samples.
fieldsarray<object>YesSpecification to disable or enable, taken from autoIndexes[].spec.fields or disabledAutoIndexSpecs[].spec.fields.
actionstringYesdisable deletes existing automatic indexes with the same specification and prevents their automatic recreation; enable restores automatic management.

CloudAutoIndexDisableResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

CloudAutoIndexField

A column in an automatic index.

FieldTypeRequiredDescription
fieldstringYesBusiness field path, using the same notation as an indexes declaration, without the data. prefix.
directionstringYesNot specified in OpenAPI
formstringYesjson: a filter column for equality, $in, or range conditions, compared using original JSON values; scalar: a sort column compared as scalar values, with numbers and booleans compared by type.

CloudAutoIndexPinReq

FieldTypeRequiredDescription
collectionIdstringYesCollection ID for the business records and samples.
indexIdstringYesAutomatic index task ID (autoIndexes[].id).
actionstringYespin pins the index: the platform will neither delete nor rebuild it; unpin removes the pin.

CloudAutoIndexPinResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudAutoIndex. See the referenced schema in the Schemas section.

CloudAutoIndexReason

Query category for which the index was created. Contains only the query shape and statistics, without query values.

FieldTypeRequiredDescription
shapeHashstringYesQuery shape hash, corresponding to slowShapes[].shapeHash.
callsintegerYesNumber of calls in the statistics window before index creation.
p95BeforeMsnumberYesp95 duration before index creation, in milliseconds.
timeoutsintegerYesNumber of QUERY_TIMEOUT errors in the statistics window before index creation.

CloudAutoIndexSpec

Automatic index specification: at most 3 columns, with equality columns first, then sort columns, and at most one range column last.

FieldTypeRequiredDescription
pathsarray<string>YesField paths of the columns, in the same order as fields.
fieldsarray<object>YesNot specified in OpenAPI

CloudDataPage

Output documents from the aggregation pipeline, without Record/Sample wrapping. Fields are determined by pipeline.

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
pageInfoobjectYesCloudPageInfo. See the referenced schema in the Schemas section.
totalobjectNoNot specified in OpenAPI

CloudDistinctPage

FieldTypeRequiredDescription
modestringNoNot specified in OpenAPI
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI

CloudEdgeSourceStateUpdateReq

FieldTypeRequiredDescription
dryRunbooleanYesNot specified in OpenAPI
idstringYesNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI
desiredStatestringYesNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
confirmedImpactRevisionstringNoNot specified in OpenAPI

CloudNullableRecordDocument

Ordinary business Record. Business fields are in data; system properties are siblings. filter/projection use bare business fields and _id/_meta.*, independently of this response object's paths. lock describes only an active lease and never returns its token.

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
collectionIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
createdAtintegerYesUnix milliseconds.
updatedAtintegerYesUnix milliseconds.
sourceIdstringYesNot specified in OpenAPI
sourceTimeintegerYesUnix milliseconds.
lockobjectNoCloudRecordLockView. See the referenced schema in the Schemas section.

CloudNullableSampleDocument

A standard sample object, uniquely identified by collectionId, recordId, and time. id and time have a one-to-one correspondence for references using Cloud's {recordId,id,time} triple. Business fields are in data; time, quality, record identity, and available source information are at the same level as data.

FieldTypeRequiredDescription
idstringYesSample ID, unique within the same Record; Enterprise derives it from time as a decimal string of Unix milliseconds.
collectionIdstringYesNot specified in OpenAPI
recordIdstringYesNot specified in OpenAPI
timeintegerYesUnix milliseconds.
receivedAtintegerYesUnix milliseconds.
qualitystringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
sourceIdstringYesNot specified in OpenAPI
streamIdstringNoNot specified in OpenAPI
bindingIdstringNoNot specified in OpenAPI

CloudPageInfo

FieldTypeRequiredDescription
modestringYesNot specified in OpenAPI
hasMorebooleanYesNot specified in OpenAPI
nextCursorstringYesNot specified in OpenAPI
nextPageintegerYesNot specified in OpenAPI
snapshotScopestringYesNot specified in OpenAPI

CloudRecordLeaseGrant

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
tokenstringYesNot specified in OpenAPI
expiresAtintegerYesUnix milliseconds.
fenceintegerYesNot specified in OpenAPI
recordobjectYesRecordDocument. See the referenced schema in the Schemas section.

CloudRecordLockView

FieldTypeRequiredDescription
labelstringYesNot specified in OpenAPI
expiresAtintegerYesUnix milliseconds.
fenceintegerYesNot specified in OpenAPI
sinceintegerYesUnix milliseconds.

CloudRecordPage

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
pageInfoobjectYesCloudPageInfo. See the referenced schema in the Schemas section.
totalobjectNoNot specified in OpenAPI

CloudSamplePage

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
pageInfoobjectYesCloudPageInfo. See the referenced schema in the Schemas section.

CloudSlowQueryAdvice

The platform's decision for this query shape.

FieldTypeRequiredDescription
codestringYesDecision: indexed means covered by an existing index; building means index creation is in progress (see indexId); observing means index creation criteria have not been met and observation continues; notIndexable means the conditions cannot be accelerated with an index and the query must be rewritten; collectionTooSmall means the collection is too small; writeHeavy means writes outweigh reads; quotaFull means the index quota is full; disabled means the specification is disabled; cooldown means this specification was deleted within the last 7 days; adviseOnly means recommendations only, without execution; deferred means size or disk usage limits were exceeded, so only recommendations are provided. New values may be added; treat unknown values as observing.
indexIdstringNoRelated automatic index ID; omitted if none.

CloudSlowQueryShape

Slow query shape: contains only field paths and statistics, without query values.

FieldTypeRequiredDescription
shapeHashstringYesQuery shape hash.
opstringYesQuery type. findPage and queryBatch are counted as find or count; $lookup joins are counted as lookup.
eqarray<string>YesFields with equality conditions.
inarray<string>YesFields with $in conditions.
rangearray<string>YesFields with range conditions ($gt, $gte, $lt, $lte).
sortarray<object>YesSort fields and directions.
noIndexablearray<string>YesCondition operators that cannot be accelerated with an index, such as $regex, $ne, and $or.
callsintegerYesNumber of calls in the last 24 hours.
p95MsnumberYesp95 duration in the last 24 hours, in milliseconds, estimated from a histogram.
timeoutsintegerYesNumber of QUERY_TIMEOUT errors in the last 24 hours.
adviceobjectYesCloudSlowQueryAdvice. See the referenced schema in the Schemas section.

CloudSlowQuerySortField

FieldTypeRequiredDescription
fieldstringYesNot specified in OpenAPI
directionstringYesNot specified in OpenAPI

CloudSourceDevicesListReq

FieldTypeRequiredDescription
kindstringNoNot specified in OpenAPI

CloudSourceDiscoverReq

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI

CloudSourceDocumentCreateReq

Create or update a single Source document or an atomic items batch. Each item may provide write-only native credentials under Source credential management authority. New credentials require an idempotency key. Connection fields are top-level; existing credentials use document.credentialRef.

FieldTypeRequiredDescription
dryRunbooleanNoNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
documentobjectNoSourceDefinition. See the referenced schema in the Schemas section.
credentialsobjectNoSourceCredentials. See the referenced schema in the Schemas section.
itemsarray<object>NoNot specified in OpenAPI

CloudSourceDocumentGetReq

FieldTypeRequiredDescription
idstringYesPositive decimal int64 identifier; always a string on the wire.
viewstringNosummary requires only read permission and omits scripts and connection settings. full or an omitted value requires management permission. API Keys also require full_access, and MCP requires the corresponding management scope.

CloudSourceDocumentListReq

FieldTypeRequiredDescription
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
searchstringNoNot specified in OpenAPI
protocolstringNoNot specified in OpenAPI
healthstringNoNot specified in OpenAPI
archivedbooleanNoNot specified in OpenAPI
includeDocumentbooleanNoFalse returns safe summaries for viewers. True additionally requires current Source manage permission and returns full native editor documents, including opaque references.
desiredStatestringNoNot specified in OpenAPI

CloudSourceDocumentUpdateReq

Update a single Source or atomic items batch using a complete document or patch with CAS. Credential material is not accepted here; use credentials/update.

FieldTypeRequiredDescription
dryRunbooleanNoNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
idstringNoPositive decimal int64 identifier; always a string on the wire.
expectedRevisionintegerNoNot specified in OpenAPI
documentobjectNoSourceDefinition. See the referenced schema in the Schemas section.
confirmedImpactRevisionstringNoCloud 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.
patchobjectNoSourceDefinitionPatch. See the referenced schema in the Schemas section.
itemsarray<object>NoNot specified in OpenAPI

CloudSourceImpactReq

Inspect Source update, delete, enable, disable or credential-rotation dependencies. Only update accepts exactly one document or patch. Other actions never include document, patch or secrets. Follow offset/size with the same impactRevision snapshot, review dependencies and explicitly confirm the resulting token.

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI
actionstringYesNot specified in OpenAPI
documentobjectNoSourceDefinition. See the referenced schema in the Schemas section.
offsetintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
impactRevisionstringNoOpaque exact-intent confirmation from sourceImpact. Never inferred, synthesized or refreshed automatically.
patchobjectNoSourceDefinitionPatch. See the referenced schema in the Schemas section.

CloudSourceObservationsGetReq

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
viewstringNosummary returns only the latest durable admission time for each requested revision; full preserves the 24-hour counters.

CloudSourceResourceCatalogReq

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
configRevisionintegerNoNot specified in OpenAPI

CloudSourceResourceReadReq

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
configRevisionintegerYesNot specified in OpenAPI
resourceRefstringYesNot specified in OpenAPI
paramsobjectNoNot specified in OpenAPI
timeoutMsintegerNoNot specified in OpenAPI

CloudSourceResourceScanReq

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
configRevisionintegerYesNot specified in OpenAPI
resourceRefstringYesNot specified in OpenAPI
cursorstringNoNot specified in OpenAPI
paramsobjectNoNot specified in OpenAPI
limitintegerYesUse the resource catalog bounds. Only Salesforce object queries support a native page of 200.
timeoutMsintegerNoNot specified in OpenAPI

CloudStreamDocument

Shared Stream script and Source bindings; Cloud deployment additionally exposes model, entries and messages.

FieldTypeRequiredDescription
namestringYesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
modelstringNoNot specified in OpenAPI
scriptobjectYesStreamScript. See the referenced schema in the Schemas section.
sourcesarray<object>NoNot specified in OpenAPI
entriesarray<object>NoNot specified in OpenAPI
messagesarray<object>NoNot specified in OpenAPI
sourceBindingsarray<object>NoNot specified in OpenAPI
extensionsobjectNoNot specified in OpenAPI

CloudStreamDocumentCreateReq

FieldTypeRequiredDescription
dryRunbooleanNoNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
documentobjectNoCloudStreamDocument. See the referenced schema in the Schemas section.
programobjectNoRuntimeStreamDefinition. See the referenced schema in the Schemas section.
expectedSourceRevisionintegerNoNot specified in OpenAPI

CloudStreamDocumentDisableReq

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI
dryRunbooleanYesNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
expectedActiveVersionstringYesAuthoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence.

CloudStreamDocumentGetReq

FieldTypeRequiredDescription
idstringYesPositive decimal int64 identifier; always a string on the wire.
viewstringNosummary requires only read permission and omits scripts and connection settings. full or an omitted value requires management permission. API Keys also require full_access, and MCP requires the corresponding management scope.

CloudStreamDocumentUpdateReq

FieldTypeRequiredDescription
dryRunbooleanNoNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
idstringYesPositive decimal int64 identifier; always a string on the wire.
expectedRevisionintegerNoNot specified in OpenAPI
documentobjectNoCloudStreamDocument. See the referenced schema in the Schemas section.
programobjectNoRuntimeStreamDefinition. See the referenced schema in the Schemas section.
expectedSourceRevisionintegerNoNot specified in OpenAPI

CloudStreamDocumentValidateReq

FieldTypeRequiredDescription
documentobjectNoCloudStreamDocument. See the referenced schema in the Schemas section.
idstringNoStable current Stream ID when validating edits. Omit for new drafts; names never identify which active routes to exclude.
programobjectNoRuntimeStreamDefinition. See the referenced schema in the Schemas section.
expectedSourceRevisionintegerNoNot specified in OpenAPI

CloudStreamEntry

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
kindstringYesNot specified in OpenAPI
configobjectNoNot specified in OpenAPI
topicstringNoNot specified in OpenAPI
requestobjectNoCloudStreamRequestDefinition. See the referenced schema in the Schemas section.

CloudStreamMessageDeclaration

FieldTypeRequiredDescription
topicstringYesNot specified in OpenAPI
accessstringYesNot specified in OpenAPI

CloudStreamProgramDeleteReq

FieldTypeRequiredDescription
dryRunbooleanYesNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI
idstringYesPositive decimal int64 identifier; always a string on the wire.
expectedRevisionintegerNoNot specified in OpenAPI

CloudStreamProgramListReq

FieldTypeRequiredDescription
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
searchstringNoNot specified in OpenAPI
sourceIdstringNoPositive decimal int64 identifier; always a string on the wire.
modelstringNoNot specified in OpenAPI
statusstringNoNot specified in OpenAPI
archivedbooleanNoNot specified in OpenAPI

CloudStreamRequestDefinition

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
contractVersionstringYesNot specified in OpenAPI
inputSchemaobjectYesNot specified in OpenAPI
outputSchemaobjectYesNot specified in OpenAPI
sideEffectstringYesNot specified in OpenAPI
idempotencystringYesNot specified in OpenAPI
timeoutMsintegerYesNot specified in OpenAPI
statusstringNoNot specified in OpenAPI

CloudWriteError

FieldTypeRequiredDescription
indexintegerYesNot specified in OpenAPI
idstringNoNot specified in OpenAPI
errorobjectYesFault. See the referenced schema in the Schemas section.

CollectionDescription

FieldTypeRequiredDescription
collectionIdstringYesCollection ID owning the business Records and Samples.
descriptionstringYesNot specified in OpenAPI
fieldsarray<object>YesNot specified in OpenAPI
indexStatusarray<object>YesRead-only index status: name/spec/state/error. Only ready means the declared physical index is usable. pending/building/failed cannot support business-key upsert. Mounted Collections have source-managed unique constraints.
indexesarray<object>YesUnified index declarations, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omit to retain; [] removes declarations. Fields omit data. Unique indexes apply only to Record B-trees, build asynchronously and must be checked through indexStatus.
metadataNoticestringYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
recordGrainstringNoNot specified in OpenAPI
recordSchemaobjectYesSchema. See the referenced schema in the Schemas section.
relationshipsarray<object>YesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
sampleGrainstringNoNot specified in OpenAPI
sampleSchemaobjectNoSchema. See the referenced schema in the Schemas section.
sampleSchemaModestringNoNot specified in OpenAPI
autoIndexesarray<object>NoNot specified in OpenAPI
slowShapesarray<object>NoNot specified in OpenAPI
disabledAutoIndexSpecsarray<object>NoNot specified in OpenAPI

CollectionRelationship

FieldTypeRequiredDescription
cardinalitystringYesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
namestringYesNot specified in OpenAPI
sourceFieldstringYesNot specified in OpenAPI
targetCollectionIdstringYesNot specified in OpenAPI
targetFieldstringYesNot specified in OpenAPI

CollectionSemantics

FieldTypeRequiredDescription
fieldsarray<object>NoNot specified in OpenAPI
recordGrainstringNoNot specified in OpenAPI
relationshipsarray<object>NoNot specified in OpenAPI
sampleGrainstringNoNot specified in OpenAPI

DiscoveredField

FieldTypeRequiredDescription
aggregationNotestringNoNot specified in OpenAPI
descriptionstringYesNot specified in OpenAPI
enumarray<object>NoNot specified in OpenAPI
formatstringNoNot specified in OpenAPI
kindstringYesNot specified in OpenAPI
pathstringYesNot specified in OpenAPI
requiredbooleanYesNot specified in OpenAPI
typestringYesNot specified in OpenAPI
unitstringYesNot specified in OpenAPI

DiscoveryCollection

FieldTypeRequiredDescription
collectionIdstringYesCollection ID owning the business Records and Samples.
descriptionstringYesNot specified in OpenAPI
hasSamplesbooleanNoNot specified in OpenAPI
namestringYesNot specified in OpenAPI
recordGrainstringNoNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
sampleGrainstringNoNot specified in OpenAPI

DiscoveryResult

FieldTypeRequiredDescription
asOfintegerNoCursor traversal cutoff in Unix milliseconds; not a retained database snapshot.
completebooleanYesTrue only when this response contains the entire query result; a final page alone is not complete.
hasMorebooleanYesContinue with nextCursor in cursor mode, otherwise nextPage.
listarray<object>YesNot specified in OpenAPI
nextCursorstringNoNot specified in OpenAPI
nextPageintegerNoNot specified in OpenAPI
pageintegerYesPage number, starting at 1.
sizeintegerYesItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
snapshotScopestringYesthisRequestOnly uses independent request snapshots; boundedLive limits cursor traversal by asOf but does not preserve row versions across requests.
totalintegerYesMatching row count; null when includeTotal=false.
totalKnownbooleanNoNot specified in OpenAPI
truncatedbooleanYesNot specified in OpenAPI

EdgeCollectionSyncConfig

FieldTypeRequiredDescription
modestringYesNot specified in OpenAPI
collectionIdsarray<string>YesNot specified in OpenAPI

EdgeUploadPolicyConfig

{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "immediate"
          ]
        }
      },
      "required": [
        "mode"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "periodic"
          ]
        },
        "flushIntervalMs": {
          "type": "integer",
          "minimum": 1000,
          "maximum": 3600000
        }
      },
      "required": [
        "mode",
        "flushIntervalMs"
      ]
    }
  ]
}

Fault

FieldTypeRequiredDescription
candidatesarray<object>NoNot specified in OpenAPI
codestringYesNot specified in OpenAPI
conditionIndexintegerNoNot specified in OpenAPI
detailsarray<object>NoNot specified in OpenAPI
executionstringNoNot specified in OpenAPI
objectIdstringNoNot specified in OpenAPI
objectKindstringNoNot specified in OpenAPI
opIdstringNoOperation identifier unique within this transaction, used for dependencies and result references.
pathstringNoNot specified in OpenAPI
queryIdstringNoIdentifier unique within this query batch, used to match results.
reasonstringNoNot specified in OpenAPI
repairstringNoNot specified in OpenAPI
retryAdviceobjectNoRetryAdvice. See the referenced schema in the Schemas section.
retryablebooleanYesNot specified in OpenAPI
rolledBackbooleanNoNot specified in OpenAPI
retryobjectNoNot specified in OpenAPI

FieldBinding

FieldTypeRequiredDescription
collectionIdobjectYesUnsV2Identity. See the referenced schema in the Schemas section.
displayNamestringNoNot specified in OpenAPI
fieldPathstringYesNot specified in OpenAPI
kindstringYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
recordIdobjectYesUnsV2Identity. See the referenced schema in the Schemas section.

FieldSemantics

FieldTypeRequiredDescription
aggregationNotestringYesNot specified in OpenAPI
kindstringYesNot specified in OpenAPI
pathstringYesNot specified in OpenAPI

FileDirectory

FieldTypeRequiredDescription
extensionsarray<string>YesNot specified in OpenAPI
formatstringYesNot specified in OpenAPI
idstringYesUser-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.
pathstringYesNot specified in OpenAPI

FileSelection

FieldTypeRequiredDescription
idstringYesUser-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.
pathstringYesNot specified in OpenAPI
tablesarray<string>NoOmit for a byte resource, or select QC2000 tables from a SQLite snapshot.

FileSourceOptions

FieldTypeRequiredDescription
caCertificatestringNoNot specified in OpenAPI
directoriesarray<object>NoNot specified in OpenAPI
resourcesarray<object>NoNot specified in OpenAPI
sshHostKeystringNoNot specified in OpenAPI
connectTimeoutMsintegerNoDNS and TCP connect timeout (ms).

FleetV2Envelope

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
errorobjectNoOptional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included.

FleetV2RolloutCancelRequest

FieldTypeRequiredDescription
jobKeystringYesNot specified in OpenAPI

FleetV2RolloutCreateRequest

FieldTypeRequiredDescription
previewIdstringYesNot specified in OpenAPI
previewDigeststringYesNot specified in OpenAPI
approvedTargetsarray<string>YesNot specified in OpenAPI
impactConfirmationsarray<object>NoNot specified in OpenAPI
idempotencyKeystringYesNot specified in OpenAPI

FleetV2RolloutGetRequest

FieldTypeRequiredDescription
previewIdstringNoNot specified in OpenAPI
jobKeystringNoNot specified in OpenAPI
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
evidenceTargetIdstringNoWith jobKey, recheck late sample evidence for this expired target without retrying its deployment.

FleetV2RolloutHistoryRow

FieldTypeRequiredDescription
jobKeystringYesNot specified in OpenAPI
jobStatusstringYesNot specified in OpenAPI
actionstringYesNot specified in OpenAPI
startedTimeintegerYesJob start time in Unix milliseconds. Uses creation time while a job has no start time.
targetobjectYesFleetV2RolloutHistoryTarget. See the referenced schema in the Schemas section.

FleetV2RolloutHistoryTarget

FieldTypeRequiredDescription
targetIdstringYesNot specified in OpenAPI
nodeIdstringYesNot specified in OpenAPI
generationstringYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
deadlineAtintegerYesNot specified in OpenAPI
attemptintegerYesNot specified in OpenAPI
resultobjectYesNot specified in OpenAPI

FleetV2RolloutJobSummary

FieldTypeRequiredDescription
idintegerYesNot specified in OpenAPI
jobKeystringYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI

FleetV2RolloutListRequest

FieldTypeRequiredDescription
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
statusstringNoFilter by the job status in either view.
viewstringNoOmit for job summaries. Use targets for one history row per node in each job, newest job first.
nodeIdstringNoFilter by node in the targets view.
onlyIssuesbooleanNoIn the targets view, include only failed, expired, unknown, conflict, denied, waitingOffline and reconciling targets.
jobKeystringNoFilter by job in the targets view.

FleetV2RolloutListResult

FieldTypeRequiredDescription
listarray<object>YesRows have the same shape throughout a page, as selected by the request view.
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI

FleetV2RolloutPreviewRequest

FieldTypeRequiredDescription
actionstringYesNot specified in OpenAPI
configobjectNoNot specified in OpenAPI
targetsarray<object>YesNot specified in OpenAPI
taskExpiresAtintegerNoNot specified in OpenAPI

FleetV2RolloutRetryRequest

FieldTypeRequiredDescription
jobKeystringYesNot specified in OpenAPI
targetIdsarray<string>YesNot specified in OpenAPI

Grant

FieldTypeRequiredDescription
aliasstringYesNot specified in OpenAPI
collectionIdobjectYesUnsV2Identity. See the referenced schema in the Schemas section.
permissionsarray<string>YesNot specified in OpenAPI

HTTPConnection

FieldTypeRequiredDescription
anonymousbooleanNoNot specified in OpenAPI
authenticationstringNoNot specified in OpenAPI
caCertificatestringNoNot specified in OpenAPI
headersobjectNoNot specified in OpenAPI
oauthobjectNoOAuthConfig. See the referenced schema in the Schemas section.
parametersobjectNoNot specified in OpenAPI
portintegerNoNot specified in OpenAPI
responseHeaderTimeoutMsintegerNoResponse header timeout (ms).

IndexSpec

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.

FieldTypeRequiredDescription
expireAfterSecondsintegerNoNot specified in OpenAPI
kindstringNoNot specified in OpenAPI
pathstringNoBare business field path; _id and _meta.* cannot be declared as business indexes.
pathsarray<string>NoNot specified in OpenAPI
targetstringNoNot specified in OpenAPI
uniquebooleanNoNot specified in OpenAPI

IndexState

FieldTypeRequiredDescription
errorstringNoNot specified in OpenAPI
managedBystringYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
specobjectYesIndexSpec. See the referenced schema in the Schemas section.
statestringYesNot specified in OpenAPI

Member

FieldTypeRequiredDescription
roleIdsarray<string>YesNot specified in OpenAPI
userIdstringYesNot specified in OpenAPI

MetadataBulkDeleteOne

FieldTypeRequiredDescription
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.

MetadataBulkInsertOne

FieldTypeRequiredDescription
idstringNoNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

MetadataBulkReplaceOne

FieldTypeRequiredDescription
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
replacementobjectYesNot specified in OpenAPI
upsertbooleanNoSupported for single-resource updates and replacements. The filter must specify equality on _id, and the new configuration must be complete and valid. A deleted object with the same ID is never restored automatically.

MetadataBulkRestoreOne

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.

MetadataBulkResult

FieldTypeRequiredDescription
indexintegerYesNot specified in OpenAPI
insertedIdstringNoNot specified in OpenAPI
matchedCountintegerNoNot specified in OpenAPI
modifiedCountintegerNoNot specified in OpenAPI
deletedCountintegerNoNot specified in OpenAPI
restoredCountintegerNoNot specified in OpenAPI
upsertedIdstringNoNot specified in OpenAPI
valueobjectNoMetadataNullableDocument. See the referenced schema in the Schemas section.
errorobjectNoFault. See the referenced schema in the Schemas section.

MetadataBulkUpdateOne

FieldTypeRequiredDescription
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
updateobjectYesSupports only $set, $unset, and $setOnInsert. Configuration paths omit the data. prefix. System fields are read-only. An array update replaces the whole field.
upsertbooleanNoSupported for single-resource updates and replacements. The filter must specify equality on _id, and the new configuration must be complete and valid. A deleted object with the same ID is never restored automatically.

MetadataCollectionInput

Writable configuration. The server defaults schemaVersion to 1; unknown fields are rejected.

FieldTypeRequiredDescription
descriptionstringNoNot specified in OpenAPI
indexesarray<object>NoUnified index declarations, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omit to retain; [] removes declarations. Fields omit data. Unique indexes apply only to Record B-trees, build asynchronously and must be checked through indexStatus.
namestringYesUnique display name; no surrounding whitespace
recordSchemaobjectYesSchema. See the referenced schema in the Schemas section.
sampleSchemaobjectNoSchema. See the referenced schema in the Schemas section.
sampleSchemaModestringNoEach Record may declare its Sample schema in data.sampleSchema. Records without a declaration use the Collection sampleSchema.
schemaVersionintegerNoNot specified in OpenAPI
semanticsobjectNoCollectionSemantics. See the referenced schema in the Schemas section.
parentIdobjectNoNot specified in OpenAPI

MetadataDirectoryInput

Writable configuration. The server defaults schemaVersion to 1; unknown fields are rejected.

FieldTypeRequiredDescription
descriptionstringNoNot specified in OpenAPI
namestringYesUnique display name; no surrounding whitespace
parentIdobjectNoNot specified in OpenAPI
schemaVersionintegerNoNot specified in OpenAPI

MetadataDocument

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
idstringYesNot specified in OpenAPI
originNodeIdstringNoFleet origin node identity for automatically synchronized Collections. Does not change edit permissions.
mountIdstringYesSource identifier of the mounted resource; configuration is read-only when nonempty.
revisionintegerYesNot specified in OpenAPI
createdAtintegerYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI
deletedAtintegerYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

MetadataNullableDocument

FieldTypeRequiredDescription
kindstringNoNot specified in OpenAPI
idstringNoNot specified in OpenAPI
originNodeIdstringNoFleet origin node identity for automatically synchronized Collections. Does not change edit permissions.
mountIdstringNoSource identifier of the mounted resource; configuration is read-only when nonempty.
revisionintegerNoNot specified in OpenAPI
createdAtintegerNoNot specified in OpenAPI
updatedAtintegerNoNot specified in OpenAPI
deletedAtintegerNoNot specified in OpenAPI
dataobjectNoNot specified in OpenAPI

MetadataPage

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
pageInfoobjectYesCloudPageInfo. See the referenced schema in the Schemas section.

MetadataTopicInput

Writable configuration. The server defaults schemaVersion to 1; unknown fields are rejected.

FieldTypeRequiredDescription
collectionIdobjectNoUnsV2Identity. See the referenced schema in the Schemas section.
descriptionstringNoNot specified in OpenAPI
fieldsarray<object>NoNot specified in OpenAPI
namestringYesUnique display name; no surrounding whitespace
parentIdobjectNoNot specified in OpenAPI
schemaVersionintegerNoNot specified in OpenAPI
viewModestringYesNot specified in OpenAPI

MetadataTransactionOperation

FieldTypeRequiredDescription
opIdstringYesNot specified in OpenAPI
actionstringYesNot specified in OpenAPI
kindstringYesNot specified in OpenAPI
idstringNoNot specified in OpenAPI
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
dataobjectNoNot specified in OpenAPI
updateobjectNoSupports only $set, $unset, and $setOnInsert. Configuration paths omit the data. prefix. System fields are read-only. An array update replaces the whole field.
replacementobjectNoNot specified in OpenAPI
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
dependsOnarray<string>NoNot specified in OpenAPI

MetadataTransactionResult

FieldTypeRequiredDescription
opIdstringYesNot specified in OpenAPI
insertedIdstringNoNot specified in OpenAPI
matchedCountintegerNoNot specified in OpenAPI
modifiedCountintegerNoNot specified in OpenAPI
deletedCountintegerNoNot specified in OpenAPI
restoredCountintegerNoNot specified in OpenAPI
upsertedIdstringNoNot specified in OpenAPI
valueobjectNoMetadataNullableDocument. See the referenced schema in the Schemas section.

ModbusOptions

FieldTypeRequiredDescription
pollIntervalMsintegerNoNot specified in OpenAPI
rangesarray<object>NoNot specified in OpenAPI
unitIdintegerYesNot specified in OpenAPI

ModbusRange

FieldTypeRequiredDescription
addressintegerYesNot specified in OpenAPI
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
quantityintegerYesNot specified in OpenAPI
tablestringYesNot specified in OpenAPI
unitIdintegerNoNot specified in OpenAPI
writablebooleanNoNot specified in OpenAPI

MQTTOptions

FieldTypeRequiredDescription
caCertificatestringNoNot specified in OpenAPI
clientIdstringNoNot specified in OpenAPI
correlationFieldstringNoNot specified in OpenAPI
packetEnvelopebooleanNoNot specified in OpenAPI
qosintegerNoNot specified in OpenAPI
replyTopicstringNoNot specified in OpenAPI
replyTopicFieldstringNoNot specified in OpenAPI
requestTopicstringNoNot specified in OpenAPI
serverSubscribeTopicsarray<string>NoNot specified in OpenAPI
subscriptionsobjectNoNot specified in OpenAPI
topicFiltersarray<string>NoNot specified in OpenAPI
devicePublishTopicsarray<string>NoManaged server logical topic filters; availability and the combined topic budget are defined by the target protocol catalog.
deviceSubscribeTopicsarray<string>NoManaged server logical topic filters; availability and the combined topic budget are defined by the target protocol catalog.
publishTopicsarray<string>NoNot specified in OpenAPI
deviceIdentitybooleanNoNot specified in OpenAPI
payloadFormatstringNoNot specified in OpenAPI
keepAliveSecondsintegerNoKeepalive (seconds). Zero disables it.

OAuthConfig

FieldTypeRequiredDescription
authorizationUrlstringNoNot specified in OpenAPI
clientAuthenticationstringYesNot specified in OpenAPI
clientIdstringYesNot specified in OpenAPI
grantTypestringNoNot specified in OpenAPI
scopesstringNoNot specified in OpenAPI
tokenUrlstringYesNot specified in OpenAPI

OpcuaAcquisition

FieldTypeRequiredDescription
streamIdstringYesNot specified in OpenAPI
versionIdstringYesNot specified in OpenAPI
entryIdstringYesNot specified in OpenAPI
sourceIdstringYesNot specified in OpenAPI
configRevisionintegerYesNot specified in OpenAPI
latestobjectNoOpcuaAcquisitionObservation. See the referenced schema in the Schemas section.
lastFailureobjectNoOpcuaAcquisitionObservation. See the referenced schema in the Schemas section.
batchesarray<object>NoNot specified in OpenAPI

OpcuaAcquisitionObservation

FieldTypeRequiredDescription
sourceIdstringYesNot specified in OpenAPI
configRevisionintegerYesNot specified in OpenAPI
entryIdstringNoNot specified in OpenAPI
methodstringYesNot specified in OpenAPI
scopestringYesNot specified in OpenAPI
stagestringYesNot specified in OpenAPI
observedAtintegerYesNot specified in OpenAPI
codestringNoNot specified in OpenAPI
messagestringNoNot specified in OpenAPI
readBatchobjectNoOpcuaReadBatch. See the referenced schema in the Schemas section.

OPCUAOptions

FieldTypeRequiredDescription
nodeIdsarray<string>NoNot specified in OpenAPI
samplingIntervalMsintegerNoNot specified in OpenAPI
securityModestringYesNot specified in OpenAPI
securityPolicystringYesNot specified in OpenAPI
serverCertificatestringNoNot specified in OpenAPI
serverNodesarray<object>NoNot specified in OpenAPI
requestTimeoutMsintegerNoClient UA service request timeout in milliseconds. Zero or absent uses the 6000 ms default.
sessionTimeoutMsintegerNoRequested client session inactivity timeout in milliseconds. Zero or absent requests 600000 ms. The server may revise the timeout.
readBatchSizeintegerNoPreferred maximum points per client Read. Zero or absent uses the server limit, or 32 if unavailable. The advertised server limit is always respected.

OpcuaReadBatch

FieldTypeRequiredDescription
batchNumberintegerYesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI
requestedintegerYesNot specified in OpenAPI
returnedintegerYesNot specified in OpenAPI
goodintegerYesNot specified in OpenAPI
badintegerYesNot specified in OpenAPI
uncertainintegerYesNot specified in OpenAPI
unknownintegerYesNot specified in OpenAPI
unattemptedintegerYesNot specified in OpenAPI
completedGoodintegerYesNot specified in OpenAPI
durationMsintegerYesNot specified in OpenAPI
cycleDurationMsintegerYesNot specified in OpenAPI
observedAtintegerYesNot specified in OpenAPI
methodstringYesNot specified in OpenAPI
statusCodestringNoNot specified in OpenAPI
responseHeaderObservedbooleanNoNot specified in OpenAPI

OPCUAServerNode

FieldTypeRequiredDescription
dataTypestringYesNot specified in OpenAPI
directionstringYesNot specified in OpenAPI
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
namestringYesNot specified in OpenAPI
nodeClassstringYesNot specified in OpenAPI

OpenProtocolOptions

FieldTypeRequiredDescription
bufferLimitintegerNoNot specified in OpenAPI
cellIdintegerYesNot specified in OpenAPI
channelIdintegerYesNot specified in OpenAPI
controllerNamestringYesNot specified in OpenAPI
historyEndIdintegerNoNot specified in OpenAPI
historyStartIdintegerNoNot specified in OpenAPI

Outcome

FieldTypeRequiredDescription
jobIdstringNoNot specified in OpenAPI
nextIndexintegerNoNot specified in OpenAPI
replayedbooleanYesNot specified in OpenAPI
resultsarray<object>NoNot specified in OpenAPI
statusstringYesLocal execution lifecycle. accepted means durable upload acceptance only; results with pendingUpload are not center commits.
summaryobjectNoOutcomeSummary. See the referenced schema in the Schemas section.
unknownUntilintegerNoNot specified in OpenAPI

OutcomeSummary

FieldTypeRequiredDescription
failedintegerYesNot specified in OpenAPI
notExecutedintegerYesNot specified in OpenAPI
succeededintegerYesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI
unknownintegerYesNot specified in OpenAPI

PlatformV2CapabilitiesDiscoverReq

{
  "type": "object",
  "additionalProperties": false,
  "properties": {},
  "required": []
}

PlatformV2CapabilitiesDiscoverResponse

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.

FieldTypeRequiredDescription
productobjectYesNot specified in OpenAPI
productVersionstringNoNot specified in OpenAPI
contractVersionobjectYesNot specified in OpenAPI
apiContractVersionsarray<string>YesNot specified in OpenAPI
sdkContractVersionsarray<string>YesNot specified in OpenAPI
capabilitiesarray<object>YesNot specified in OpenAPI
deprecationsarray<object>YesNot specified in OpenAPI

PlatformV2CloudAssetUploadReq

FieldTypeRequiredDescription
fileNamestringYesNonempty original filename. Disallowed extensions include html and php.
sizeBytesinteger (int64)YesDeclared file size in bytes. Direct and multipart uploads each support up to 1 GiB.
contentTypestringNoOptional file MIME type, such as application/pdf.
sizeinteger (int64)NoNot specified in OpenAPI
sha256stringNoNot specified in OpenAPI
storageKeystringNoNot specified in OpenAPI
isPublicbooleanNoNot specified in OpenAPI
businessstringNoNot specified in OpenAPI
useBystringNoNot specified in OpenAPI

PlatformV2CloudAssetUploadResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CloudFileDeleteReq

FieldTypeRequiredDescription
filePathstringYesManaged file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding.

PlatformV2CloudFileDeleteResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CloudFileUploadReq

FieldTypeRequiredDescription
fileNamestringYesNonempty original filename. Disallowed extensions include html and php.
contentTypestringNoOptional file MIME type, such as application/pdf.
sizeinteger (int64)YesFile size in bytes.
visibilitystringNoWith private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use.
businessstringNoNot specified in OpenAPI
useBystringNoNot specified in OpenAPI
appInstanceIdstringNoNot specified in OpenAPI
sessionIdstringNoOptional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace.

PlatformV2CloudFileUploadResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CloudFileURLResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CloudInfoReq

{
  "type": "object",
  "additionalProperties": false,
  "properties": {},
  "required": []
}

PlatformV2CloudInfoResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CloudMembersListAppReq

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
roleKeysarray<string>NoNot specified in OpenAPI
grantedAtStartinteger (int64)NoStart of the authorization period in Unix milliseconds.
grantedAtEndinteger (int64)NoEnd of the authorization period in Unix milliseconds.
scopestringNoNot specified in OpenAPI
pageinteger (int64)NoPage number. Uses page 1 when omitted or set to 0.
sizeinteger (int64)NoResults per page, up to 100. Uses 20 when omitted or set to 0.

PlatformV2CloudMembersListAppResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CloudMembersListWorkspaceReq

FieldTypeRequiredDescription
keywordstringNoNot specified in OpenAPI
roleKeystringNoNot specified in OpenAPI
rolesarray<string>NoNot specified in OpenAPI
statusesarray<string>NoNot specified in OpenAPI
updatedAtStartstringNoNot specified in OpenAPI
updatedAtEndstringNoNot specified in OpenAPI
pageinteger (int64)NoPage number. Uses page 1 when omitted or set to 0.
sizeinteger (int64)NoResults per page, up to 100. Uses 20 when omitted or set to 0.

PlatformV2CloudMembersListWorkspaceResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CloudMQTTAuthCreateReq

FieldTypeRequiredDescription
namestringYesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
clientIDRandomSuffixEnabledbooleanNoNot specified in OpenAPI

PlatformV2CloudMQTTAuthCreateResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CloudMQTTAuthDeleteReq

FieldTypeRequiredDescription
idinteger (int64)YesRegular MQTT credential ID.

PlatformV2CloudMQTTAuthDeleteResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CloudMultipartAbortReq

FieldTypeRequiredDescription
fileKeystringYesFile identifier returned by multipart initialization.
uploadIdstringYesSession identifier returned by multipart initialization. Use it together with filePath exactly as returned.

PlatformV2CloudMultipartAbortResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CloudMultipartCompleteReq

FieldTypeRequiredDescription
fileKeystringYesFile identifier returned by multipart initialization.
uploadIdstringYesSession identifier returned by multipart initialization. Use it together with filePath exactly as returned.
partsarray<object>YesNot specified in OpenAPI

PlatformV2CloudMultipartCompleteResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CloudMultipartInitReq

FieldTypeRequiredDescription
fileNamestringYesNonempty original filename. Disallowed extensions include html and php.
contentTypestringNoOptional file MIME type, such as application/pdf.
sizeinteger (int64)YesFile size in bytes.
visibilitystringNoWith private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use.
businessstringNoNot specified in OpenAPI
useBystringNoNot specified in OpenAPI
appInstanceIdstringNoNot specified in OpenAPI
sessionIdstringNoOptional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace.
partSizeinteger (int64)NoBytes.
bizIdstringNoNot specified in OpenAPI

PlatformV2CloudMultipartInitResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CloudMultipartPartURLsReq

FieldTypeRequiredDescription
fileKeystringYesFile identifier returned by multipart initialization.
uploadIdstringYesSession identifier returned by multipart initialization. Use it together with filePath exactly as returned.
partNumbersarray<integer (int64)>YesNot specified in OpenAPI

PlatformV2CloudMultipartPartURLsResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CloudNotificationError

FieldTypeRequiredDescription
errorCodestringYesNot specified in OpenAPI
messagestringYesNot specified in OpenAPI

PlatformV2CloudNotificationGetReq

FieldTypeRequiredDescription
messageIdstringYesNot specified in OpenAPI

PlatformV2CloudNotificationGetResponse

FieldTypeRequiredDescription
messageIdstringYesNot specified in OpenAPI
typestringYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
createdAtstring (date-time)YesNot specified in OpenAPI
completedAtstring (date-time)NoNot specified in OpenAPI
errorCodestringNoNot specified in OpenAPI
messagestringNoNot specified in OpenAPI
recipientUserIdstringYesNot specified in OpenAPI
recipientNamestringNoNot specified in OpenAPI
channelsarray<object>YesNot specified in OpenAPI

PlatformV2CloudNotificationListReq

FieldTypeRequiredDescription
pageinteger (int64)NoPage number.
sizeinteger (int64)NoResults per page.
messageIdstringNoNot specified in OpenAPI
recipientUserIdstringNoNot specified in OpenAPI
statusstringNoNot specified in OpenAPI

PlatformV2CloudNotificationListResponse

FieldTypeRequiredDescription
listarray<object>YesNot specified in OpenAPI
totalinteger (int64)YesNot specified in OpenAPI
pageinteger (int64)YesNot specified in OpenAPI
sizeinteger (int64)YesNot specified in OpenAPI

PlatformV2CloudWhoamiReq

{
  "type": "object",
  "additionalProperties": false,
  "properties": {},
  "required": []
}

PlatformV2CloudWhoamiResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2CompletedPart

FieldTypeRequiredDescription
partNumberinteger (int64)YesOne-based part number.
etagstringYesPass the nonempty ETag returned by object storage for this part exactly as received.

PlatformV2Discovery_capability

Unknown capability codes are ignored; only recognized codes use the frozen assessment contract.

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI

PlatformV2Discovery_knownCapability

State reports publication and assessed prerequisites only; ready never grants resource access or confirms an actual execution.

FieldTypeRequiredDescription
stateobjectYesNot specified in OpenAPI
reasonCodestringYesNot specified in OpenAPI
checkedAtstring (date-time)NoNot specified in OpenAPI
validUntilstring (date-time)NoProof expiry must follow checkedAt. Cross-field chronological ordering is a semantic constraint checked by consumers in addition to this structural JSON Schema.
retryAfterMsintegerNoNot specified in OpenAPI
codestringYesNot specified in OpenAPI
contractVersionsarray<string>YesNot specified in OpenAPI
operationsarray<object>NoNot specified in OpenAPI

PlatformV2Discovery_knownOperation

State reports publication and assessed prerequisites only; ready never grants resource access or confirms an actual execution.

FieldTypeRequiredDescription
stateobjectYesNot specified in OpenAPI
reasonCodestringYesNot specified in OpenAPI
checkedAtstring (date-time)NoNot specified in OpenAPI
validUntilstring (date-time)NoProof expiry must follow checkedAt. Cross-field chronological ordering is a semantic constraint checked by consumers in addition to this structural JSON Schema.
retryAfterMsintegerNoNot specified in OpenAPI
operationstringYesNot specified in OpenAPI
requiresResourceCheckbooleanYesNot specified in OpenAPI

PlatformV2Discovery_operation

Unknown operation names are ignored within their parent capability; known names are validated by that capability.

FieldTypeRequiredDescription
operationstringYesNot specified in OpenAPI

PlatformV2DiscoveryError

FieldTypeRequiredDescription
errorCodestringYesNot specified in OpenAPI
messagestringYesNot specified in OpenAPI

PlatformV2ErrorResponse

FieldTypeRequiredDescription
codeinteger (int64)YesActual HTTP status code.
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
errorobjectYesNot specified in OpenAPI

PlatformV2FileDeleteReq

FieldTypeRequiredDescription
filePathstringYesManaged file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding.

PlatformV2FileDeleteResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2FileDownloadCreateReq

FieldTypeRequiredDescription
filePathstringYesManaged file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding.
expiresInSecondsinteger (int64)NoRequested URL lifetime in seconds. Uses the server default when omitted or set to 0, with a maximum of 7 days.

PlatformV2FileDownloadCreateResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2FileUploadCreateReq

FieldTypeRequiredDescription
fileNamestringYesNonempty original filename. Disallowed extensions include html and php.
contentTypestringNoOptional file MIME type, such as application/pdf.
sizeBytesinteger (int64)YesDeclared file size in bytes. Direct and multipart uploads each support up to 1 GiB.
visibilitystringNoWith private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use.
sessionIdstringNoOptional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace.

PlatformV2FileUploadCreateResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2IdentityGetReq

{
  "type": "object",
  "additionalProperties": false,
  "properties": {},
  "required": []
}

PlatformV2IdentityGetResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2InfoGetReq

{
  "type": "object",
  "additionalProperties": false,
  "properties": {},
  "required": []
}

PlatformV2InfoGetResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2MultipartAbortReq

FieldTypeRequiredDescription
filePathstringYesManaged file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding.
uploadIdstringYesSession identifier returned by multipart initialization. Use it together with filePath exactly as returned.

PlatformV2MultipartAbortResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2MultipartCompleteReq

FieldTypeRequiredDescription
filePathstringYesManaged file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding.
uploadIdstringYesSession identifier returned by multipart initialization. Use it together with filePath exactly as returned.
partsarray<object>YesNot specified in OpenAPI

PlatformV2MultipartCompleteResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2MultipartCreateReq

FieldTypeRequiredDescription
fileNamestringYesNonempty original filename. Disallowed extensions include html and php.
contentTypestringNoOptional file MIME type, such as application/pdf.
sizeBytesinteger (int64)YesDeclared file size in bytes. Direct and multipart uploads each support up to 1 GiB.
visibilitystringNoWith private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use.
sessionIdstringNoOptional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace.
partSizeBytesinteger (int64)NoRequested part size in bytes. Omit, set to 0, or supply less than 5 MiB to use 10 MiB. Use the actual part size returned in the response.

PlatformV2MultipartCreateResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2MultipartPartsReq

FieldTypeRequiredDescription
filePathstringYesManaged file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding.
uploadIdstringYesSession identifier returned by multipart initialization. Use it together with filePath exactly as returned.
partNumbersarray<integer (int64)>YesNot specified in OpenAPI

PlatformV2MultipartPartsResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2NotificationSendReq

FieldTypeRequiredDescription
recipientUserIdstringYesRecipient user ID as a positive integer string to preserve large integer precision.
typestringNoNot specified in OpenAPI
titlestringYesNot specified in OpenAPI
contentstringYesNot specified in OpenAPI
idempotencyKeystringYesNot specified in OpenAPI
modestringNoNot specified in OpenAPI
linkstringNoBusiness link starting with http://, https://, or /. Credentials, protocol-relative URLs, and control characters are forbidden.
channelsarray<string>NoOmit or pass an empty array to send a silent inbox message. Enterprise accepts web/mobile metadata without sending external push notifications. The get operation returns not_configured for external channels. sent means the message was persisted in the local inbox.
sourcestringNoNot specified in OpenAPI
wechatEventRefstringNoNot specified in OpenAPI
senderobjectNoNot specified in OpenAPI

PlatformV2NotificationSendResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
messageIdstringYesNot specified in OpenAPI
typestringNoNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
createdAtstring (date-time)YesNot specified in OpenAPI
completedAtstring (date-time)NoNot specified in OpenAPI
errorCodestringNoNot specified in OpenAPI
messagestringNoNot specified in OpenAPI
recipientUserIdstringYesNot specified in OpenAPI
recipientNamestringNoNot specified in OpenAPI

PlatformV2NotificationStatusGetReq

FieldTypeRequiredDescription
messageIdstringYesMessage ID returned by send.

PlatformV2NotificationStatusGetResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2ProjectMembersListReq

FieldTypeRequiredDescription
projectIdstringYesTarget project ID as a positive integer string.
pageinteger (int64)NoPage number. Uses page 1 when omitted or set to 0.
sizeinteger (int64)NoResults per page, up to 100. Uses 20 when omitted or set to 0.

PlatformV2ProjectMembersListResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2UsersListReq

FieldTypeRequiredDescription
searchstringNoSearch text for supported fields such as usernames and display names.
pageinteger (int64)NoPage number. Uses page 1 when omitted or set to 0.
sizeinteger (int64)NoResults per page, up to 100. Uses 20 when omitted or set to 0.
roleKeysarray<string>NoMatches any specified platform role.
statusesarray<string>NoNot specified in OpenAPI
updatedAtStartstring (date-time)NoStart of the last-update time range, in RFC3339 format.
updatedAtEndstring (date-time)NoEnd of the last-update time range, in RFC3339 format.

PlatformV2UsersListResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

PlatformV2WhoamiErrorResponse

FieldTypeRequiredDescription
codeinteger (int64)YesActual HTTP status code.
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
errorobjectYesNot specified in OpenAPI

PublicStreamRequest

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
descriptionstringYesNot specified in OpenAPI
contractVersionstringYesNot specified in OpenAPI
inputSchemaobjectYesNot specified in OpenAPI
outputSchemaobjectYesNot specified in OpenAPI
sideEffectstringYesNot specified in OpenAPI
idempotencystringYesNot specified in OpenAPI
timeoutMsinteger (int64)YesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI

RecordDocument

Ordinary business Record. Business fields are in data; system properties are siblings. filter/projection use bare business fields and _id/_meta.*, independently of this response object's paths. lock describes only an active lease and never returns its token.

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
collectionIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
createdAtintegerYesUnix milliseconds.
updatedAtintegerYesUnix milliseconds.
sourceIdstringYesNot specified in OpenAPI
sourceTimeintegerYesUnix milliseconds.
lockobjectNoCloudRecordLockView. See the referenced schema in the Schemas section.

RecordTTL

FieldTypeRequiredDescription
expireAfterSecondsintegerYesNot specified in OpenAPI
pathstringYesNot specified in OpenAPI

Release

Identity is (streamId,release); immutable snapshot created by stream.publish; Query the owning Stream; use expectedRevision and dependsOn before publishing a dependent Stream

FieldTypeRequiredDescription
definitionobjectYesStreamDefinition. See the referenced schema in the Schemas section.
publishedAtintegerYesNot specified in OpenAPI

Result

FieldTypeRequiredDescription
actionstringYesNot specified in OpenAPI
collectionIdstringNoCollection ID owning the business Records and Samples.
dataobjectNoBusiness data payload used by transaction result bindings. Read document for the complete resource object.
deliveryobjectNoWriteDelivery. See the referenced schema in the Schemas section.
documentobjectNoRecordDocument. See the referenced schema in the Schemas section.
errorobjectNoFault. See the referenced schema in the Schemas section.
idstringNoObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
kindstringNoNot specified in OpenAPI
opIdstringYesOperation identifier unique within this transaction, used for dependencies and result references.
queryobjectNoTransactionQueryResult. See the referenced schema in the Schemas section.
recordIdstringNoNot specified in OpenAPI
releaseintegerNoNot specified in OpenAPI
revisionintegerNoNot specified in OpenAPI
sourceIdstringNoNot specified in OpenAPI
statusstringYespendingUpload means durably accepted for remote delivery, not center storage confirmation.
timeintegerNoUnix milliseconds.
transactionTimeintegerNoNot specified in OpenAPI

RetryAdvice

FieldTypeRequiredDescription
recommendedActionstringYesNext recovery action; grants no additional business permissions.
canRetrySameRequestbooleanYesWhether the exact same request can be sent again. Check status first when advised.
keepIdempotencyKeybooleanYesRetain the original idempotency key when recovering the same intent; do not execute again with a new key.

Role

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
namestringYesNot specified in OpenAPI

RuntimeProgramTestInput

Isolated preview envelope; data is passed to the selected entry. sourceSamples maps Source alias to operation key to JSON result. topicSamples maps UNS alias to JSON value. checkpointSample is at most 16 KiB of JSON.

FieldTypeRequiredDescription
checkpointSampleobjectNoNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
previewWritesbooleanNoCompare proposed UNS writes with current data; requires uns.read and does not commit
sourceSamplesobjectNoNot specified in OpenAPI
topicSamplesobjectNoNot specified in OpenAPI

RuntimeStreamDefinition

FieldTypeRequiredDescription
namestringYesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
scriptobjectYesStreamScript. See the referenced schema in the Schemas section.
sourcesarray<object>NoNot specified in OpenAPI
sourceBindingsarray<object>NoNot specified in OpenAPI
extensionsobjectNoNot specified in OpenAPI

SalesforceQueryDeclaration

FieldTypeRequiredDescription
cdcbooleanNoNot specified in OpenAPI
endstringYesNot specified in OpenAPI
fieldsarray<string>YesNot specified in OpenAPI
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
objectstringYesNot specified in OpenAPI
queryAllbooleanNoNot specified in OpenAPI
startstringYesNot specified in OpenAPI

SampleDocument

A standard sample object, uniquely identified by collectionId, recordId, and time. id and time have a one-to-one correspondence for references using Cloud's {recordId,id,time} triple. Business fields are in data; time, quality, record identity, and available source information are at the same level as data.

FieldTypeRequiredDescription
idstringYesSample ID, unique within the same Record; Enterprise derives it from time as a decimal string of Unix milliseconds.
collectionIdstringYesNot specified in OpenAPI
recordIdstringYesNot specified in OpenAPI
timeintegerYesUnix milliseconds.
receivedAtintegerYesUnix milliseconds.
qualitystringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
sourceIdstringYesNot specified in OpenAPI
streamIdstringNoNot specified in OpenAPI
bindingIdstringNoNot specified in OpenAPI

Schema

FieldTypeRequiredDescription
additionalPropertiesbooleanNoNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
enumarray<object>NoNot specified in OpenAPI
formatstringNoNot specified in OpenAPI
itemsobjectNoSchema. See the referenced schema in the Schemas section.
maximumnumberNoNot specified in OpenAPI
minimumnumberNoNot specified in OpenAPI
propertiesobjectNoNot specified in OpenAPI
requiredarray<string>NoNot specified in OpenAPI
titlestringNoNot specified in OpenAPI
typestringYesNot specified in OpenAPI
unitstringNoNot specified in OpenAPI

SlowQueryAdvice

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
indexIdstringNoNot specified in OpenAPI

SlowQueryShapeView

FieldTypeRequiredDescription
adviceobjectYesSlowQueryAdvice. See the referenced schema in the Schemas section.
callsintegerYesNot specified in OpenAPI
eqarray<string>YesNot specified in OpenAPI
inarray<string>YesNot specified in OpenAPI
noIndexablearray<string>YesNot specified in OpenAPI
opstringYesNot specified in OpenAPI
p95MsnumberYesNot specified in OpenAPI
rangearray<string>YesNot specified in OpenAPI
shapeHashstringYesNot specified in OpenAPI
sortarray<object>YesNot specified in OpenAPI
timeoutsintegerYesNot specified in OpenAPI

SlowQuerySortField

FieldTypeRequiredDescription
directionstringYesNot specified in OpenAPI
fieldstringYesNot specified in OpenAPI

SourceCheckResult

FieldTypeRequiredDescription
modestringYesNot specified in OpenAPI
healthstringYesNot specified in OpenAPI
stagestringYesNot specified in OpenAPI
errorCodestringYesNot specified in OpenAPI
messagestringYesNot specified in OpenAPI
checkedAtintegerYesNot specified in OpenAPI
latencyMsintegerYesNot specified in OpenAPI

SourceCredentials

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
usernamestringNoNot specified in OpenAPI
secretstringNoNot specified in OpenAPI
valuesobjectNoNot specified in OpenAPI
certificateFileIdstringNoNot specified in OpenAPI
privateKeyFileIdstringNoNot specified in OpenAPI
caFileIdstringNoNot specified in OpenAPI

SourceData

Source owns connection, protocol resources and credential references only; Acquisition and processing belong to Stream; storage belongs to an independent Collection policy; Edge Source references an enrolled Edge and exposes its authorized Stream outputs; use an ordinary center Stream to consume them; Credentials remain on their dedicated API

FieldTypeRequiredDescription
adapterstringYesSelect exactly this protocol; http-api is not http
configobjectYesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
namestringYesUnique display name; no surrounding whitespace
schemaVersionintegerYesNot specified in OpenAPI

SourceDefinition

Unified Source connection. Choose the matching protocol object. Query the target protocol catalog for installed execution, TLS and state capabilities.

FieldTypeRequiredDescription
credentialRefstringNoOpaque 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.
descriptionstringNoNot specified in OpenAPI
endpointstringYesProtocol connection address or a discovered native device key. Never include credentials in the address. Managed server roles use the target-defined managed endpoint.
extensionsobjectNoNot specified in OpenAPI
fileobjectNoFileSourceOptions. See the referenced schema in the Schemas section.
httpobjectNoHTTPConnection. See the referenced schema in the Schemas section.
modbusobjectNoModbusOptions. See the referenced schema in the Schemas section.
mqttobjectNoMQTTOptions. See the referenced schema in the Schemas section.
namestringNoNot specified in OpenAPI
opcuaobjectNoOPCUAOptions. See the referenced schema in the Schemas section.
openProtocolobjectNoOpenProtocolOptions. See the referenced schema in the Schemas section.
protocolstringYesNot specified in OpenAPI
rolestringNoNot specified in OpenAPI
runtimeLocationstringNoNot specified in OpenAPI
sourceTypestringNoNot specified in OpenAPI
sqlobjectNoSQLConnection. See the referenced schema in the Schemas section.
kafkaobjectNoNot specified in OpenAPI
industrialobjectNoNot specified in OpenAPI
snmpobjectNoNot specified in OpenAPI
fieldbusTimeoutMsintegerNoNative fieldbus device timeout (ms).
connectionCheckTimeoutMsintegerNoConnection check limit (ms).

SourceDefinitionPatch

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.

FieldTypeRequiredDescription
credentialRefstringNoOpaque 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.
descriptionstringNoNot specified in OpenAPI
endpointstringNoProtocol connection address or a discovered native device key. Never include credentials in the address. Managed server roles use the target-defined managed endpoint.
extensionsobjectNoNot specified in OpenAPI
fileobjectNoFileSourceOptions. See the referenced schema in the Schemas section.
httpobjectNoHTTPConnection. See the referenced schema in the Schemas section.
modbusobjectNoModbusOptions. See the referenced schema in the Schemas section.
mqttobjectNoMQTTOptions. See the referenced schema in the Schemas section.
namestringNoNot specified in OpenAPI
opcuaobjectNoOPCUAOptions. See the referenced schema in the Schemas section.
openProtocolobjectNoOpenProtocolOptions. See the referenced schema in the Schemas section.
protocolstringNoNot specified in OpenAPI
rolestringNoNot specified in OpenAPI
runtimeLocationstringNoNot specified in OpenAPI
sourceTypestringNoNot specified in OpenAPI
sqlobjectNoSQLConnection. See the referenced schema in the Schemas section.
fieldbusTimeoutMsintegerNoNot specified in OpenAPI
connectionCheckTimeoutMsintegerNoNot specified in OpenAPI

SQLConnection

Database connection. A connection-only Source uses Stream acquisition.queries for SQL reads.

FieldTypeRequiredDescription
caCertificatestringNoNot specified in OpenAPI
querystringNoPreset 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.
wmsobjectNoWMSMapping. See the referenced schema in the Schemas section.
queriesobjectNoOptional Source-owned named queries. A Stream may declare its own queries only when the Source has no preset or named queries.
tlsModestringNoNot specified in OpenAPI
queryTimeoutMsintegerNoSQL read timeout (ms).
insertTargetsobjectNoNot specified in OpenAPI

StreamData

Draft defines processor and output schemas, plus optional execution; Saving a draft never executes; publication creates an immutable numbered release; Edge execution references a published Source revision and an output Collection; storage is configured independently on that Collection; A published Edge release executes only on that Edge; changing a draft does not change running configuration; Processor uses bounded JavaScript process(input,params,context); unrelated edits retain hidden code

FieldTypeRequiredDescription
descriptionstringNoNot specified in OpenAPI
draftobjectYesStreamDefinition. See the referenced schema in the Schemas section.
executionModestringNoNot specified in OpenAPI
namestringYesUnique display name; no surrounding whitespace
schemaVersionintegerYesNot specified in OpenAPI

StreamDataView

Draft defines processor and output schemas, plus optional execution; Saving a draft never executes; publication creates an immutable numbered release; Edge execution references a published Source revision and an output Collection; storage is configured independently on that Collection; A published Edge release executes only on that Edge; changing a draft does not change running configuration; Processor uses bounded JavaScript process(input,params,context); unrelated edits retain hidden code

FieldTypeRequiredDescription
descriptionstringNoNot specified in OpenAPI
draftobjectYesStreamDefinition. See the referenced schema in the Schemas section.
executionModestringNoNot specified in OpenAPI
namestringYesUnique display name; no surrounding whitespace
schemaVersionintegerYesNot specified in OpenAPI
releasesobjectNoNot specified in OpenAPI

StreamDefinition

FieldTypeRequiredDescription
namestringYesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
scriptobjectYesStreamScript. See the referenced schema in the Schemas section.
sourcesarray<object>NoNot specified in OpenAPI
sourceBindingsarray<object>NoNot specified in OpenAPI
extensionsobjectNoNot specified in OpenAPI

StreamRequestDescribeReq

{
  "type": "object",
  "additionalProperties": false,
  "properties": {}
}

StreamRequestDiscoverReq

FieldTypeRequiredDescription
pageinteger (int64)NoUses page 1 when omitted or set to 0.
sizeinteger (int64)NoUses 20 when omitted or set to 0.
searchstringNoUp to 256 UTF-8 bytes.

StreamRequestDiscoverResp

FieldTypeRequiredDescription
totalinteger (int64)YesNot specified in OpenAPI
listarray<object>YesNot specified in OpenAPI

StreamRequestError

FieldTypeRequiredDescription
errorCodestringYesNot specified in OpenAPI
messagestringYesNot specified in OpenAPI

StreamRequestInvokeReq

FieldTypeRequiredDescription
inputobjectYesRequired. Accepts any JSON value that conforms to the contract inputSchema. Pass null when there is no business input.
idempotencyKeystringNoUp to 128 UTF-8 bytes without surrounding whitespace. A write/required contract requires a nonempty, durable key. Replays must reuse the same key and input.

StreamRequestInvokeResp

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
contractVersionstringYesNot specified in OpenAPI
resultobjectYesBusiness result that conforms to the contract outputSchema. May be null.
runIDstringYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
replayedbooleanYesNot specified in OpenAPI

StreamScript

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
timeoutMsintegerYesNot specified in OpenAPI

StreamSourceAlias

FieldTypeRequiredDescription
sourceIdstringNoNot specified in OpenAPI
configRevisionintegerNoOpaque execution snapshot version. It may conservatively advance even for a rename. Use the authoritative receipt; never derive configRevision from revision.
targetobjectNoStreamSourceTarget. See the referenced schema in the Schemas section.
acquisitionobjectNoProtocol acquisition only; cannot override connection or credentials.
aliasstringYesNot specified in OpenAPI
resourcesarray<string>NoNot specified in OpenAPI

StreamSourceBinding

FieldTypeRequiredDescription
sourceIdstringNoNot specified in OpenAPI
configRevisionintegerNoOpaque execution snapshot version. It may conservatively advance even for a rename. Use the authoritative receipt; never derive configRevision from revision.
targetobjectNoStreamSourceTarget. See the referenced schema in the Schemas section.
acquisitionobjectNoProtocol acquisition only; cannot override connection or credentials.
aliasstringNoNot specified in OpenAPI
resourcesarray<string>NoNot specified in OpenAPI

StreamSourceTarget

FieldTypeRequiredDescription
fleetNodeIdstringYesNot specified in OpenAPI
sourceIdstringYesNot specified in OpenAPI
configRevisionintegerYesOpaque execution snapshot version. It may conservatively advance even for a rename. Use the authoritative receipt; never derive configRevision from revision.

TeamcenterFileSelection

FieldTypeRequiredDescription
datasetUidstringYesNot specified in OpenAPI
fileUidstringYesNot specified in OpenAPI
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
itemIdstringYesNot specified in OpenAPI
itemUidstringYesNot specified in OpenAPI
queryUidstringYesNot specified in OpenAPI
revisionUidstringYesNot specified in OpenAPI

TransactionQueryResult

FieldTypeRequiredDescription
hasMorebooleanYesNot specified in OpenAPI
recordsarray<object>YesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI

TransactionStatusResult

FieldTypeRequiredDescription
committedAtintegerNoCommit receipt timestamp, Unix milliseconds; not the physical device/WMS execution time.
deliveriesarray<object>NoNot specified in OpenAPI
itemCountintegerNoNot specified in OpenAPI
jobIdstringNoNot specified in OpenAPI
retryAdviceobjectYesRetryAdvice. See the referenced schema in the Schemas section.
statusstringYesunknown does not prove rollback. Recover using the original request and key according to retryAdvice. succeeded means the asynchronous job succeeded; committed means a local commit receipt exists; accepted means durably received and awaiting upload, not persisted at the center.

UnsV2AppCollectionAliasReq

FieldTypeRequiredDescription
aliasstringYesNot specified in OpenAPI

UnsV2AppCollectionsEnsureReq

FieldTypeRequiredDescription
appIdstringNoNot specified in OpenAPI
dryRunbooleanNoNot specified in OpenAPI
collectionsarray<object>YesNot specified in OpenAPI

UnsV2AppCollectionsEnsureResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2AppCollectionsListReq

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI

UnsV2AppCollectionsListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2AppCollectionsSchemaReplaceReq

FieldTypeRequiredDescription
aliasstringYesNot specified in OpenAPI
recordSchemaobjectYesSchema. See the referenced schema in the Schemas section.
indexesarray<object>YesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI
dryRunbooleanNoNot specified in OpenAPI

UnsV2AppCollectionsSchemaReplaceResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2AppCollectionStateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2AppContextReq

{
  "type": "object",
  "additionalProperties": false,
  "properties": {}
}

UnsV2AppCreateReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI

UnsV2AppCreateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2AppGetReq

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.

UnsV2AppGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2AppGrantsUpdateReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI

UnsV2AppGrantsUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2AppKeyCreateReq

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI

UnsV2AppKeyRevokeReq

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
keyIdstringYesNot specified in OpenAPI

UnsV2AppListReq

FieldTypeRequiredDescription
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.
archivedbooleanNotrue lists archived objects only; false lists active objects only.

UnsV2AppListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2AppMembersUpdateReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI

UnsV2AppMembersUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2AppNavigationUpdateReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI

UnsV2AppNavigationUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2AppPlatformPermissionsUpdateReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI

UnsV2AppPlatformPermissionsUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2AppReplaceReq

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
replacementobjectYesAppData. See the referenced schema in the Schemas section.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.

UnsV2AppReplaceResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2AppRolesUpdateReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI

UnsV2AppRolesUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2AppSessionInspectReq

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
tokenstringYesNot specified in OpenAPI

UnsV2AppSessionInspectResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesAppSessionIdentity. See the referenced schema in the Schemas section.

UnsV2AppStreamAccessListReq

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
streamIdstringNoNot specified in OpenAPI
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
includeInactiveintegerNoNot specified in OpenAPI

UnsV2AppStreamAccessListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2AppStreamPolicyGetReq

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI

UnsV2AppStreamPolicyGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesAppStreamPolicyView. See the referenced schema in the Schemas section.

UnsV2AppStreamPolicyUpdateReq

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
expectedRevisionintegerYesExpected revision; provide it after reading the current object. On conflict, reread and decide how to proceed instead of blindly overwriting. Shared App metadata revision; zero only when no metadata exists. Read the current revision before updating.
statusstringYesNot specified in OpenAPI
platformPermissionsarray<string>YesNot specified in OpenAPI
messageTopicsarray<object>NoNot specified in OpenAPI
idempotencyKeystringYesUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.

UnsV2AppStreamPolicyUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2AppUpdateReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI

UnsV2AppUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2ArrayElementFilter

Use comparison operators for scalar elements, or field conditions relative to each element for object elements; nested logical combinations are supported. pull does not accept $expr.

{
  "type": "object",
  "minProperties": 1,
  "additionalProperties": true,
  "description": "Use comparison operators for scalar elements, or field conditions relative to each element for object elements; nested logical combinations are supported. pull does not accept $expr."
}

UnsV2CatalogReq

{
  "type": "object",
  "additionalProperties": false,
  "properties": {}
}

UnsV2CollectionDescribeReq

FieldTypeRequiredDescription
collectionIdstringYesCollection ID owning the business Records and Samples.

UnsV2CollectionDescribeResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCollectionDescription. See the referenced schema in the Schemas section.

UnsV2DataDiscoverResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesDiscoveryResult. See the referenced schema in the Schemas section.

UnsV2DataFilter

Unified predicate: use field or customer.name directly for business paths; use _id and _meta.revision/createdAt/updatedAt/sourceId/sourceTime/locked for system paths. Sample uses _meta.recordId/time/receivedAt/quality/streamId/bindingId. A direct value is equivalent to $eq. Supports scalar comparisons, array $elemMatch/$all/$size, logical combinations, and restricted $expr. Paths are dot-separated; write a literal dot as \. and a backslash as \\, and escape backslashes again in JSON. Maximum 512 bytes/10 segments. Arrays require explicit indexes; implicit traversal is not supported. Field types are validated against the Schema; SQL and scripts are not accepted. Record writes must match exactly one record by default. $eq:null matches null or missing; $ne:null matches present, non-null values; $ne with a non-null value includes missing fields. $exists distinguishes present from missing; explicit null counts as present.

FieldTypeRequiredDescription
$andarray<object>NoNot specified in OpenAPI
$orarray<object>NoNot specified in OpenAPI
$norarray<object>NoNot specified in OpenAPI
$notobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
$exprobjectNoUnsV2PipelineExpression. See the referenced schema in the Schemas section.

UnsV2DiscoverySearchReq

FieldTypeRequiredDescription
searchstringNoSearch by name or supported text fields; not SQL.
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog. At most 200 items per page.

UnsV2Distinct

Deduplicates by the combination of fields specified in by and outputs the alias fields. Results use standard offset pagination. To count unique values, use $distinct followed by $count; no countDistinct stage is added.

FieldTypeRequiredDescription
byobjectYesUnsV2DistinctBy. See the referenced schema in the Schemas section.

UnsV2DistinctBy

Mapping from 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 retained. Arrays are compared as whole values; use $unwind first to deduplicate elements.

{
  "type": "object",
  "minProperties": 1,
  "maxProperties": 16,
  "additionalProperties": {
    "type": "string",
    "minLength": 2,
    "maxLength": 513,
    "pattern": "^\\$[^$].*$",
    "description": "A declared field path with a single $ prefix, such as $status; expressions and $$ variables are not accepted."
  },
  "description": "Mapping from 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 retained. Arrays are compared as whole values; use $unwind first to deduplicate elements."
}

UnsV2EdgeCollectionSyncValidateReq

FieldTypeRequiredDescription
collectionIdstringYesCollection ID owning the business Records and Samples.

UnsV2EdgeCollectionSyncValidateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2EdgeConfigGetReq

FieldTypeRequiredDescription
sectionstringYesNot specified in OpenAPI

UnsV2EdgeConfigResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2EdgeConfigUpdateReq

FieldTypeRequiredDescription
sectionstringYesNot specified in OpenAPI
expectedRevisionintegerYesExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
configobjectYesNot specified in OpenAPI
collectionIdstringNoCollection ID owning the business Records and Samples.
expectedCollectionRevisionintegerNoNot specified in OpenAPI

UnsV2EdgeNodesListReq

FieldTypeRequiredDescription
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
keywordstringNoNot specified in OpenAPI
statusstringNoNot specified in OpenAPI

UnsV2EdgeNodesListResponse

FieldTypeRequiredDescription
codeinteger (int64)YesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2Envelope

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2ErrorResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectNoNot specified in OpenAPI
errorobjectYesNot specified in OpenAPI

UnsV2FieldComparisons

FieldTypeRequiredDescription
$eqobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$neobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$gtobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$gteobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$ltobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$lteobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$inarray<object>NoNot specified in OpenAPI
$ninarray<object>NoNot specified in OpenAPI
$existsbooleanNoNot specified in OpenAPI
$allarray<object>NoEach item is matched by equality of the complete JSON element.
$sizeintegerNoNot specified in OpenAPI
$elemMatchobjectNoUnsV2ArrayElementFilter. See the referenced schema in the Schemas section.
$containsstringNoNot specified in OpenAPI
$likestringNoNot specified in OpenAPI
$ilikestringNoNot specified in OpenAPI

UnsV2FieldOperation

FieldTypeRequiredDescription
opstringYesNot specified in OpenAPI
pathstringYesDeclared 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.
valueobjectNoRequired 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.

UnsV2FieldPredicate

FieldTypeRequiredDescription
$eqobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$neobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$gtobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$gteobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$ltobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$lteobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$inarray<object>NoNot specified in OpenAPI
$ninarray<object>NoNot specified in OpenAPI
$existsbooleanNoNot specified in OpenAPI
$allarray<object>NoEach item is matched by equality of the complete JSON element.
$sizeintegerNoNot specified in OpenAPI
$elemMatchobjectNoUnsV2ArrayElementFilter. See the referenced schema in the Schemas section.
$notobjectNoUnsV2FieldComparisons. See the referenced schema in the Schemas section.
$containsstringNoNot specified in OpenAPI
$likestringNoNot specified in OpenAPI
$ilikestringNoNot specified in OpenAPI

UnsV2FilterScalar

{
  "oneOf": [
    {
      "type": "string",
      "nullable": true
    },
    {
      "type": "number"
    },
    {
      "type": "boolean"
    }
  ]
}

UnsV2Frequencies

Counts frequencies by the combination of fields specified in by, outputting the alias fields and a fixed count field. Counts are based on the current stage's input; results can be sorted or filtered further.

FieldTypeRequiredDescription
byobjectYesUses the same field combinations and missing/null rules as distinct; an alias cannot be count.

UnsV2History

FieldTypeRequiredDescription
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
timeRangeobjectNoUnsV2TimeRange. See the referenced schema in the Schemas section.

UnsV2Identity

{
  "oneOf": [
    {
      "type": "string",
      "maxLength": 128
    },
    {
      "type": "object",
      "required": [
        "ref"
      ],
      "additionalProperties": false,
      "properties": {
        "ref": {
          "type": "string"
        }
      }
    }
  ]
}

UnsV2JobsDocumentedRequest

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI

UnsV2JobsQuery

FieldTypeRequiredDescription
queryIdstringYesIdentifier unique within this query batch, used to match results.
jobIdsarray<string>NoNot specified in OpenAPI

UnsV2ManagedBy

FieldTypeRequiredDescription
sourceIdobjectYesUnsV2Identity. See the referenced schema in the Schemas section.
instanceIdstringYesNot specified in OpenAPI

UnsV2MetadataAggregateReq

FieldTypeRequiredDescription
kindstringNoNot specified in OpenAPI
kindsarray<string>NoNot specified in OpenAPI
statestringNoActive, soft-deleted, or all objects.
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
pipelinearray<object>YesSupports $match/$project/$group/$sort/$skip/$limit/$distinct. The $distinct stage sorts by JSONB value and uses outer pagination.
pageobjectNoNot specified in OpenAPI
limitintegerNoNot specified in OpenAPI

UnsV2MetadataAggregateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2MetadataBulkWriteReq

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
operationsarray<object>YesNot specified in OpenAPI
atomicbooleanNoThe entire batch commits atomically by default. Set false to commit items independently. Full authorization and domain validation still apply to each object.
orderedbooleanNoWith atomic=false, controls whether to stop or continue after a failure. Atomic batches reject ordered=false.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.

UnsV2MetadataBulkWriteResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2MetadataCountReq

FieldTypeRequiredDescription
kindstringNoNot specified in OpenAPI
kindsarray<string>NoNot specified in OpenAPI
statestringNoActive, soft-deleted, or all objects.
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.

UnsV2MetadataCountResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2MetadataDeleteManyReq

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
atomicbooleanNoThe entire batch commits atomically. Use bulkWrite to commit individual items.
maxDocsintegerNoRejects the entire operation if the match limit is exceeded. The write set is never truncated.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.

UnsV2MetadataDeleteManyResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2MetadataDeleteOneReq

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
returnDocumentstringNonone returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.

UnsV2MetadataDeleteOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2MetadataFindReq

FieldTypeRequiredDescription
kindstringNoNot specified in OpenAPI
kindsarray<string>NoNot specified in OpenAPI
statestringNoActive, soft-deleted, or all objects.
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
pageobjectNoNot specified in OpenAPI
limitintegerNoNot specified in OpenAPI

UnsV2MetadataFindResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesMetadataPage. See the referenced schema in the Schemas section.

UnsV2MetadataInsertOneReq

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
idstringNoNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.

UnsV2MetadataInsertOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2MetadataPurgeReq

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
idsarray<string>YesNot specified in OpenAPI
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.

UnsV2MetadataPurgeResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2MetadataReplaceOneReq

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
replacementobjectYesNot specified in OpenAPI
upsertbooleanNoSupported for single-resource updates and replacements. The filter must specify equality on _id, and the new configuration must be complete and valid. A deleted object with the same ID is never restored automatically.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
returnDocumentstringNonone returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.

UnsV2MetadataReplaceOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2MetadataRestoreReq

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.

UnsV2MetadataRestoreResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2MetadataTransactReq

FieldTypeRequiredDescription
operationsarray<object>YesNot specified in OpenAPI
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.

UnsV2MetadataTransactResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2MetadataUpdateManyReq

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
updateobjectYesSupports only $set, $unset, and $setOnInsert. Configuration paths omit the data. prefix. System fields are read-only. An array update replaces the whole field.
atomicbooleanNoThe entire batch commits atomically. Use bulkWrite to commit individual items.
maxDocsintegerNoRejects the entire operation if the match limit is exceeded. The write set is never truncated.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.

UnsV2MetadataUpdateManyResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2MetadataUpdateOneReq

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
updateobjectYesSupports only $set, $unset, and $setOnInsert. Configuration paths omit the data. prefix. System fields are read-only. An array update replaces the whole field.
upsertbooleanNoSupported for single-resource updates and replacements. The filter must specify equality on _id, and the new configuration must be complete and valid. A deleted object with the same ID is never restored automatically.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.
returnDocumentstringNonone returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.

UnsV2MetadataUpdateOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2NamespaceCopyReq

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
idstringYesNot specified in OpenAPI
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
dataobjectYesNot specified in OpenAPI
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.

UnsV2NamespaceCopyResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2NamespaceDocumentedRequest

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI

UnsV2NamespaceQuery

FieldTypeRequiredDescription
queryIdstringYesIdentifier unique within this query batch, used to match results.
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.
kindsarray<string>NoNot specified in OpenAPI
idsarray<string>NoNot specified in OpenAPI
parentIdobjectNoNot specified in OpenAPI
includeAncestorsbooleanNoNot specified in OpenAPI
includeArchivedbooleanNoNot specified in OpenAPI

UnsV2Page

FieldTypeRequiredDescription
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.

UnsV2PipelineAccumulator

$stdDevPop/$stdDevSamp compute the population/sample standard deviation of numeric values. $first/$last return the expression value from the first/last row of each group in pipeline order before grouping. When grouping Sample directly, rows are ordered by sample time, Record ID, and Sample ID. Use $sort first to specify a business order. Missing or null values return null.

{
  "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": {
        "$stdDevPop": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$stdDevPop"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$stdDevSamp": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$stdDevSamp"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$first": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$first"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$last": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$last"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$count": {
          "type": "object",
          "maxProperties": 0
        }
      },
      "required": [
        "$count"
      ]
    }
  ],
  "description": "$stdDevPop/$stdDevSamp compute the population/sample standard deviation of numeric values. $first/$last return the expression value from the first/last row of each group in pipeline order before grouping. When grouping Sample directly, rows are ordered by sample time, Record ID, and Sample ID. Use $sort first to specify a business order. Missing or null values return null."
}

UnsV2PipelineExpression

A $field path reference or scalar constant; $literal forces a constant. Arithmetic accepts only numbers; $divide returns null when the denominator is 0; $ifNull explicitly provides a default for missing/null values. $expr must produce a boolean; the $cond condition must be boolean and both branches must have compatible types. Conversion failures are errors; missing/null values propagate. $trim input/chars must both be string expressions; omitting chars trims whitespace. $dateTrunc input and output are Unix milliseconds; timezone is an IANA time zone; startOfWeek applies only to week. Maximum expression depth is 8 and maximum node count is 512. Each $concat intermediate result is limited to 1 MiB of UTF-8 bytes; exceeding this limit returns EXPRESSION_BUDGET_EXCEEDED. Arbitrary functions are not supported.

{
  "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": "Values greater than 1 support only fixed-duration UTC millisecond/second/minute/hour/day buckets aligned to the Unix epoch; 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": "A $field path reference or scalar constant; $literal forces a constant. Arithmetic accepts only numbers; $divide returns null when the denominator is 0; $ifNull explicitly provides a default for missing/null values. $expr must produce a boolean; the $cond condition must be boolean and both branches must have compatible types. Conversion failures are errors; missing/null values propagate. $trim input/chars must both be string expressions; omitting chars trims whitespace. $dateTrunc input and output are Unix milliseconds; timezone is an IANA time zone; startOfWeek applies only to week. Maximum expression depth is 8 and maximum node count is 512. Each $concat intermediate result is limited to 1 MiB of UTF-8 bytes; exceeding this limit returns EXPRESSION_BUDGET_EXCEEDED. Arbitrary functions are not supported."
}

UnsV2PipelinePage

FieldTypeRequiredDescription
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
modestringNoPipelines containing only $match/$sort default to cursor (keyset) pagination. Other pipelines default to offset and do not support cursor.
pageintegerNoPage number, starting at 1.
cursorstringNoSigned keyset token preserving complete sort values and unique identity. Bound to the query, Collection, Schema/revisions and caller, valid for 7 days. Restart after changing identity, Schema or signing key. Does not freeze a snapshot across requests.

UnsV2PipelineSort

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."
}

UnsV2PipelineStage

Each stage must contain exactly one operator; stages execute in order. $lookup performs an equality join first, then runs its pipeline, returning an array. Each target collection is authorized separately.

{
  "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 such as field, with references written as $field. Inclusion and exclusion cannot be mixed, except for _id."
        }
      },
      "required": [
        "$project"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$set": {
          "type": "object",
          "minProperties": 1,
          "maxProperties": 64,
          "additionalProperties": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "description": "Adds or replaces computed fields, supports nested paths, and accepts only allowlisted 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 specifies a single value, null, or an object as the grouping key. Supports $sum/$avg/$min/$max/$count/$stdDevPop/$stdDevSamp/$first/$last, which can be combined in one grouping stage."
        }
      },
      "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, with the join scope restricted to that Record; records prohibits recordId. foreignField requires a ready B-tree index with that field as its leading field, or an applicable built-in identity index. The primary input is limited to 1000 rows, raw joined rows to 10000 per input row, stage intermediate results to 8 MiB, and each final joined array to 200 items. Exceeding a limit causes an explicit failure, without silent truncation; the subpipeline can 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": "A valid top-level output field name, following the unified path escaping and reserved-name rules. Outputs one row containing a count; empty input returns 0. Explicit page is prohibited when this is the last stage; if more stages follow, normal pagination applies to the final result."
        }
      },
      "required": [
        "$count"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$exists": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "description": "A valid top-level output field name, following the unified path escaping and reserved-name rules. Outputs one row containing a boolean indicating whether the current stage has any input rows; empty input returns false. Explicit page is prohibited when this is the last stage; if more stages follow, normal pagination applies to the final result."
        }
      },
      "required": [
        "$exists"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$unionWith": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "collectionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "pipeline": {
              "type": "array",
              "maxItems": 32,
              "items": {
                "$ref": "#/components/schemas/UnsV2PipelineStage"
              }
            }
          },
          "required": [
            "collectionId"
          ],
          "description": "Appends the target collection's records subpipeline results to the current results, retaining duplicates, with PostgreSQL UNION ALL semantics. A subsequent $group can deduplicate; $sort/$skip/$limit/$count apply to the entire combined result. Each target collection is checked independently against existing read permissions. Branches share the current read-only snapshot and the limits of 32 stages per branch, 64 stages in total, 4 nesting levels, and query/response budgets. Fields with the same name must have compatible types; project and convert them first if needed. Targets support only records, do not accept kind/recordId, and do not promise full MongoDB compatibility."
        }
      },
      "required": [
        "$unionWith"
      ]
    }
  ],
  "description": "Each stage must contain exactly one operator; stages execute in order. $lookup performs an equality join first, then runs its pipeline, returning an array. Each target collection is authorized separately."
}

UnsV2QueryCountExpectation

FieldTypeRequiredDescription
minintegerNoNot specified in OpenAPI
maxintegerNoNot specified in OpenAPI

UnsV2RecordAggregatePipelineReqBody

FieldTypeRequiredDescription
pipelinearray<object>YesNot specified in OpenAPI
limitintegerNoNot specified in OpenAPI
pageobjectNoUnsV2PipelinePage. See the referenced schema in the Schemas section.
countobjectNoNot specified in OpenAPI

UnsV2RecordAggregatePipelineResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudDataPage. See the referenced schema in the Schemas section.

UnsV2RecordBulkWriteReqBody

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
operationsarray<object>YesNot specified in OpenAPI
orderedbooleanNoNot specified in OpenAPI
atomicbooleanNotrue commits the entire batch atomically, with up to 200 items for document actions. false commits each document separately.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
lockTokensobjectNoNot specified in OpenAPI

UnsV2RecordBulkWriteResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordChange

FieldTypeRequiredDescription
updateobjectNoupdate document, mutually exclusive with legacy operations.
arrayFiltersarray<object>NoNot specified in OpenAPI
upsertbooleanNoWhen true, filter must contain an _id equality condition or equality conditions covering all fields of a ready unique index; otherwise, returns UPSERT_REQUIRES_UNIQUE_INDEX. Inserts if no record matches; a uniqueness conflict returns 409 DUPLICATE_KEY.
opIdstringYesOperation identifier unique within this transaction, used for dependencies and result references.
actionstringYesNot specified in OpenAPI
kindstringNoNot specified in OpenAPI
idobjectNoObject ID (string), obtained from a discovery or read endpoint; do not use a name as an ID. Existing record actions select exactly one record using filter, an explicit id, or an id result binding. Static id and id binding cannot coexist. When id and filter are both supplied they must match the same record. record.query has no id. Creation may omit id for server allocation.
collectionIdobjectNoUnsV2Identity. See the referenced schema in the Schemas section.
recordIdobjectNoUnsV2Identity. See the referenced schema in the Schemas section.
streamIdobjectNoUnsV2Identity. See the referenced schema in the Schemas section.
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dataobjectNoNot specified in OpenAPI
dependsOnarray<string>NoopId values that must complete first; the server checks for dependency cycles.
managedByobjectNoUnsV2ManagedBy. See the referenced schema in the Schemas section.
timeintegerNoBusiness sample time, in Unix milliseconds; this is not the server receipt time.
qualitystringNoNot specified in OpenAPI
existsbooleanNoNot specified in OpenAPI
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
selectionstringNoOnly for record.update/modify/replace. first selects the first record according to sort and rechecks it under the transaction lock. By default, matching multiple records is an error.
sortobjectNoOnly for selection=first. The server appends ascending _id order to ensure stable ordering when values are equal.
returnDocumentstringNoOnly for record.update/modify/replace; returns results[].document. If omitted, preserves the original receipt without returning a document.
operationsarray<object>NoNot specified in OpenAPI
bindingsarray<object>NoBinds a previous operation's result to a specified field of this operation; does not evaluate string templates or arbitrary code.
queryobjectNoUnsV2TransactionQuery. See the referenced schema in the Schemas section.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
lockTokensobjectNoNot specified in OpenAPI

UnsV2RecordCountReqBody

FieldTypeRequiredDescription
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
maxCountintegerNoNot specified in OpenAPI

UnsV2RecordCountResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordDeleteManyReqBody

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
maxDocsintegerNoDefault 1000; atomic requests default to 200.
resumeAfterstringNoNot specified in OpenAPI
atomicbooleanNotrue commits the entire batch atomically. Document actions are limited to 200 items, maxDocs must be at most 200, and the complete match set must fit the limit. false commits each document separately.
orderedbooleanNoNot specified in OpenAPI
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
lockTokensobjectNoNot specified in OpenAPI

UnsV2RecordDeleteManyResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordDeleteOneReqBody

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
returnDocumentstringNonone returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.

UnsV2RecordDeleteOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordExplainReqBody

FieldTypeRequiredDescription
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
opstringNoNot specified in OpenAPI
limitintegerNoFor scope evaluation, the default is 1000 and the maximum is 10000. For aggregate, the default is 20 and the maximum is 200.
pipelinearray<object>NoNot specified in OpenAPI
pageobjectNoUnsV2PipelinePage. See the referenced schema in the Schemas section.

UnsV2RecordExplainResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordFindReqBody

FieldTypeRequiredDescription
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
limitintegerNoNot specified in OpenAPI
cursorstringNoNot specified in OpenAPI
countobjectNoNot specified in OpenAPI

UnsV2RecordFindResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudRecordPage. See the referenced schema in the Schemas section.

UnsV2RecordGetReqBody

Provide at least one unique ID. items follows the request order. missing covers nonexistent, deleted, and inaccessible records. The projected response is limited to 8 MiB. If it exceeds the limit, the server returns 413 RESPONSE_TOO_LARGE. Reduce ids or the number of projection fields.

FieldTypeRequiredDescription
idsarray<string>YesNot specified in OpenAPI
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.

UnsV2RecordGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordInsertOneReqBody

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
idstringNoObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
dataobjectYesNot specified in OpenAPI
returnDocumentstringNonone returns the original insertedId response. after includes the created value in the same write transaction and requires the corresponding read permission. Idempotent replays return the original creation snapshot. dryRun returns an uncommitted preview.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.

UnsV2RecordInsertOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordLockReqBody

In ids mode, the operation succeeds or fails for all IDs together. In filter mode, it claims available Records in sort order. Expired leases are invalid, and reads are unaffected.

FieldTypeRequiredDescription
idsarray<string>NoNot specified in OpenAPI
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
limitintegerNoNot specified in OpenAPI
ttlMsintegerNoNot specified in OpenAPI
labelstringNoNot specified in OpenAPI

UnsV2RecordLockResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordQueryBatchReq

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI

UnsV2RecordQueryBatchResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordRenewReqBody

FieldTypeRequiredDescription
locksarray<object>YesNot specified in OpenAPI
ttlMsintegerNoNot specified in OpenAPI

UnsV2RecordRenewResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordReplaceOneReqBody

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
replacementobjectYesNot specified in OpenAPI
upsertbooleanNoInserts if no record matches. The filter must specify equality on _id or equality for all fields of a ready unique index. Concurrent conflicts do not create duplicate records.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
returnDocumentstringNonone returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.

UnsV2RecordReplaceOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordRestoreReqBody

Atomically restores up to 100 IDs. The operation revalidates the current Schema and unique indexes for active Records. A conflict rolls back the entire batch. Restoration increments the Record revision without rewriting Sample history.

FieldTypeRequiredDescription
idsarray<string>YesNot specified in OpenAPI
dryRunbooleanNoNot specified in OpenAPI
idempotencyKeystringNoNot specified in OpenAPI

UnsV2RecordRestoreResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordSubscribeResponse

SSE change frames contain RecordChangeEvent identity and revision only. heartbeat frames carry the safe cursor as id and {at}; reset frames carry {reason,message} without an id. Resume with Last-Event-ID. Re-read Records after change notifications.

{
  "type": "string",
  "description": "SSE change frames contain RecordChangeEvent identity and revision only. heartbeat frames carry the safe cursor as id and {at}; reset frames carry {reason,message} without an id. Resume with Last-Event-ID. Re-read Records after change notifications."
}

UnsV2RecordTransactionExecuteResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2RecordTransactionReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
dryRunbooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI

UnsV2RecordUnlockReqBody

Regular release requires a matching holder and token. Setting force=true to force a release requires additional management permission.

FieldTypeRequiredDescription
locksarray<object>NoNot specified in OpenAPI
idsarray<string>NoNot specified in OpenAPI
forcebooleanNoNot specified in OpenAPI

UnsV2RecordUnlockResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordUpdateManyAtomicReq

FieldTypeRequiredDescription
collectionIdstringYesCollection ID owning the business Records and Samples.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
updateobjectYesupdate 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.
arrayFiltersarray<object>NoNot specified in OpenAPI
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.

UnsV2RecordUpdateManyAtomicResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordUpdateManyReqBody

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
updateobjectYesupdate 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.
arrayFiltersarray<object>NoNot specified in OpenAPI
maxDocsintegerNoDefault 1000; atomic requests default to 200.
resumeAfterstringNoNot specified in OpenAPI
atomicbooleanNotrue commits the entire batch atomically. Document actions are limited to 200 items, maxDocs must be at most 200, and the complete match set must fit the limit. false commits each document separately.
orderedbooleanNoNot specified in OpenAPI
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
lockTokensobjectNoNot specified in OpenAPI

UnsV2RecordUpdateManyResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2RecordUpdateOneReqBody

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
updateobjectYesupdate 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.
arrayFiltersarray<object>NoNot specified in OpenAPI
upsertbooleanNoInserts if no record matches. The filter must specify equality on _id or equality for all fields of a ready unique index. Concurrent conflicts do not create duplicate records.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
returnDocumentstringNonone returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.

UnsV2RecordUpdateOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2ReferencesDocumentedRequest

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI

UnsV2ReferencesQuery

FieldTypeRequiredDescription
queryIdstringYesIdentifier unique within this query batch, used to match results.
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
targetsarray<object>NoNot specified in OpenAPI
relationKindsarray<string>NoNot specified in OpenAPI

UnsV2ReferenceTarget

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.

UnsV2ResultBinding

FieldTypeRequiredDescription
pathstringYesA data.field DTO path, operations.N.value, or a JSON Pointer beginning with filter/ (for example filter/available/$gte or filter/_id/$eq). Filter pointers may replace only existing scalar/null placeholders, never predicate structure. id may bind a Record identity returned by a query in the same Collection.
refstringYesNot specified in OpenAPI
resultPathstringYesid/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.
formatstringNoFormat a transactionTime result as an ISO 8601 timestamp.
jsonPathstringNoJSON Pointer to an existing scalar inside a JSON object stored as a string.

UnsV2SampleAggregateReqBody

recordIds accepts multiple Record IDs. If omitted, queries the authorized scope in the current Collection. filter and pipeline cannot expand the requested time range or Record scope. Results share one pagination sequence. series accepts one $group stage with _id.recordId:"$_meta.recordId", plus optional $match and $sort stages. limit or page.size counts Record IDs. The 8 MiB per-response budget still applies.

FieldTypeRequiredDescription
recordIdsarray<string>NoIn rows mode, accepts up to 20 IDs. Omission uses the authorized scope. In series mode, IDs are required and are paginated in request order.
fromintegerYesInclusive start time in Unix milliseconds.
tointegerYesExclusive end time in Unix milliseconds. Must be greater than from.
pipelinearray<object>YesNot specified in OpenAPI
limitintegerNoNot specified in OpenAPI
pageobjectNoUnsV2PipelinePage. See the referenced schema in the Schemas section.
resultFormatstringNorows returns a list of aggregation documents. series paginates the supplied Record IDs. Each outer item is {recordId, items}, with an empty items array if no Samples match.

UnsV2SampleAggregateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudDataPage. See the referenced schema in the Schemas section.

UnsV2SampleAppendReqBody

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI

UnsV2SampleAppendResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2SampleDeleteExactReqBody

FieldTypeRequiredDescription
samplesarray<object>YesNot specified in OpenAPI
dryRunbooleanNoNot specified in OpenAPI
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.

UnsV2SampleDeleteExactResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SampleDeleteRangeReqBody

Permanently deletes Samples for the specified recordIds within [from, to). Requires delete permission. dryRun returns the expected deletion count. Parent Records are retained.

FieldTypeRequiredDescription
recordIdsarray<string>YesList of Record IDs, with no Collection IDs.
fromintegerYesTime range start, Unix milliseconds.
tointegerYesTime range end, Unix milliseconds.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.

UnsV2SampleDeleteRangeResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SampleFindReqBody

recordIds accepts multiple Record IDs. If omitted, queries the authorized scope in the current Collection. filter and pipeline cannot expand the requested time range or Record scope. Results share one pagination sequence.

FieldTypeRequiredDescription
recordIdsarray<string>NoNot specified in OpenAPI
fromintegerYesInclusive start time in Unix milliseconds.
tointegerYesExclusive end time in Unix milliseconds. Must be greater than from.
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
limitintegerNoNot specified in OpenAPI
cursorstringNoNot specified in OpenAPI
pageobjectNoUnsV2PipelinePage. See the referenced schema in the Schemas section.

UnsV2SampleFindResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudSamplePage. See the referenced schema in the Schemas section.

UnsV2SampleLatestValuesReqBody

recordIds is required and must contain at least one ID with no duplicates. Returns the latest stored Sample for each Record in request order, or null when a Record has no Sample.

FieldTypeRequiredDescription
recordIdsarray<string>YesNot specified in OpenAPI

UnsV2SampleLatestValuesResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SelectedRecord

FieldTypeRequiredDescription
recordIdstringYesBusiness Record ID owning the Sample.
historyobjectNoUnsV2History. See the referenced schema in the Schemas section.

UnsV2SourceCredentialsListReq

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.

UnsV2SourceCredentialsListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.

UnsV2SourceDevicesListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceDiscoverResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.

UnsV2SourceDocumentCreateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceDocumentDeleteReq

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
expectedRevisionintegerYesExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
confirmedImpactRevisionstringNoDependency 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.

UnsV2SourceDocumentDeleteResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceDocumentGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceDocumentListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceDocumentStateUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceDocumentUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceHistoryReq

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
beforeRevisionintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI

UnsV2SourceHistoryResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceImpactResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceNativeCredentialsUpdateReq

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idempotencyKeystringYesUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
expectedRevisionintegerYesExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
credentialsobjectYesSourceCredentials. See the referenced schema in the Schemas section.
confirmedImpactRevisionstringNoDependency 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.

UnsV2SourceNativeCredentialsUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceNativeOAuthCompleteReq

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only, without committing. Validation does not reserve resources; execution checks them again. OAuth state creation and token exchange require execution. A preview is rejected.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
statestringYesNot specified in OpenAPI
codestringYesNot specified in OpenAPI

UnsV2SourceNativeOAuthCompleteResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceNativeOAuthStartReq

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only, without committing. Validation does not reserve resources; execution checks them again. OAuth state creation and token exchange require execution. A preview is rejected.
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
redirectUristringYesNot specified in OpenAPI

UnsV2SourceNativeOAuthStartResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceObservationsGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceOpcuaEndpointsReq

FieldTypeRequiredDescription
endpointstringYesNot specified in OpenAPI

UnsV2SourceOpcuaEndpointsResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceOpcuaPointsDiscoverReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
expectedRevisionintegerYesExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly.
parentResourceRefstringNoNot specified in OpenAPI
resourceRefsarray<string>NoNot specified in OpenAPI

UnsV2SourceOpcuaPointsDiscoverResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceProbeReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
timeoutMsintegerYesNot specified in OpenAPI
modestringNoconnection performs a bounded lightweight check; data explicitly validates a configured readable resource without writing business data. Only enabled Sources are periodically checked every 10 minutes on their owning runtime. Cloud never schedules checks for Edge references. Data checks never replace connection health.

UnsV2SourceProbeResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesExecuted checks return SourceCheckResult fields; dryRun returns validated:true and sideEffects:false without performing a check.

UnsV2SourceProtocolsListReq

{
  "type": "object",
  "additionalProperties": false,
  "properties": {},
  "required": []
}

UnsV2SourceProtocolsListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.

UnsV2SourceReplaceReq

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
replacementobjectYesSourceData. See the referenced schema in the Schemas section.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.

UnsV2SourceReplaceResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceResourceCatalogResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceResourceReadResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceResourceScanResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceRuntimeGetReq

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.

UnsV2SourceRuntimeGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2SourceRuntimeReadReq

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
configRevisionintegerYesNot specified in OpenAPI
rangeobjectYesNot specified in OpenAPI
timeoutMsintegerYesNot specified in OpenAPI

UnsV2SourceRuntimeReadResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.

UnsV2SourceValidateReq

FieldTypeRequiredDescription
documentobjectYesSourceDefinition. See the referenced schema in the Schemas section.

UnsV2SourceValidateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.

UnsV2StreamCreateReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI

UnsV2StreamCreateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2StreamDocumentCreateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamDocumentDisableResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamDocumentGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamDocumentUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamDocumentValidateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamDraftUpdateReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI

UnsV2StreamDraftUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2StreamGetReq

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.

UnsV2StreamGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamListReq

FieldTypeRequiredDescription
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.
archivedbooleanNotrue lists archived objects only; false lists active objects only.

UnsV2StreamListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamObservationGetReq

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.

UnsV2StreamObservationGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamProgramDeleteResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamProgramDeployReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly. Optional optimistic concurrency guard; omission updates the current object.
expectedSourceRevisionintegerNoNot specified in OpenAPI
expectedReleaseStatestringNoCloud extension: require inactive state; mutually exclusive with expectedActiveVersion.
expectedActiveVersionstringNoAuthoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence.

UnsV2StreamProgramDeployResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.

UnsV2StreamProgramInvokeReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
expectedActiveVersionstringYesNot specified in OpenAPI
entryIdstringNoNot specified in OpenAPI
inputobjectYesNot specified in OpenAPI
timeoutMsintegerYesNot specified in OpenAPI

UnsV2StreamProgramInvokeResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.

UnsV2StreamProgramListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamProgramRollbackReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
expectedRevisionintegerNoExpected revision read from the current object. On conflict, read again and decide; never overwrite blindly. Optional optimistic concurrency guard; omission updates the current object.
expectedSourceRevisionintegerNoNot specified in OpenAPI
versionIdstringYesNot specified in OpenAPI
expectedReleaseStatestringNoCloud extension: require inactive state; mutually exclusive with expectedActiveVersion.
expectedActiveVersionstringNoAuthoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence.

UnsV2StreamProgramRollbackResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.

UnsV2StreamProgramRunsGetReq

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
runIdstringYesNot specified in OpenAPI

UnsV2StreamProgramRunsGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.

UnsV2StreamProgramRunsListReq

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.
statusstringNoNot specified in OpenAPI

UnsV2StreamProgramRunsListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.

UnsV2StreamProgramTestReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanNotrue validates only, without committing or reserving resources. Execution rechecks all conditions.
documentobjectYesRuntimeStreamDefinition. See the referenced schema in the Schemas section.
inputobjectYesRuntimeProgramTestInput. See the referenced schema in the Schemas section.
phasestringYesNot specified in OpenAPI
entryIdstringNoNot specified in OpenAPI
expectedSourceRevisionintegerNoNot specified in OpenAPI

UnsV2StreamProgramTestResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.

UnsV2StreamProgramVersionsListReq

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.

UnsV2StreamProgramVersionsListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesExisting Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects.

UnsV2StreamPublishReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI

UnsV2StreamPublishResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2StreamReleasesGetReq

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
releaseintegerYesNot specified in OpenAPI

UnsV2StreamReleasesGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamReleasesListReq

FieldTypeRequiredDescription
idstringYesObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.

UnsV2StreamReleasesListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamReleasesRestoreReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI

UnsV2StreamReleasesRestoreResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2StreamReplaceReq

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerNoOptional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs.
replacementobjectYesStreamData. See the referenced schema in the Schemas section.
dryRunbooleanNoValidates the operation and rolls it back without reserving resources.
idempotencyKeystringNoReuse this key when retrying the same intended write. Use a new key if the request content changes.

UnsV2StreamReplaceResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamRequestGrantGetReq

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
principalKindstringYesNot specified in OpenAPI
principalIDstringYesNot specified in OpenAPI

UnsV2StreamRequestGrantGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesAppRequestGrantView. See the referenced schema in the Schemas section.

UnsV2StreamRequestGrantSetReq

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
principalKindstringYesNot specified in OpenAPI
principalIDstringYesNot specified in OpenAPI
activeintegerYesNot specified in OpenAPI
actionsarray<string>NoNot specified in OpenAPI
expectedSnapshotTokenstringNoNot specified in OpenAPI
expectedCodeRevisionintegerNoNot specified in OpenAPI
expectedBindingDigeststringNoNot specified in OpenAPI
targetRevisionsarray<object>NoNot specified in OpenAPI

UnsV2StreamRequestGrantSetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesAppRequestGrantView. See the referenced schema in the Schemas section.

UnsV2StreamRunGetReq

FieldTypeRequiredDescription
runIdstringYesNot specified in OpenAPI

UnsV2StreamRunGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamRunsListReq

FieldTypeRequiredDescription
idstringNoObject ID string obtained from discovery or a read operation. Do not use a name as an ID.
pageintegerNoPage number, starting at 1.
sizeintegerNoItems per page; the maximum is declared by this operation's maximum constraint or the capability catalog.
searchstringNoSearch by name or supported text fields; not SQL.
cursorstringNoOpaque creation-time/id continuation bound; retain the same id and native filters. Mutually exclusive with page when nonempty.
statusstringNoNot specified in OpenAPI
sourceIdstringNoNot specified in OpenAPI
topicIdstringNoNot specified in OpenAPI
modelstringNoNot specified in OpenAPI

UnsV2StreamRunsListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamSampleTestReq

FieldTypeRequiredDescription
documentobjectYesCloudStreamDocument. See the referenced schema in the Schemas section.
entryIdstringYesNot specified in OpenAPI
inputobjectYesNot specified in OpenAPI

UnsV2StreamSampleTestResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

UnsV2StreamUpdateReq

FieldTypeRequiredDescription
idempotencyKeystringNoUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route.
dryRunbooleanYestrue validates only, without committing or reserving resources. Execution rechecks all conditions.
allowPartialbooleanNoSupported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI

UnsV2StreamUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesOutcome. See the referenced schema in the Schemas section.

UnsV2TimeRange

FieldTypeRequiredDescription
fromintegerYesTime range start, Unix milliseconds.
tointegerYesTime range end, Unix milliseconds.

UnsV2TopicsDocumentedRequest

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI

UnsV2TopicsQuery

FieldTypeRequiredDescription
queryIdstringYesIdentifier unique within this query batch, used to match results.
topicIdstringNoNot specified in OpenAPI
includearray<string>NoNot specified in OpenAPI
recordsobjectNoUnsV2Page. See the referenced schema in the Schemas section.
selectedRecordobjectNoUnsV2SelectedRecord. See the referenced schema in the Schemas section.

UnsV2TransactionQuery

FieldTypeRequiredDescription
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
limitintegerNoReturned row limit; omitted or 0 means 20. Count assertions apply before this limit.
expectCountobjectNoUnsV2QueryCountExpectation. See the referenced schema in the Schemas section.

UnsV2TransactionStatusReq

FieldTypeRequiredDescription
scopestringNoNot specified in OpenAPI
idempotencyKeystringYesUnique key for this business intent. Reuse it for identical retries; never reuse it for a different request.

UnsV2TransactionStatusResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesTransactionStatusResult. See the referenced schema in the Schemas section.

WMSMapping

FieldTypeRequiredDescription
fieldsarray<string>YesNot specified in OpenAPI
keyColumnstringYesNot specified in OpenAPI
tablestringYesNot specified in OpenAPI
updatedAtstringNoNot specified in OpenAPI

WriteDelivery

FieldTypeRequiredDescription
centerCommittedbooleanYesNot specified in OpenAPI
eventIdsarray<string>NoNot specified in OpenAPI
failedintegerYesNot specified in OpenAPI
localCommittedbooleanYesNot specified in OpenAPI
pendingintegerYesNot specified in OpenAPI
statestringYesNot specified in OpenAPI