Operations
API field names, examples, and source descriptions follow the bundled English OpenAPI specification.
Collection management
Collection management endpoints
POST/uns/discovery/describe
Read collection data definitions
Return field definitions and data-operation capabilities by collectionId for constructing queries and writes.
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
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID identifying the owner of business records and samples. |
Responses
200default
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | CollectionDescription. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/discovery/search
Search accessible collections
Search collections accessible to the current credentials using keywords and pagination.
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
| Field | Type | Required | Description |
|---|
search | string | No | Search names or supported text fields; not SQL. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Page size; see this endpoint's maximum or the capability catalog. Page size, at most 200. |
Responses
200default
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | DiscoveryResult. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
API capabilities
Capability endpoints
POST/uns/catalog/get
Read the capability catalog
Return current UNS resource, query and write capabilities and limits.
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
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"capabilities": {},
"contractVersion": "string",
"limits": {},
"models": [
"value"
],
"operations": [
"value"
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | DocCatalog. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/edges/list
Discover Edges in the current workspace
List Edge nodes in the current workspace. This is a Center-only read operation; do not send X-Fleet-Node-Id.
- **Access:** A workspace identity with uns.read can call this endpoint. App-bound identities cannot.
- **Query:** Use page and size to paginate. Optionally filter by keyword or status.
- **Result:** Returns each node's ID, name, description and infrastructure status. Credentials, sessions and host details are excluded.
To read a specific Edge node's catalog, Sources, Streams, Collections or business data, use its ID in the X-Fleet-Node-Id header on the corresponding endpoint.
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
| Field | Type | Required | Description |
|---|
page | integer | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
keyword | string | No | Not specified in OpenAPI |
status | string | No | Not specified in OpenAPI |
Responses
200default
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Namespace
Namespace endpoints
POST/uns/namespace/query
Query the namespace
Use queries to retrieve directories and topics by parent, optionally including ancestors.
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","ids":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"results": []
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/topics/view
Read topic views
Read bound field values, availability and associated timestamps.
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"}]}'application/json
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"results": []
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Metadata management
Metadata management endpoints
POST/uns/metadata
Insert one metadata object
Create a directory, topic or collection. With appId/alias, only collection creation is allowed. The server atomically binds app grants, requires idempotencyKey and rechecks current Builder permissions.
Prefer the ISA-95 equipment hierarchy for industrial data: Enterprise > Site > Area > Work Center (production line, production unit, process cell, or storage zone) > Work Unit. First query existing directories with paginated metadataFind and reuse them. Create only known, meaningful business levels; do not invent enterprises, sites, or equipment, or substitute control activity Levels 0-4 for the equipment hierarchy. Attach data and references with parentId. Place shared data under a suitable common ancestor, and organize non-industrial data by its actual business hierarchy. User-facing names of directories, collections, and references must be concise, readable, and describe their business purpose. Follow the user's language preferences and established terminology; Chinese is not required and translation is not mandatory. name is the sole user-facing business name. App SDK alias is a separate stable program identifier, for example alias=production_orders and name=Production Orders. For example, use Quality Inspection Records or its equivalent in the user's language. Do not use program aliases such as quality_records as display labels, or use App-timestamp, random strings, or IDs as names or meaningless suffixes. Dates, versions, and equipment numbers with actual business meaning may remain. Rename only changes name; keep ID and alias unchanged to preserve program references. Report sibling name collisions explicitly; never append random suffixes automatically. Do not automatically move existing data or change permissions to reorganize directories.
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":{},"appId":"string","alias":"string"}'application/json
| Field | Type | Required | Description |
|---|
kind | string | Yes | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
id | string | No | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
appId | string (uuid) | No | Not specified in OpenAPI |
alias | string | No | Not specified in OpenAPI |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | 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 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
| Field | Type | Required | Description |
|---|
kind | string | No | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
kinds | array<string> | No | Not specified in OpenAPI |
state | string | No | Active, soft-deleted or all objects. |
filter | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
pipeline | array<object> | Yes | Supports $match/$project/$group/$sort/$skip/$limit/$distinct. $distinct uses JSONB value ordering and the outer pagination options. |
page | object | No | Not specified in OpenAPI |
limit | integer | No | Not 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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/metadata:bulkWrite
Execute mixed metadata writes
At most 200 operations of one kind. Atomic by default; for non-atomic execution, ordered controls continuation after errors and results retain original indices. After any non-atomic item commits, failures report error.execution=committed and retry.safe=false. Error data contains cumulative results with nextIndex and optionally unknownUntil. Indices below nextIndex absent from errors committed; [nextIndex, unknownUntil) has unknown outcome. Retry with the same idempotency key if available. Without a key, only client-ID inserts and ID-based replacements/deletes can be reconciled by reading IDs. Server-generated-ID inserts, filter-selected operations and incremental updates such as $inc cannot be safely reconciled; always use keys for these writes. Without unknownUntil, continuation from nextIndex is safe. Only when nothing committed is execution rolledBack or notStarted.
Prefer the ISA-95 equipment hierarchy for industrial data: Enterprise > Site > Area > Work Center (production line, production unit, process cell, or storage zone) > Work Unit. First query existing directories with paginated metadataFind and reuse them. Create only known, meaningful business levels; do not invent enterprises, sites, or equipment, or substitute control activity Levels 0-4 for the equipment hierarchy. Attach data and references with parentId. Place shared data under a suitable common ancestor, and organize non-industrial data by its actual business hierarchy. User-facing names of directories, collections, and references must be concise, readable, and describe their business purpose. Follow the user's language preferences and established terminology; Chinese is not required and translation is not mandatory. name is the sole user-facing business name. App SDK alias is a separate stable program identifier, for example alias=production_orders and name=Production Orders. For example, use Quality Inspection Records or its equivalent in the user's language. Do not use program aliases such as quality_records as display labels, or use App-timestamp, random strings, or IDs as names or meaningless suffixes. Dates, versions, and equipment numbers with actual business meaning may remain. Rename only changes name; keep ID and alias unchanged to preserve program references. Report sibling name collisions explicitly; never append random suffixes automatically. Do not automatically move existing data or change permissions to reorganize directories.
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
| Field | Type | Required | Description |
|---|
kind | string | Yes | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
operations | array<object> | Yes | Not specified in OpenAPI |
atomic | boolean | No | Atomic batch commit by default. false commits items independently; each object still receives full permission and domain validation. |
ordered | boolean | No | With atomic=false, controls stopping or continuing after errors; atomic batches reject ordered=false. |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response. After a partial commit, error.execution=committed and retry.safe=false; data contains cumulative results. | application/json |
POST/uns/metadata:count
Count metadata objects
Count matching objects within the specified kind and state.
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
| Field | Type | Required | Description |
|---|
kind | string | No | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
kinds | array<string> | No | Not specified in OpenAPI |
state | string | No | Active, soft-deleted or all objects. |
filter | object | No | UnsV2DataFilter. 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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/metadata:deleteMany
Soft-delete metadata in bulk
Conditional bulk operation within an explicit kind. Atomic batch; reject everything if matches exceed maxDocs. Use bulkWrite when objects need independent revision checks. Soft deletion moves objects to Trash; deleting a directory atomically moves its entire active subtree to Trash. References do not block deletion. Referring configurations and Record/Sample data are retained; historical data remains readable under existing authorization while in Trash, with writes rejected.
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
| Field | Type | Required | Description |
|---|
kind | string | Yes | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
atomic | boolean | No | Atomic batch commit; use bulkWrite for per-item commits. |
maxDocs | integer | No | Reject the entire request if the match limit is exceeded; do not truncate the write scope. |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/metadata:deleteOne
Soft-delete one metadata object
Soft deletion moves objects to Trash; deleting a directory atomically moves its entire active subtree to Trash. References do not block deletion. Referring configurations and Record/Sample data are retained; historical data remains readable under existing authorization while in Trash, with writes rejected.
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
| Field | Type | Required | Description |
|---|
kind | string | Yes | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
expectedRevision | integer | No | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
returnDocument | string | No | none returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion. |
projection | object | No | Include 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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/metadata:find
Query metadata
Query directories, topics and collections. Use bare configuration field names and _id / _meta.* for system fields. Returns items/pageInfo.
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
| Field | Type | Required | Description |
|---|
kind | string | No | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
kinds | array<string> | No | Not specified in OpenAPI |
state | string | No | Active, soft-deleted or all objects. |
filter | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
page | object | No | Not specified in OpenAPI |
limit | integer | No | Not 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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | MetadataPage. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/metadata:purge
Permanently delete directories, references, or collections from the recycle bin
Accepts up to 200 explicit Directory, Topic, or Collection IDs in the current workspace recycle bin. Single and batch deletion use the same operation. Execution returns accepted/jobId. Query jobs for per-item completion; accepted does not mean permanently deleted. Targets are cleaned independently; a failure does not roll back completed items. Purging a Collection deletes all records (including soft-deleted records), samples, and collection metadata, and revokes App grants to the collection. Indexes are reclaimed in the background. Referencing Topics, Sources, and Streams are preserved. References describe impact rather than blocking deletion; data access reports the missing target. Restore is unavailable after cleanup starts. Interrupted work can resume; same-key retries do not reselect completed targets. Optional dryRun validates targets without creating a task or deleting data. No prerequisite preflight, force flag, or confirmation token is required. Directories include their entire deleted subtree, including previously deleted descendants. Any active descendant rejects the request. Descendants are cleaned before empty directories. Deleting a Topic removes only its reference metadata and preserves the referenced collections, records, and samples. To empty the recycle bin, freeze the current target IDs and submit batches by kind. Do not submit descendants separately when their directory is selected. Items moved to trash with their owner App and their descendants cannot be purged independently; restore or permanently delete the owner App in App Trash. A directory containing these items is rejected as a whole.
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
| Field | Type | Required | Description |
|---|
kind | string | Yes | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
ids | array<string> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"results": [
{
"opId": "item-0",
"action": "meta.purge",
"kind": "metadata",
"id": "example-id",
"revision": 1,
"status": "updated"
}
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | DocUnsV2MetadataPurgeOutcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/metadata:replaceOne
Replace one metadata object
Fully replace writable configuration with schema, index and reference validation; system fields remain server-managed. Upsert insertion requires explicit _id and complete configuration.
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
| Field | Type | Required | Description |
|---|
kind | string | Yes | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
expectedRevision | integer | No | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
replacement | object | Yes | Not specified in OpenAPI |
upsert | boolean | No | Supported only for single updates/replacements; filter must explicitly match _id and inserted configuration must be complete and valid. Deleted objects with the same ID are not restored automatically. |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
returnDocument | string | No | none returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion. |
projection | object | No | Include 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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/metadata:restore
Restore metadata by ID
Restore atomically, rechecking current names, parents and references and incrementing revision. Restoring a directory restores only the subtree from the same deletion batch; batch children must be restored with the directory. Other dependencies are not implicitly restored.
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
| Field | Type | Required | Description |
|---|
kind | string | Yes | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
items | array<object> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/metadata:transact
Execute a metadata transaction
Atomic operations across directories, topics and collections. opId/dependsOn control dependencies; parentId/collectionId accept {ref:opId} to reference creation results. At most 200 items; dryRun=true preflights and then rolls back.
Prefer the ISA-95 equipment hierarchy for industrial data: Enterprise > Site > Area > Work Center (production line, production unit, process cell, or storage zone) > Work Unit. First query existing directories with paginated metadataFind and reuse them. Create only known, meaningful business levels; do not invent enterprises, sites, or equipment, or substitute control activity Levels 0-4 for the equipment hierarchy. Attach data and references with parentId. Place shared data under a suitable common ancestor, and organize non-industrial data by its actual business hierarchy. User-facing names of directories, collections, and references must be concise, readable, and describe their business purpose. Follow the user's language preferences and established terminology; Chinese is not required and translation is not mandatory. name is the sole user-facing business name. App SDK alias is a separate stable program identifier, for example alias=production_orders and name=Production Orders. For example, use Quality Inspection Records or its equivalent in the user's language. Do not use program aliases such as quality_records as display labels, or use App-timestamp, random strings, or IDs as names or meaningless suffixes. Dates, versions, and equipment numbers with actual business meaning may remain. Rename only changes name; keep ID and alias unchanged to preserve program references. Report sibling name collisions explicitly; never append random suffixes automatically. Do not automatically move existing data or change permissions to reorganize directories.
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
| Field | Type | Required | Description |
|---|
operations | array<object> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/metadata:updateMany
Update metadata in bulk
Conditional bulk operation within an explicit kind. Atomic batch; reject everything if matches exceed maxDocs. Use bulkWrite when objects need independent revision checks.
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
| Field | Type | Required | Description |
|---|
kind | string | Yes | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
update | object | Yes | Supports only $set/$unset/$setOnInsert. Configuration paths omit data.; system fields are read-only. Replace arrays as whole fields. |
atomic | boolean | No | Atomic batch commit; use bulkWrite for per-item commits. |
maxDocs | integer | No | Reject the entire request if the match limit is exceeded; do not truncate the write scope. |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/metadata:updateOne
Update one metadata object
Selection and update occur in one transaction with domain validation. Upsert insertion requires explicit _id and complete configuration.
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
| Field | Type | Required | Description |
|---|
kind | string | Yes | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
expectedRevision | integer | No | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
update | object | Yes | Supports only $set/$unset/$setOnInsert. Configuration paths omit data.; system fields are read-only. Replace arrays as whole fields. |
upsert | boolean | No | Supported only for single updates/replacements; filter must explicitly match _id and inserted configuration must be complete and valid. Deleted objects with the same ID are not restored automatically. |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
returnDocument | string | No | none returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion. |
projection | object | No | Include 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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/references/query
Query resource references
Query resource references by targets. Collection App references include grants and policy status for that Collection. Stream references include only frozen dependencies of the currently effective release: relationship.access describes read/write access to this target, and data.sourceIds contains the unique, sorted Source IDs bound by the same release. With Source read permission, no bindings returns an empty array. Without that permission, the field is omitted while the Stream reference remains visible. An omitted field does not mean no bindings. Drafts, historical releases and disabled Streams are excluded. Version selection is not supported. Use kinds to select app/stream/source/topic. status=active excludes disabled configuration; filtering precedes permission checks and pagination. Dependencies do not prove active writes or per-record provenance. Each target is paginated independently and sorted by kind and ID. Continue using nextPage only for targets with hasMore. The total request row budget is 2000. With size=20, a batch can contain at most 100 targets. Hidden reference items continue to be indicated only by hasHiddenReferences.
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","kinds":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"results": []
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Jobs
Job endpoints
POST/uns/jobs/query
Query job status
Query asynchronous job states and results by jobIds; queryId in queries correlates results. App credentials cannot submit asynchronous jobs or call this endpoint.
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
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"results": []
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Sources
Source endpoints
POST/uns/sources/devices/list
Discover attached Edge devices
Requires X-Fleet-Node-Id. Enumerate live USB HID and serial hardware before creating a Source, including device addresses, existing bindings, checkedAt, revision and completeness. Optional kind is usb-hid or serial. Discovery does not capture input text. Serial acquisition requires a protocol adapter. Users must identify ambiguous keyboard devices remotely. No on-site test scan is required.
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
| Field | Type | Required | Description |
|---|
kind | string | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | Fresh target Edge inventory. checkedAt is observation time; revision hashes device and binding state; complete=false includes per-kind discovery errors. devices contain deviceId, kind, label, address, canCreateSource, requiredParameters and existing sources. Serial discovery does not imply serial acquisition support. Empty devices only proves absence when complete=true. Never classify an arbitrary HID keyboard as a scanner without device identity supplied by the user. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/discover
Discover Source resources
Read the vendor service directory using id and the current expectedRevision. SAP OData is currently supported. Source management, data read and credential-use permissions are required; endpoint, path, method and authentication overrides are rejected. Returns resource names and references within the service root without credentials or the Source endpoint. Credential use is audited, so this operation is not a side-effect-free query.
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
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"id": "string",
"revision": 0,
"sourceType": "string",
"resources": [
"value"
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/documents/create
Create a Source document
Create using the shared native document with top-level endpoint and protocol fields. Supply write-only credentials or an existing document.credentialRef. Inline credentials require credential management permission and an idempotency key, including each batch item. dryRun validates without storing credentials or contacting the upstream.
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"}},"credentials":{"kind":"basic","username":"string","secret":"string","values":{},"certificateFileId":"string"},"items":[{"id":"value","document":"value","credentials":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
document | object | No | SourceDefinition. See the referenced schema in the Schemas section. |
credentials | object | No | SourceCredentials. See the referenced schema in the Schemas section. |
items | array<object> | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/documents/credentials/update
Update Source credentials
Provision or rotate shared write-only credentials using Source ID and expectedRevision under uns.source.credentials authority and source:manage scope. For dependencies, inspect sourceImpact with action=credentials first and explicitly supply confirmedImpactRevision after review. Optional Fleet targeting uses the same native request. Credential material is never returned.
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
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | Yes | Required idempotency key; reuse for the same request, never for a different request. |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
expectedRevision | integer | Yes | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
credentials | object | Yes | SourceCredentials. See the referenced schema in the Schemas section. |
confirmedImpactRevision | string | No | Dependency impact confirmation token. May be omitted only when there are no draft, active or historical Stream dependencies. An explicitly supplied token is always validated and cannot be empty. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/documents/delete
Delete a Source document
Delete the current Source using id and expectedRevision. Submit the dependency impact confirmation when required. dryRun validates without committing. Fleet targeting uses the same native document contract.
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
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
expectedRevision | integer | Yes | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
confirmedImpactRevision | string | No | Dependency impact confirmation token. May be omitted only when there are no draft, active or historical Stream dependencies. An explicitly supplied token is always validated and cannot be empty. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/documents/get
Read a source document
Read a source's full native configuration document by id, requiring source management permission.
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
| Field | Type | Required | Description |
|---|
id | string | Yes | Positive decimal int64 identifier; always a string on the wire. |
view | string | No | summary requires view permission and omits scripts/connection settings. full or omission requires management permission; API keys also require full_access, and MCP requires the corresponding management scope. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/documents/list
List source documents
List sources with pagination and filters such as protocol and health. Returns safe summaries by default. includeDocument=true requires management permission and includes full native configuration.
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
| Field | Type | Required | Description |
|---|
page | integer | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
search | string | No | Not specified in OpenAPI |
protocol | string | No | Not specified in OpenAPI |
health | string | No | Not specified in OpenAPI |
archived | boolean | No | Not specified in OpenAPI |
includeDocument | boolean | No | False returns safe summaries for viewers. True additionally requires current Source manage permission and returns full native editor documents, including opaque references. |
desiredState | string | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"list": [
"value"
],
"total": 0,
"page": 0,
"size": 0,
"hasMore": false
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/documents/oauth/complete
Complete Source OAuth authorization
Complete the Source authorization flow using its one-time state and code under Source credential management authority. Credentials remain write-only.
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
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
state | string | Yes | Not specified in OpenAPI |
code | string | Yes | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/documents/oauth/start
Start Source OAuth authorization
Start the authorization flow for the selected Source under Source credential management authority. Uses the normal source:manage API Key scope; Fleet targeting forwards the same native contract.
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
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
redirectUri | string | Yes | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/documents/state/update
Update native Edge Source enabled state
Requires X-Fleet-Node-Id and Source management permission. Read the target Source revision first; submit dryRun, id, expectedRevision and desiredState (enabled or disabled). Keep any required dependency impact confirmation and a stable idempotency key. The Edge performs final permission and version checks. Requests without a target fail before dispatch; this does not modify center Sources.
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
| Field | Type | Required | Description |
|---|
dryRun | boolean | Yes | true validates only; false performs writes. |
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Not specified in OpenAPI |
desiredState | string | Yes | Not specified in OpenAPI |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
confirmedImpactRevision | string | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | Native Edge Source result; inspect the target catalog for its exact versioned response. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/documents/update
Update source documents
Update a source with document or patch and its current expectedRevision. Name and description changes can be submitted directly. Connection changes can also be submitted directly when there are no Stream references; otherwise supply a confirmedImpactRevision for the exact change. A successful commit returns the complete Source; dryRun=true validates only.
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"}}}'application/json
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | No | Positive decimal int64 identifier; always a string on the wire. |
expectedRevision | integer | No | Not specified in OpenAPI |
document | object | No | SourceDefinition. See the referenced schema in the Schemas section. |
confirmedImpactRevision | string | No | Cloud requires explicit expectedRevision. confirmedImpactRevision may be omitted only when the same mutation transaction proves there are no draft, active or historical Stream references. Any supplied confirmation remains bound to the exact intent and dependency set. Confirmation never substitutes authorization or idempotency. |
patch | object | No | SourceDefinitionPatch. See the referenced schema in the Schemas section. |
items | array<object> | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/history
Read source change history
Read source revision history by id; use beforeRevision to page backward.
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
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
beforeRevision | integer | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
Responses
200default
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/impact
Inspect Source mutation dependencies
Submit id, expectedRevision and action. For credential rotation use action=credentials without document, patch or secrets. Review all returned dependencies before explicitly passing confirmedImpactRevision to credentials/update. The token binds ID, revision, dependency snapshot and action; it does not include a random credential reference. Never automatically confirm an impact.
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"}},"offset":0}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Not specified in OpenAPI |
action | string | Yes | Not specified in OpenAPI |
document | object | No | SourceDefinition. See the referenced schema in the Schemas section. |
offset | integer | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
impactRevision | string | No | Opaque exact-intent confirmation from sourceImpact. Never inferred, synthesized or refreshed automatically. |
patch | object | No | SourceDefinitionPatch. See the referenced schema in the Schemas section. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"impactRevision": "string",
"sourceID": "string",
"sourceRevision": 0,
"action": "update",
"complete": 1
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/observations/get
Read source observations
Read observations for items in a batch; statistics cover accepted execution tasks.
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
| Field | Type | Required | Description |
|---|
items | array<object> | Yes | Not specified in OpenAPI |
view | string | No | summary returns only the latest durable admission time for each requested revision; full preserves the 24-hour counters. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/probe
Probe a source connection
Probe the source within timeoutMs. HTTP probes check network connectivity only; they do not send business HTTP requests or establish successful authentication or collection. dryRun=true validates the probe request only.
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}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
dryRun | boolean | Yes | true validates only; false performs writes. |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
timeoutMs | integer | Yes | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/protocols/list
List source protocols
Return supported source protocols and their configuration capabilities.
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
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/resources/catalog
List declared Edge Source resources
Use the Source ID to list declared resources, supported modes, input and output schemas, and configuration revisions. Use the target node's native Source ID with X-Fleet-Node-Id, or a cloud Edge reference ID without the header. Import a declared Teamcenter vendor:teamcenter:file:<selectionId> into a formal private Asset with await api.assets.importSource(sourceAlias,resourceRef) in an integration Stream. First declare the bound Source with api.sources.use(alias). This side effect is bounded to 8 MiB and 60 seconds, returns fileKey/filePath/sha256/sizeBytes and version UIDs, and uses the effect ledger and idempotent SYS confirmation. Paths, URLs and tickets are not accepted.
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
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
configRevision | integer | No | Not specified in OpenAPI |
Responses
200default
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/resources/preview
Preview an Edge Source resource
Read a bounded sample through the target Edge using the catalog revision and resourceRef. Credentials stay on the Edge. Only declared resources can be read. Device addresses, authentication and vendor request paths cannot be overridden.
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
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
configRevision | integer | Yes | Not specified in OpenAPI |
resourceRef | string | Yes | Not specified in OpenAPI |
params | object | No | Not specified in OpenAPI |
timeoutMs | integer | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | Bounded native result. Interpret fields using the selected resource output schema. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/resources/scan
Read an Edge Source resource page
Read a bounded page using an opaque cursor issued for the same Source configuration and resource. Discover the specific Edge resource first. Named resources include file directories, EDI exchanges, SQL queries, controller history, approved Teamcenter files and Salesforce Bulk or deletion windows. Connections, paths, query text and vendor tickets remain on Edge. Commit the cursor only after all returned records are durably written. Preserve a returned checkpoint on the final page for incremental resources. Poll a pending Bulk job using its returned cursor. An empty pending page is not completion.
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
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
configRevision | integer | Yes | Not specified in OpenAPI |
resourceRef | string | Yes | Not specified in OpenAPI |
cursor | string | No | Not specified in OpenAPI |
params | object | No | Not specified in OpenAPI |
limit | integer | Yes | Use the resource catalog bounds. Only Salesforce object queries support a native page of 200. |
timeoutMs | integer | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"resourceRef": "string",
"configRevision": 0,
"items": [
"value"
],
"nextCursor": "string",
"hasMore": false
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/runtime/get
Read source runtime status
Read the current runtime status of a source by id.
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
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
Responses
200default
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/sources/validate
Validate source configuration
Validate a native SourceDefinition document, including protocol, endpoint and protocol parameters, without creating a Source.
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"}}}'application/json
| Field | Type | Required | Description |
|---|
document | object | Yes | SourceDefinition. See the referenced schema in the Schemas section. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Streams
Stream endpoints
POST/uns/stream-requests/grants/get
Read stream-entry grants
Read grants, current release bindings and permission ceilings by code and recipient (app/user only), returning snapshotToken for concurrency checks. Requires a current management session or full_access personal/agent key with stream.requests.manage and uns.source.manage. App and service keys cannot configure grants. Source configuration and credentials are not returned.
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
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
principalKind | string | Yes | Not specified in OpenAPI |
principalID | string | Yes | Not specified in OpenAPI |
Responses
200default
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | CloudStreamRequestGrantInfo. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/stream-requests/grants/set
Set or revoke stream-entry grants
Use expectedSnapshotToken from get to atomically modify grants without resubmitting all target revisions. active=1 adds or updates; actions permits only stream.requests.read, stream.requests.invoke and stream.requests.write, and write requires invoke. Resource management includes view, invoke and write operations; stream.requests.manage is the caller's grant-configuration capability. active=2 revokes all historical targets; actions must be empty. Neither recipient nor current release needs to be online. Legacy version fields remain supported; the two validation modes are mutually exclusive. After a version conflict or lost response, reread and reconcile current state before changing it; do not overwrite blindly.
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,"expectedBindingDigest":"string"}'application/json
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
principalKind | string | Yes | Not specified in OpenAPI |
principalID | string | Yes | Not specified in OpenAPI |
active | integer | Yes | Not specified in OpenAPI |
expectedBindingDigest | string | No | Not specified in OpenAPI |
expectedCodeRevision | integer | No | Legacy code CAS revision; new callers use expectedSnapshotToken. The modes are mutually exclusive. |
actions | array<string> | No | Not specified in OpenAPI |
targetRevisions | array<object> | No | Legacy target revision list; use expectedSnapshotToken for revocation when there are many historical targets. |
expectedSnapshotToken | string | No | Server-generated authorization snapshot version, for concurrency checking only, not an invocation credential. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"code": "string",
"principalKind": "app",
"principalID": "string",
"revision": 0,
"active": 1
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | CloudStreamRequestGrantMutation. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/streams/documents/create
Create a stream document
Create a Stream from document or program; dryRun=true validates only. Bind an existing Edge Source using target:{fleetNodeId,sourceId,configRevision} and resources from that revision's catalog. When Modbus acquisition.ranges is omitted, the server resolves selected ranges from the target resource catalog. You may provide pollIntervalMs separately; do not copy unitId, writable, connection endpoints or credentials.
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
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
document | object | No | CloudStreamDocument. See the referenced schema in the Schemas section. |
program | object | No | RuntimeStreamDefinition. See the referenced schema in the Schemas section. |
expectedSourceRevision | integer | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/streams/documents/disable
Disable a stream document
Disable by id, using both expectedRevision and expectedActiveRelease to prevent concurrent overwrites; dryRun=true validates only.
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
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Not specified in OpenAPI |
dryRun | boolean | Yes | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
expectedActiveVersion | string | Yes | Authoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/streams/documents/get
Read a stream document
Read the stream's native configuration document by id.
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
| Field | Type | Required | Description |
|---|
id | string | Yes | Positive decimal int64 identifier; always a string on the wire. |
view | string | No | summary requires view permission and omits scripts/connection settings. full or omission requires management permission; API keys also require full_access, and MCP requires the corresponding management scope. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/streams/documents/update
Update a stream document
Update the stream with document, optionally checking concurrent changes through expectedRevision; dryRun=true validates only.
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
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | Yes | Positive decimal int64 identifier; always a string on the wire. |
expectedRevision | integer | No | Not specified in OpenAPI |
document | object | No | CloudStreamDocument. See the referenced schema in the Schemas section. |
program | object | No | RuntimeStreamDefinition. See the referenced schema in the Schemas section. |
expectedSourceRevision | integer | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/streams/documents/validate
Validate a stream document
Validate document or program through isolated script registration without executing acquisition callbacks or deploying. For existing Edge Modbus Sources, both sources and sourceBindings accept target and resources without acquisition.ranges. The server resolves ranges from the target catalog at configRevision; pollIntervalMs may be specified separately. Select existing catalog resources only; do not copy unitId, writable, connection endpoints or credentials. Validation failures identify the binding field through reason/path; normalizedDocument is returned only when normalization produces one.
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
| Field | Type | Required | Description |
|---|
document | object | No | CloudStreamDocument. See the referenced schema in the Schemas section. |
id | string | No | Stable current Stream ID when validating edits. Omit for new drafts; names never identify which active routes to exclude. |
program | object | No | RuntimeStreamDefinition. See the referenced schema in the Schemas section. |
expectedSourceRevision | integer | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"valid": false,
"issues": [
"value"
],
"normalizedDocument": {
"name": "value",
"description": "value",
"model": "value",
"script": "value",
"sources": "value"
}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/streams/observation/get
Read stream observations
Read observations and accepted-task statistics for a stream by id.
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
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"id": "string",
"revision": 0,
"stats": {
"admitted": "value",
"completed": "value",
"failed": "value",
"unknown": "value",
"pending": "value"
},
"window": {
"from": "value",
"to": "value"
},
"coverage": "durable-admissions"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/streams/program/delete
Delete a stream program
Delete a stream program by id, including an active program, and revoke future execution admission without a separate stop. Use expectedRevision to check concurrent changes; dryRun=true validates only.
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
| Field | Type | Required | Description |
|---|
dryRun | boolean | Yes | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | Yes | Positive decimal int64 identifier; always a string on the wire. |
expectedRevision | integer | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/streams/program/deploy
Deploy a stream program
Deploy the program, optionally checking program/source revisions through expectedRevision and expectedSourceRevision; dryRun=true validates only.
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
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
dryRun | boolean | No | true validates only; false performs writes. |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
expectedRevision | integer | No | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. Optional optimistic concurrency guard; omission updates the current object. |
expectedSourceRevision | integer | No | Not specified in OpenAPI |
expectedReleaseState | string | No | Cloud extension: require inactive state; mutually exclusive with expectedActiveVersion. |
expectedActiveVersion | string | No | Authoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/streams/program/list
List stream programs
Query programs with pagination and sourceId, model, status and archived filters.
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
| Field | Type | Required | Description |
|---|
page | integer | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
search | string | No | Not specified in OpenAPI |
sourceId | string | No | Positive decimal int64 identifier; always a string on the wire. |
model | string | No | Not specified in OpenAPI |
status | string | No | Not specified in OpenAPI |
archived | boolean | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"list": [
"value"
],
"total": 0,
"page": 0,
"size": 0,
"hasMore": false
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/streams/program/rollback
Roll back a stream program
Roll back to versionId; dryRun=true validates only.
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
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
dryRun | boolean | Yes | true validates only; false performs writes. |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
expectedRevision | integer | No | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. Optional optimistic concurrency guard; omission updates the current object. |
expectedSourceRevision | integer | No | Not specified in OpenAPI |
versionId | string | Yes | Not specified in OpenAPI |
expectedReleaseState | string | No | Cloud extension: require inactive state; mutually exclusive with expectedActiveVersion. |
expectedActiveVersion | string | No | Authoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/streams/program/versions/list
List stream releases
Read a stream program's release history by id with pagination.
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
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Page size; see this endpoint's maximum or the capability catalog. |
search | string | No | Search names or supported text fields; not SQL. |
Responses
200default
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/streams/runs/list
List stream runs
Query stream runs by id using size and cursor pagination. Failed runs may include a safe error reason and repair guidance. error.sourceRequest describes only the failed Source call and does not imply that the entire run had no side effects.
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","size":0,"cursor":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
cursor | string | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"items": [
"value"
],
"nextCursor": "string",
"checkedAt": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/streams/sample/test
Test a stream sample
Run an isolated sample test with input on the document's entryId; no external host access or committed data writes.
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
| Field | Type | Required | Description |
|---|
document | object | Yes | CloudStreamDocument. See the referenced schema in the Schemas section. |
entryId | string | Yes | Not specified in OpenAPI |
input | object | Yes | Not specified in OpenAPI |
Responses
200default
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Time series
Append samples, query multiple records, aggregate, read latest values and delete explicit time ranges. Latest values refer only to actual samples.
POST/uns/collections/{collectionId}/records/{recordId}/samples
Append samples
Append items to the existing record identified by URL collectionId and recordId. Each item requires time as event time in Unix milliseconds and data as sample values; id and quality are optional. receivedAt is generated by the server. dryRun=true validates only. The default is atomic batch commit; allowPartial=true commits items independently and returns individual results. mode is auto, sync or async. Query accepted asynchronous work through jobId; app credentials support only auto/sync.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
recordId | path | string | Yes | Not specified in OpenAPI |
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":[{"id":"value","time":"value","quality":"value","data":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
dryRun | boolean | Yes | true validates only; false performs writes. |
allowPartial | boolean | No | Default false rolls back the entire batch; true commits items independently and reports failures in results[].error. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"results": [
{
"opId": "item-0",
"action": "sample.append",
"id": "s1",
"collectionId": "devices",
"status": "appended"
}
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | DocUnsV2SampleAppendOutcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/samples:aggregate
Aggregate samples
Run pipeline on samples within [from,to), using Unix milliseconds. recordIds is optional, at most 20; omission queries the authorized collection. Supports advanced filters, grouping, sorting and time buckets; pipeline determines output documents. page and limit are mutually exclusive; pipeline cannot broaden time or record scope.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
recordIds | array<string> | No | Not specified in OpenAPI |
from | integer | Yes | Inclusive start time in Unix milliseconds. |
to | integer | Yes | Exclusive end time in Unix milliseconds, greater than from. |
pipeline | array<object> | Yes | Not specified in OpenAPI |
limit | integer | No | Not specified in OpenAPI |
page | object | No | UnsV2PipelinePage. See the referenced schema in the Schemas section. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"items": [
{
"averageTemperature": 25
}
],
"pageInfo": {
"mode": "offset",
"hasMore": false,
"nextCursor": null,
"nextPage": null,
"snapshotScope": "thisRequestOnly"
}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | CloudDataPage. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/samples:delete
Delete samples in a time range
Physically delete samples for explicit recordIds within [from,to), at most 20 records; from/to use Unix milliseconds. dryRun=true returns only estimated deletion count; parent records remain.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
recordIds | array<string> | Yes | Record IDs, not collection IDs. |
from | integer | Yes | Time-range start in Unix milliseconds. |
to | integer | Yes | Time-range end in Unix milliseconds. |
dryRun | boolean | No | true validates only; false performs writes. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"deletedCount": 1,
"dryRun": false
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/samples:find
Query samples
Query samples within [from,to), using Unix milliseconds. recordIds is optional, at most 20; omission queries the authorized collection. Supports filter, sort, projection and either limit/cursor or page; page cannot be combined with limit/cursor. Results paginate across selected records together; filter cannot broaden time or record scope.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
recordIds | array<string> | No | Not specified in OpenAPI |
from | integer | Yes | Inclusive start time in Unix milliseconds. |
to | integer | Yes | Exclusive end time in Unix milliseconds, greater than from. |
filter | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
limit | integer | No | Not specified in OpenAPI |
cursor | string | No | Not specified in OpenAPI |
page | object | No | UnsV2PipelinePage. See the referenced schema in the Schemas section. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"items": [
{
"id": "s1",
"collectionId": "devices",
"recordId": "r1",
"time": 1792454400000,
"receivedAt": 1792454400100,
"quality": "good",
"data": {
"temperature": 25
},
"sourceId": null
}
],
"pageInfo": {
"mode": "cursor",
"hasMore": false,
"nextCursor": null,
"nextPage": null,
"snapshotScope": "thisRequestOnly"
}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | CloudSamplePage. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/samples:latest
Read each record's latest sample
recordIds is required, at most 20. Return each record's latest actual sample; sample is null if none exists.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
recordIds | array<string> | Yes | Record IDs, not collection IDs. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"series": [
{
"recordId": "r1",
"sample": {
"id": "s1",
"collectionId": "devices",
"recordId": "r1",
"time": 1792454400000,
"receivedAt": 1792454400100,
"quality": "good",
"data": {
"temperature": 25
},
"sourceId": null
}
}
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Business data
Business record queries, writes, soft deletion, restoration, lease locks and cross-collection transactions. Use bare names for business fields and _id / _meta.* for system fields.
POST/uns/collections/{collectionId}/records
Insert one record
Insert data into the collection, optionally with id. A deleted record with the same ID is not implicitly restored. By default, only insertedId and execution state are returned. returnDocument=after returns the created value in the same transaction, supports projection, and requires read access. Idempotent replay returns the original creation snapshot; dryRun=true returns only an uncommitted preview.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
id | string | No | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
data | object | Yes | Not specified in OpenAPI |
lockToken | string | No | Not specified in OpenAPI |
release | boolean | No | Not specified in OpenAPI |
assertLocks | array<object> | No | Not specified in OpenAPI |
returnDocument | string | No | none preserves the insertedId response; after includes the created value from the same write transaction and requires read access. Idempotent replay returns the original creation snapshot; dryRun returns an uncommitted preview. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"insertedId": "r1"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/records:aggregate
Aggregate business records
Run pipeline on active records in the collection, supporting filtering, projection, grouping and sorting. Pipeline determines returned documents; page and limit are mutually exclusive. On the first or an offset page, count:{max} includes capped pipeline-output total from the same snapshot.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
pipeline | array<object> | Yes | Not specified in OpenAPI |
limit | integer | No | Not specified in OpenAPI |
page | object | No | UnsV2PipelinePage. See the referenced schema in the Schemas section. |
count | object | No | CloudRecordTotalOption. See the referenced schema in the Schemas section. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"items": [
{
"averageTemperature": 25
}
],
"pageInfo": {
"mode": "offset",
"hasMore": false,
"nextCursor": null,
"nextPage": null,
"snapshotScope": "thisRequestOnly"
}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | CloudRecordAggregatePage. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/records:bulkWrite
Execute mixed writes within a collection
Use operations to mix insert, update, replace and soft-delete operations in one collection. atomic and ordered control batch execution; result indices refer to original input positions. dryRun=true validates only. With atomic=false, chunks/items commit independently. Once any commit occurs, failure reports error.execution=committed and retry.safe=false, with cumulative data matching the success structure: counts, insertedIds, writeErrors, hasMore and nextIndex, plus unknownUntil when outcomes are unknown. nextIndex is the first unexecuted zero-based operation; earlier indices absent from writeErrors committed. If unknownUntil is present, [nextIndex, unknownUntil) has unknown outcome. Retry with the same idempotency key if supplied. Without a key, only client-ID inserts and ID-based replacements/deletes can be reconciled by reading those IDs before continuation. Server-generated-ID inserts, filter-selected operations and incremental updates such as $inc cannot be reconciled safely; always use idempotency keys for these writes. Without unknownUntil, continuation from nextIndex is safe. execution is rolledBack or notStarted only when nothing committed.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
operations | array<object> | Yes | Not specified in OpenAPI |
ordered | boolean | No | Not specified in OpenAPI |
atomic | boolean | No | true commits the entire batch atomically, with at most 200 document actions; false commits per document. |
lockToken | string | No | Not specified in OpenAPI |
release | boolean | No | Not specified in OpenAPI |
assertLocks | array<object> | No | Not specified in OpenAPI |
lockTokens | object | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"insertedCount": 1,
"matchedCount": 0,
"modifiedCount": 0,
"deletedCount": 0,
"upsertedCount": 0,
"insertedIds": {
"0": "r1"
},
"upsertedIds": {}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response. After a partial commit, error.execution=committed and retry.safe=false; data contains cumulative results. | application/json |
POST/uns/collections/{collectionId}/records:count
Count records
Count active records matching filter in the collection, up to maxCount (default and maximum 100000). Above the cap, return count=maxCount and capped=true; equality gives capped=false.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
filter | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
maxCount | integer | No | Count limit; actual counts above maxCount return count=maxCount and capped=true. Equality returns capped=false. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"count": 1,
"capped": false
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | CloudCappedCount. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/records:deleteMany
Soft-delete multiple records
Soft-delete records matching filter and physically delete related samples in the same transaction. Restoring records does not restore samples. maxDocs bounds this pass and resumeAfter continues it; atomic and ordered control batch execution. dryRun=true validates only. With atomic=false, chunks/items commit independently. Any committed work makes failure report error.execution=committed and retry.safe=false; error-envelope data contains cumulative counts, insertedIds and writeErrors, plus hasMore/resumeAfter when continuation is possible. execution is rolledBack or notStarted only if nothing committed.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
maxDocs | integer | No | Default 1000; atomic requests default to 200. |
resumeAfter | string | No | Not specified in OpenAPI |
atomic | boolean | No | true commits the entire batch atomically, with at most 200 document actions; false commits per document. All selected writes commit together; maxDocs must be <= 200 and the complete match set must fit. |
ordered | boolean | No | Not specified in OpenAPI |
lockToken | string | No | Not specified in OpenAPI |
release | boolean | No | Not specified in OpenAPI |
assertLocks | array<object> | No | Not specified in OpenAPI |
lockTokens | object | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"deletedCount": 1
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response. After a partial commit, error.execution=committed and retry.safe=false; data contains cumulative results. | application/json |
POST/uns/collections/{collectionId}/records:deleteOne
Soft-delete one record
Select one record by filter and sort, then soft-delete it. Ordinary queries no longer return the record. Related samples are physically deleted in the same transaction; restoring the record does not restore samples. dryRun=true validates only.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
lockToken | string | No | Not specified in OpenAPI |
release | boolean | No | Not specified in OpenAPI |
assertLocks | array<object> | No | Not specified in OpenAPI |
returnDocument | string | No | none returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"deletedCount": 1
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/records:explain
Assess query and write scope
Read-only assessment of find, updateMany or deleteMany plans and a bounded match scope, returning sampleIds without writing. The assessment does not guarantee later data state.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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}'application/json
| Field | Type | Required | Description |
|---|
filter | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
op | string | No | Not specified in OpenAPI |
limit | integer | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"op": "string",
"writesCommitted": false,
"executionGuaranteed": false,
"matchedCount": 0,
"capped": false
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/records:find
Query business records
Query active records in a collection using filter, sort, projection and limit/cursor. Return items and pageInfo; each record's business fields are nested under data. On the first page, count:{max} includes capped total:{count,capped} from the same snapshot (default limit 10000, maximum 100000). Continuation cursor cannot include count.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
filter | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
limit | integer | No | Not specified in OpenAPI |
cursor | string | No | Not specified in OpenAPI |
count | object | No | CloudRecordTotalOption. See the referenced schema in the Schemas section. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"items": [
{
"id": "r1",
"collectionId": "devices",
"data": {
"temperature": 25
},
"revision": 1,
"createdAt": 1792454400000,
"updatedAt": 1792454400000,
"sourceId": null,
"sourceTime": null
}
],
"pageInfo": {
"mode": "cursor",
"hasMore": false,
"nextCursor": null,
"nextPage": null,
"snapshotScope": "thisRequestOnly"
},
"total": {
"count": 1,
"capped": false
}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | CloudRecordPage. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/records:get
Read records by ID
Read at most 100 active records by primary key with optional projection. items follow request order; nonexistent, soft-deleted and employee-rule-filtered IDs all appear in missing without distinguishing absence from unreadability.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
ids | array<string> | Yes | Not specified in OpenAPI |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"items": [
{
"id": "r1",
"collectionId": "devices",
"data": {
"temperature": 25
},
"revision": 1,
"createdAt": 1792454400000,
"updatedAt": 1792454400000,
"sourceId": null,
"sourceTime": null
}
],
"missing": [
"r2"
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | CloudRecordGetResult. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/records:lock
Lock or claim records
Acquire leases atomically by ids, or claim available records using filter, sort and limit. ttlMs defaults to 30000, with range 1000–300000 milliseconds. Return lease tokens and records. Collection read/write permission is required; locks do not affect reads.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
ids | array<string> | No | Not specified in OpenAPI |
filter | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
limit | integer | No | Not specified in OpenAPI |
ttlMs | integer | No | Not specified in OpenAPI |
label | string | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"locks": [
{
"id": "r1",
"token": "lease-token",
"expiresAt": 1792454430000,
"fence": 1,
"record": {
"id": "r1",
"collectionId": "devices",
"data": {
"temperature": 25
},
"revision": 1,
"createdAt": 1792454400000,
"updatedAt": 1792454400000,
"sourceId": null,
"sourceTime": null
}
}
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/records:renew
Renew record locks
Renew currently held leases using id and token in locks. ttlMs defaults to 30000, with range 1000–300000 milliseconds.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
locks | array<object> | Yes | Not specified in OpenAPI |
ttlMs | integer | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"locks": [
{
"id": "r1",
"expiresAt": 1792454460000
}
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/records:replaceOne
Replace one record
Select one record by filter and sort, then fully replace business data with replacement. upsert=true may insert when unmatched, requiring ID or complete unique-key equality. dryRun=true validates only.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
replacement | object | Yes | Not specified in OpenAPI |
upsert | boolean | No | Insert if unmatched; filter must include _id equality or complete equality on a ready unique index. Concurrent conflicts do not create duplicate records. |
lockToken | string | No | Not specified in OpenAPI |
release | boolean | No | Not specified in OpenAPI |
assertLocks | array<object> | No | Not specified in OpenAPI |
returnDocument | string | No | none returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"matchedCount": 1,
"modifiedCount": 1
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/records:restore
Restore records by ID
Restore at most 100 soft-deleted records by ids. Execute atomically and revalidate current schema and unique indexes. Any conflict rolls back everything; samples physically deleted with records are not restored. dryRun=true validates only.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
ids | array<string> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"restoredCount": 1,
"restoredIds": [
"r1"
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/records:unlock
Release record locks
Ordinary release uses locks with id/token. Administrators may force release with ids and force=true. Apps/API keys cannot force release.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
locks | array<object> | No | Not specified in OpenAPI |
ids | array<string> | No | Not specified in OpenAPI |
force | boolean | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"unlockedCount": 1
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/collections/{collectionId}/records:updateMany
Update multiple records
Update records matching filter; upsert is not supported. maxDocs bounds this pass and resumeAfter continues it; atomic and ordered control batch execution. dryRun=true validates only. With atomic=false, chunks/items commit independently. Any committed work makes failure report error.execution=committed and retry.safe=false; error-envelope data contains cumulative counts, insertedIds and writeErrors, plus hasMore/resumeAfter when continuation is possible. execution is rolledBack or notStarted only if nothing committed.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
update | object | Yes | update operators: $set/$unset/$inc/$mul/$min/$max/$rename/$currentDate/$setOnInsert/$push/$addToSet/$pop/$pull/$pullAll. Business paths omit data.; _id and _meta are read-only. |
arrayFilters | array<object> | No | Not specified in OpenAPI |
maxDocs | integer | No | Default 1000; atomic requests default to 200. |
resumeAfter | string | No | Not specified in OpenAPI |
atomic | boolean | No | true commits the entire batch atomically, with at most 200 document actions; false commits per document. All selected writes commit together; maxDocs must be <= 200 and the complete match set must fit. |
ordered | boolean | No | Not specified in OpenAPI |
lockToken | string | No | Not specified in OpenAPI |
release | boolean | No | Not specified in OpenAPI |
assertLocks | array<object> | No | Not specified in OpenAPI |
lockTokens | object | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"matchedCount": 1,
"modifiedCount": 1
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response. After a partial commit, error.execution=committed and retry.safe=false; data contains cumulative results. | application/json |
POST/uns/collections/{collectionId}/records:updateOne
Update one record
Select one record by filter and sort, then apply update. upsert=true may insert when unmatched, requiring ID or complete unique-key equality. dryRun=true validates only.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
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
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. |
dryRun | boolean | No | true validates only; false performs writes. |
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
update | object | Yes | update operators: $set/$unset/$inc/$mul/$min/$max/$rename/$currentDate/$setOnInsert/$push/$addToSet/$pop/$pull/$pullAll. Business paths omit data.; _id and _meta are read-only. |
arrayFilters | array<object> | No | Not specified in OpenAPI |
upsert | boolean | No | Insert if unmatched; filter must include _id equality or complete equality on a ready unique index. Concurrent conflicts do not create duplicate records. |
lockToken | string | No | Not specified in OpenAPI |
release | boolean | No | Not specified in OpenAPI |
assertLocks | array<object> | No | Not specified in OpenAPI |
returnDocument | string | No | none returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"matchedCount": 1,
"modifiedCount": 1
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/records:queryBatch
Batch-read page data
Execute at most 20 read-only queries (find/count/distinct/aggregate/get, optionally across collections) with one admission, authorization snapshot and repeatable-read snapshot. Requires uns.read and record:read on each collection. results correlates by query id and returns {ok:true,data} or {ok:false,error}; validation, compilation, authorization and individual SQL errors affect only that item. At most 2000 rows and 8 MiB per batch, otherwise 413 RESPONSE_TOO_LARGE. Any statement timeout returns 504 QUERY_TIMEOUT; neither case returns partial results.
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
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"results": {
"open": {
"ok": true,
"data": {
"items": [
{
"id": "r1",
"collectionId": "devices",
"data": {
"temperature": 25
},
"revision": 1,
"createdAt": 1792454400000,
"updatedAt": 1792454400000,
"sourceId": null,
"sourceTime": null
}
],
"pageInfo": {
"mode": "cursor",
"hasMore": false,
"nextCursor": null,
"nextPage": null,
"snapshotScope": "thisRequestOnly"
},
"total": {
"count": 1,
"capped": false
}
}
},
"byStatus": {
"ok": false,
"error": {
"code": "INVALID_REQUEST",
"reason": "unknown field status",
"details": [],
"execution": "notStarted",
"retry": {
"safe": false
},
"queryId": "byStatus"
}
}
}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
GET/uns/records:subscribe
Subscribe to record changes (SSE)
GET; Accept must be exactly text/event-stream. collectionIds is a repeated query parameter, at most 64. Omission selects all readable collections for the identity, or all collections granted to the app. At most 100 recordIds are allowed and require exactly one collection. Each collection requires record:read. The connection immediately sends heartbeat with the current position as id, then every 15 seconds. change events arrive in commit order and contain only collectionId, recordId, revision, change (record/delete), restricted and occurredAt. Read business data again by ID. restricted=true indicates employee data rules; servers forwarding under app identity may forward only collection-level notifications to browsers. Reconnect with the last event id as Last-Event-ID. Exceeding 24-hour retention or narrowing authorization sends reset and closes the connection. Reread data and subscribe without Last-Event-ID. Authorization is rechecked every 30 seconds. Exceeding the connection limit returns 429 OVERLOADED.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionIds | query | array<string> | No | Subscribed collections, at most 64; each requires record:read. Omission selects all collections readable by the identity, or all app-granted collections. Authorization-scope changes send reset. |
recordIds | query | array<string> | No | Subscribe only to these records, at most 100; requires exactly one collectionId. |
Last-Event-ID | header | string | No | Last received event id; omission starts from the current position. |
Accept | header | string | Yes | Must be exactly text/event-stream. |
Responses
200default
Success response example
200 · text/event-stream
"event: heartbeat\nid: c1\ndata: {\"at\":1792454400000}\n\nevent: change\nid: c2\ndata: {\"eventId\":\"c2\",\"collectionId\":\"work_orders\",\"recordId\":\"wo-1\",\"revision\":3,\"change\":\"record\",\"restricted\":false,\"occurredAt\":1792454401000}\n\n"Response status meanings
| Status | Meaning | Media type |
|---|
200 | SSE event stream; each frame's data is JSON. | text/event-stream |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/records:transact
Execute a business-data transaction
Execute cross-collection record operations atomically, correlating results by opId, with dependsOn and result references. dryRun=true preflights only. mode is auto, sync or async; query accepted asynchronous work by jobId. App credentials support only auto/sync. Collection permissions are checked for each operation.
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
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Optional idempotency key; reuse for the same request, never for different requests. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | true validates only; false performs writes. |
assertLocks | array<object> | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"results": [
{
"opId": "read",
"action": "record.read",
"id": "r1",
"collectionId": "devices",
"status": "read",
"revision": 1,
"data": {
"temperature": 25
},
"document": {
"id": "r1",
"collectionId": "devices",
"data": {
"temperature": 25
},
"revision": 1,
"createdAt": 1792454400000,
"updatedAt": 1792454400000,
"sourceId": null,
"sourceTime": null
}
}
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | dryRun=false returns transaction results; dryRun=true returns a rolled-back preflight plan. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Apps and grants
App and grant endpoints
POST/uns/app-data-policy/get
Read app data grants
Read collection grants for a real app. Current Builder sessions and full_access personal/Agent keys may call this endpoint. Platform system credentials (service/system/full_access with uns.write) may read every App in their current Workspace, including Apps other than their Builder target. This read access does not grant policy update authority. Ordinary service keys and runtime App credentials cannot call this endpoint.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-data-policy/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string"}'application/json
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"appId": "string",
"revision": 0,
"version": "cloud-hosted-app-data/v1",
"status": "active",
"collections": [
"value"
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | CloudAppDataPolicy. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/app-data-policy/update
Update app data grants
Use changes to atomically add, modify or remove grants by collection. Omitted fields remain unchanged; other collections or employee rules need not be resubmitted. collections still performs explicit full replacement; the two modes are mutually exclusive. permissionLevel values read/readwrite/manage mean record read-only, read-write and management including deletion, and are mutually exclusive with low-level permissions. New grants cannot exceed the manager's capabilities. Stream request boundaries remain; expectedRevision and idempotencyKey are required. An unchanged retry with the same key replays the result without expanding authorization again.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-data-policy/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","expectedRevision":0,"status":"active","collections":[{"alias":"value","collectionId":"value","permissions":"value","dataRule":"value"}],"idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | 0 attaches a data policy to an existing hosted App; positive revisions update it with CAS. |
status | string | Yes | Not specified in OpenAPI |
collections | array<object> | No | Explicitly replace all grants; choose exactly one of this and changes. |
idempotencyKey | string | Yes | Required idempotency key; reuse for the same request, never for a different request. |
dryRun | boolean | Yes | true validates only; false performs writes. |
ruleContractVersion | string | No | Confirmation is required when full replacement involves employee rules, or incremental changes edit/clear rules or remove a grant containing rules. Retained rules need not be resubmitted during incremental updates. |
changes | array<object> | No | Atomic incremental updates by collectionId; no duplicate collection within the batch. New grants require alias and permissions; omitted update fields retain their values. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"results": [
{
"opId": "item-0",
"action": "meta.replace",
"kind": "app",
"id": "example-id",
"revision": 1,
"status": "updated"
}
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | DocCloudAppDataPolicyUpdateOutcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/app-stream-access/list
Page through an app's stream grants
The server summarizes configured entries, stream names, granted actions and current blocking reasons. Returns non-revoked grants by default; includeInactive=1 includes revoked entries. This is a current grant snapshot. Execution rechecks authorization and does not expand the app's global permission ceiling.
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
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
streamId | string | No | Not specified in OpenAPI |
page | integer | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
includeInactive | integer | No | 1 includes revoked grants; 2 (default) returns only non-revoked grants. |
Responses
200default
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | CloudAppStreamAccessPage. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/app-stream-policy/get
Read an app's stream permission ceiling
Read the real app's control permission ceiling using a current Builder session or full_access personal/agent key, with uns.write and stream.requests.manage. This ceiling applies together with individual stream-entry grants.
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
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
Responses
200default
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",
"authorityStatus": "available"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | CloudAppStreamPolicy. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/app-stream-policy/update
Update an app's stream permission ceiling
Reuse the existing app policy while preserving collection grants and employee rules; expectedRevision, idempotencyKey and dryRun are required. Available only to a current Builder session or full_access personal/agent key with uns.write and stream.requests.manage. Does not grant any stream entry automatically or upgrade the app key.
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","idempotencyKey":"string","dryRun":false}'application/json
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Shared hosted policy metadata revision. 0 attaches to a real App; either data or Stream policy updates increment this revision. |
status | string | Yes | Not specified in OpenAPI |
idempotencyKey | string | Yes | Required idempotency key; reuse for the same request, never for a different request. |
dryRun | boolean | Yes | true validates only; false performs writes. |
platformPermissions | array<string> | Yes | Not specified in OpenAPI |
messageTopics | array<object> | No | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"results": [
{
"opId": "item-0",
"action": "meta.replace",
"kind": "app",
"id": "example-id",
"revision": 1,
"status": "updated"
}
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | DocCloudAppStreamPolicyUpdateOutcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/app/collections/archive
Archive this app's collection
Only platform-issued app keys may archive collections owned by this app (ownerAppId). The transaction archives the collection and removes the calling app grant, retaining records, samples and query indexes without tombstoning individual records. New archives have no record-count limit. An app may retain at most 64 archived collections, otherwise 409 APP_QUOTA_EXCEEDED. Topic, Source/Stream and other references do not block archiving. Referring configurations remain; existing grants that have not been revoked may read historical data, while writes are rejected. During app collection reclaim or purge, return retryable 503 TEMPORARILY_UNAVAILABLE with data.reason=COLLECTION_TEARDOWN_IN_PROGRESS and data.operation=reclaim/purge. restore restores the collection state; independently deleted records retain their previous state.
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
| Field | Type | Required | Description |
|---|
alias | string | Yes | Case-insensitively unique app collection alias, matching src/data/collections.ts. |
Responses
200default
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/app/collections/ensure
Declare collections for this app
Only platform-issued app keys (app/internal/full_access, non-MCP, no employee delegation) are accepted. Declare collections in a batch. Missing collections are created in the app directory and granted record:read/write in the same transaction, plus record:delete if the key has uns.delete. Existing collections only widen through join and union indexes. Annotations (title/description/unit and collection description) are written only on creation; later changes use schema:replace. Stale grants pointing to this app's archived or hard-deleted collections are replaced in the same transaction. The batch is atomic. Any type conflict, join that cannot widen the current structure, or widening that breaks employee-rule fields leaves everything unchanged and returns 409 SCHEMA_CONFLICT with data.conflicts. Administrator-revoked grants return 403 APP_GRANT_REVOKED and are not automatically restored. Exceeding per-app quotas (64 collections, 64 indexes) returns 409 APP_QUOTA_EXCEEDED. Exceeding workspace index quota, counting physically existing non-retired indexes, returns 409 INDEX_QUOTA_EXCEEDED. During app collection reclaim (app deletion) or purge (preview reset), creation, widening or stale-grant cleanup returns retryable 503 TEMPORARILY_UNAVAILABLE with data.reason=COLLECTION_TEARDOWN_IN_PROGRESS and data.operation=reclaim/purge. Fully unchanged batches still succeed. When the App owns no collection with the alias but exactly one grant has the same alias and points to an active collection the App does not own, ensure borrows it: if the stored schema and indexes cover the declaration it returns that collectionId with status=unchanged. If the declaration needs a wider schema, a new index or a longer TTL, it returns 409 SCHEMA_CONFLICT (reason=SHARED_SCHEMA_READONLY); type conflicts still report TYPE_CONFLICT and a shorter TTL reports TTL_REQUIRES_REPLACE. A borrowed collection is never widened or indexed and does not count toward the App quota. While the owner App is in the trash the collection is read-only and can still be borrowed if it was not archived before the move: the declaration is not compared, status=unchanged is always returned, and ignored carries reason=OWNER_APP_TRASHED. When dataAppContext does not show the collection to the credential, for example because the grant carries an employee data rule, the result exposes no fields: indexStatus is empty, notes with a field path are omitted, and conflicts with a path report only SHARED_SCHEMA_READONLY without path or types. dryRun=true computes only.
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 '{"collections":[{"alias":"value","name":"value","recordSchema":"value","indexes":"value","description":"value"}],"dryRun":false}'application/json
| Field | Type | Required | Description |
|---|
collections | array<object> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | true validates only; false performs writes. |
Responses
200default
Success response example
200 · application/json
{
"code": 200,
"msg": "success",
"requestId": "request-id",
"data": {
"status": "committed",
"replayed": false,
"results": [
{
"opId": "item-0",
"action": "meta.create",
"kind": "appCollection",
"id": "example-id",
"revision": 1,
"status": "created"
}
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/app/collections/list
List an app's collections
A session or personal API key with uns.read lists collections owned by appId, including archived collections, returning schemas, indexes/indexStatus and retired without grant details.
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
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"appId": "string",
"collections": [
"value"
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/app/collections/restore
Restore this app's archived collection
Only platform-issued app keys may restore the most recently archived collection for the alias, restore grants while reusing those still referencing it, and reuse retained indexes without rewriting records. Only legacy recordsArchivedAt tombstones restore their original record batch (at most 2000, otherwise 409 COLLECTION_TOO_LARGE). Unique conflicts roll back everything with 409 DUPLICATE_KEY. If ensure recreated a same-name collection, return 409 DUPLICATE with data.activeCollectionId; archive the active collection first. During app collection reclaim or purge, return retryable 503 TEMPORARILY_UNAVAILABLE with data.reason=COLLECTION_TEARDOWN_IN_PROGRESS and data.operation=reclaim/purge.
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
| Field | Type | Required | Description |
|---|
alias | string | Yes | Case-insensitively unique app collection alias, matching src/data/collections.ts. |
Responses
200default
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/app/collections/schema:replace
Replace this app collection's schema
Only platform-issued app keys are accepted, for explicit worker-driven narrowing such as removing fields/enum values/indexes or changing required fields; runtime code must not call it. expectedRevision is required. Narrowing validates active records up to 10,000 records and 16MB; larger migrations return 409 SCHEMA_MIGRATION_TOO_LARGE. At most 20 violations are returned with 409 SCHEMA_DATA_VIOLATION; data.violations contains only recordId/path. References from topic fields or app data rules return 409 REFERENCED. Removed paths and enum values enter retired and cannot be reintroduced by ensure. Indexes are replaced exactly and remain subject to per-app quota (64) and workspace index quota. Annotation-only or description-only changes return status=widened. Failure to acquire the lock returns retryable 503 TEMPORARILY_UNAVAILABLE. During app collection reclaim or purge, an actual replacement returns retryable 503 TEMPORARILY_UNAVAILABLE with data.reason=COLLECTION_TEARDOWN_IN_PROGRESS and data.operation=reclaim/purge. dryRun=true validates on a read-only snapshot without holding locks.
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"],"items":{"additionalProperties":"value","description":"value","enum":"value","items":"value","maximum":"value"},"maximum":0},"indexes":[{"kind":"value","path":"value","paths":"value","target":"value","unique":"value"}],"expectedRevision":0,"description":"string"}'application/json
| Field | Type | Required | Description |
|---|
alias | string | Yes | Case-insensitively unique app collection alias, matching src/data/collections.ts. |
recordSchema | object | Yes | Schema. See the referenced schema in the Schemas section. |
indexes | array<object> | Yes | Replace indexes exactly as requested; [] removes all indexes. |
expectedRevision | integer | Yes | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
dryRun | boolean | No | true validates only; false performs writes. |
Responses
200default
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
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
POST/uns/app/context
Read current app data context
Available only to current managed app credentials; returns the real app name and intersection of collection grants and key permissions. A new App without a data policy returns dataState=uninitialized, revision=0 and empty collections without creating a policy or granting access; declaring its actual collections through appCollectionsEnsure makes the state ready. An administrator-disabled policy returns HTTP 403 with reason APP_DATA_POLICY_DISABLED and is never re-enabled automatically. collections[] includes definition revision, recordSchema, indexes, indexStatus and ttl. Both owned and granted collections include ownerAppId (omitted for workspace collections), name, description and directoryPath (directory names from the workspace root, in the same shape as appCollectionsEnsure). Apps use only this endpoint to read collection structures. collections[].createCapability provides allowed, an independent writable input schema and version bindings from the current employee's actual creation rules. Do not infer creation rights from generic record:write or read schemas. limits exposes count, totals, queryBatch, get, subscriptions, TTL, concurrency and idempotency-window limits for adaptive clients. Hints are not credentials; writes and replay are authorized again at runtime. Identity comes only from server authentication. App ID and issuer-user parameters are not accepted; credentials are not returned.
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
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"appId": "string",
"collections": [
"value"
],
"name": "string",
"platformPermissions": [
"value"
],
"revision": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
requestId | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | AppContext. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Query result. | application/json |
default | Failure response; see Common errors for HTTP statuses and shared error fields. | application/json |
Platform information
POST/capabilities/discover
Discover workspace capabilities and contract versions
Requires a valid Workspace API key and an empty JSON object of at most 4KiB UTF-8 bytes; query parameters and Workspace overrides are rejected. Success returns CapabilityDiscoverV2Resp directly, without a code/msg/data envelope. Capabilities combine public release gates, Workspace feature gates and explicit key grants; Namespace and Stream request report publication and authorization only, with readiness_unknown and no runtime probe. Source/Stream retain evidence for individual operation prerequisites. state=ready does not replace resource authorization or an actual execution receipt. Contract 2.0 uses state, reasonCode and operations and omits redundant boolean states. Actual operations enforce backend execution safety checks and return their authoritative errors. Clients may ignore unknown extension fields. Version labels do not indicate device acknowledgements or npm package versions. Errors return CapabilityErrorResp with the actual HTTP status and do not expose internal exceptions.
Responses
200400401403500503
Success response example
200 · application/json
{
"product": "cloud",
"productVersion": "string",
"contractVersion": "2.0",
"apiContractVersions": [
"string"
],
"sdkContractVersions": [
"string"
]
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
product | object | Yes | See the referenced schema in the Schemas section. |
productVersion | string | No | See the referenced schema in the Schemas section. |
contractVersion | object | Yes | See the referenced schema in the Schemas section. |
apiContractVersions | array<string> | Yes | See the referenced schema in the Schemas section. |
sdkContractVersions | array<string> | Yes | See the referenced schema in the Schemas section. |
capabilities | array<object> | Yes | See the referenced schema in the Schemas section. |
deprecations | array<object> | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
POST/info
info
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"capabilities": [
"value"
],
"mqttBroker": "string",
"name": "string",
"version": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformInfoResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
Identity
POST/auth/whoami
whoami
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"apiKeyName": "string",
"email": "string",
"keyPrefix": "string",
"keyType": "string",
"permissions": [
"value"
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAuthWhoamiResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
Files
POST/assets/files
Request a file upload
Request a file upload
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appInstanceId":"string","business":"string","contentType":"string","fileName":"string","sessionId":"string"}'application/json
| Field | Type | Required | Description |
|---|
appInstanceId | string | No | Not specified in OpenAPI |
business | string | No | Not specified in OpenAPI |
contentType | string | No | Not specified in OpenAPI |
fileName | string | Yes | Not specified in OpenAPI |
sessionId | string | No | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
useBy | string | No | Not specified in OpenAPI |
visibility | string | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"expiresAt": 0,
"fileId": 0,
"filePath": "string",
"fileUrl": "string",
"postFields": {}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAssetFileUploadResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/assets/files/delete
Delete a file
Delete a file
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
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"deleted": false
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAssetFileDeleteResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
GET/assets/files/download
Download a file
Returns HTTP 302 with the download URL in Location and no JSON body. Private files use signed URLs; public files use persistent public URLs. When following the redirect, do not forward x-api-key or other credential headers to a different origin. The SDK already follows this rule.
Request parameters
| Name | Location | Type | Required | Description |
|---|
filePath | query | string | Yes | Not specified in OpenAPI |
responseContentDisposition | query | string | No | Not specified in OpenAPI |
Responses
302
Response status meanings
| Status | Meaning | Media type |
|---|
302 | Redirect to the public or short-lived signed download URL. | — |
POST/assets/files/multipart/abort
Abort a multipart upload
Abort the multipart upload, remove remaining parts and release reserved quota.
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
| Field | Type | Required | Description |
|---|
fileKey | string | Yes | Not specified in OpenAPI |
uploadId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"aborted": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAssetFileMultipartAbortResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/assets/files/multipart/complete
Complete a multipart upload
Complete the upload after validating actual sizes with ListParts and reconciling reserved quota; change the file from temp to active.
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","parts":[{"etag":"value","partNumber":"value"}],"uploadId":"string"}'application/json
| Field | Type | Required | Description |
|---|
fileKey | string | Yes | Not specified in OpenAPI |
parts | array<object> | Yes | Not specified in OpenAPI |
uploadId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"expiresAt": 0,
"filePath": "string",
"fileUrl": "string",
"sizeBytes": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAssetFileMultipartCompleteResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/assets/files/multipart/init
Initialize a multipart upload
Initialize direct multipart upload for large files (>100 MB). The server creates the upload and reserves quota, returning uploadId, partSize and partCount.
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 '{"appInstanceId":"string","bizId":"string","business":"string","contentType":"string","fileName":"string"}'application/json
| Field | Type | Required | Description |
|---|
appInstanceId | string | No | Not specified in OpenAPI |
bizId | string | No | Not specified in OpenAPI |
business | string | No | Not specified in OpenAPI |
contentType | string | No | Not specified in OpenAPI |
fileName | string | Yes | Not specified in OpenAPI |
partSize | integer | No | Not specified in OpenAPI |
sessionId | string | No | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
useBy | string | No | Not specified in OpenAPI |
visibility | string | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"expiresAt": 0,
"fileKey": "string",
"filePath": "string",
"partCount": 0,
"partSize": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAssetFileMultipartInitResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/assets/files/multipart/part-urls
Get signed part upload URLs
Issue signed PUT URLs for selected parts, uploaded directly to object storage. Resumable uploads are supported.
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","partNumbers":[0],"uploadId":"string"}'application/json
| Field | Type | Required | Description |
|---|
fileKey | string | Yes | Not specified in OpenAPI |
partNumbers | array<integer> | Yes | Not specified in OpenAPI |
uploadId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"partUrls": [
"value"
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAssetFileMultipartPartUrlsResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
GET/assets/files/url
Get a file URL
Get a file URL
Request parameters
| Name | Location | Type | Required | Description |
|---|
filePath | query | string | Yes | Not specified in OpenAPI |
expiredSec | query | integer | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"expiresAt": 0,
"fileUrl": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAssetFileUrlResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/assets/upload
assetUpload
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/upload' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"business":"string","contentType":"string","fileName":"string","isPublic":false,"sha256":"string"}'application/json
| Field | Type | Required | Description |
|---|
business | string | No | Not specified in OpenAPI |
contentType | string | No | Not specified in OpenAPI |
fileName | string | Yes | Not specified in OpenAPI |
isPublic | boolean | No | Not specified in OpenAPI |
sha256 | string | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
sizeBytes | integer | Yes | Not specified in OpenAPI |
storageKey | string | No | Not specified in OpenAPI |
useBy | string | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"filePath": "string",
"fileUrl": "string",
"postFields": {},
"postUrl": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAssetUploadResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
Notifications
POST/notifications/get
Get notification delivery status
Get delivery status by messageId. Ownership is checked against the requesting API key.
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
| Field | Type | Required | Description |
|---|
messageId | string | Yes | Not specified in OpenAPI |
Responses
200400401403404409422429500503504
Success response example
200 · application/json
{
"channels": [
{
"channel": "value",
"errorCode": "value",
"message": "value",
"platform": "value",
"status": "value"
}
],
"completedAt": "string",
"createdAt": "string",
"errorCode": "string",
"message": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
channels | array<object> | Yes | See the referenced schema in the Schemas section. |
completedAt | string | No | See the referenced schema in the Schemas section. |
createdAt | string | Yes | See the referenced schema in the Schemas section. |
errorCode | string | No | See the referenced schema in the Schemas section. |
message | string | No | See the referenced schema in the Schemas section. |
messageId | string | Yes | See the referenced schema in the Schemas section. |
recipientName | string | No | Recipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now |
recipientUserId | string | Yes | Recipient user ID of the request (a large integer carried as string), same as the recipientUserId given when sending |
status | string | Yes | See the referenced schema in the Schemas section. |
type | string | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
POST/notifications/list
List notification delivery records
List notification delivery records page by page, without the content. A personal key whose owner is an owner or admin of the workspace sees the whole workspace; any other key sees only the records it sent. The whole-workspace scope includes records dispatched from the admin console (keyId is the string 0).
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"messageId":"string","page":0,"recipientUserId":"string","size":0,"status":"string"}'application/json
| Field | Type | Required | Description |
|---|
messageId | string | No | Filter by message ID (a large integer carried as string, a positive integer); omitted or empty string means no filter |
page | integer | No | Page number, 1-based; defaults to 1 when omitted, an explicit value must be >= 1 |
recipientUserId | string | No | Filter by recipient user ID (a large integer carried as string, a positive integer); omitted or empty string means no filter |
size | integer | No | Items per page; defaults to 20 when omitted, an explicit value must be between 1 and 100 |
status | string | No | Filter by status: accepted / sent / failed; omitted or empty string means no filter, any other value is rejected with 400 |
Responses
200400401403404409422429500503504
Success response example
200 · application/json
{
"list": [
{
"channels": "value",
"completedAt": "value",
"createdAt": "value",
"errorCode": "value",
"keyId": "value"
}
],
"page": 0,
"size": 0,
"total": 0
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | See the referenced schema in the Schemas section. |
page | integer | Yes | Page number actually used |
size | integer | Yes | Items per page actually used |
total | integer | Yes | Total number of records matching the filters |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
POST/notifications/send
Send a notification
Send an inbox notification to a user in the API key's workspace, optionally requesting web or mobile push delivery.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/send' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"channels":["web"],"content":"string","idempotencyKey":"string","link":"string","mode":"string"}'application/json
| Field | Type | Required | Description |
|---|
channels | array<string> | No | Not specified in OpenAPI |
content | string | Yes | Plain text only; a request containing HTML tags is rejected with 400. |
idempotencyKey | string | Yes | Not specified in OpenAPI |
link | string | No | Not specified in OpenAPI |
mode | string | No | Deprecated (2026-11-04): test/live is decided by the platform from the API key and sender.type, and the value sent here is ignored (except for existing app credentials that do not distinguish preview from deployment, during the transition). test messages appear only in that App's Building preview bell; they do not enter the message center and are not pushed to devices. |
recipientUserId | string | Yes | Not specified in OpenAPI |
sender | object | No | PlatformNotificationSender. See the referenced schema in the Schemas section. |
source | string | No | Deprecated transitional alias for sender.name. sender.name takes precedence; this field will be removed. |
title | string | Yes | Plain text only; a request containing HTML tags is rejected with 400. |
type | string | Yes | Not specified in OpenAPI |
Responses
200400401403404409422429500503504
Success response example
200 · application/json
{
"createdAt": "string",
"messageId": "string",
"recipientName": "string",
"recipientUserId": "string",
"status": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
createdAt | string | Yes | See the referenced schema in the Schemas section. |
messageId | string | Yes | See the referenced schema in the Schemas section. |
recipientName | string | No | Recipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now; never affects the send result |
recipientUserId | string | Yes | Recipient user ID of the request (a large integer carried as string); on an idempotent hit it is the recipient of the existing request |
status | string | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
Members
POST/apps/access-members/list
listAccessMembers
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","grantedAtEnd":0,"grantedAtStart":0,"page":0,"roleKeys":["string"]}'application/json
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
grantedAtEnd | integer | No | Milliseconds; inclusive bounds with second precision. |
grantedAtStart | integer | No | Milliseconds; inclusive bounds with second precision. |
page | integer | No | Not specified in OpenAPI |
roleKeys | array<string> | No | Match any value, case insensitive. |
scope | string | No | draft: computed from draft roles; production or omitted: computed from the production version. |
size | integer | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"allActiveMembers": 0,
"appId": "string",
"list": [
"value"
],
"page": 0,
"productionVersionId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAppAccessMembersListResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/platform/getMembers
getMembers
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","page":0,"roleKey":"string","roles":["string"],"size":0}'application/json
| Field | Type | Required | Description |
|---|
keyword | string | No | Not specified in OpenAPI |
page | integer | No | Not specified in OpenAPI |
roleKey | string | No | Not specified in OpenAPI |
roles | array<string> | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
statuses | array<string> | No | Not specified in OpenAPI |
updatedAtEnd | string | No | Not specified in OpenAPI |
updatedAtStart | string | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformPlatformMembersResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
MQTT credentials
POST/mqtt-auth/create
Create an MQTT credential
Create a regular MQTT credential of the same type created manually in the UI. The password is returned only once, in the successful creation response. Store it securely; this API cannot retrieve it later. Requires a full_access API key.
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 '{"clientIDRandomSuffixEnabled":false,"description":"string","name":"string"}'application/json
| Field | Type | Required | Description |
|---|
clientIDRandomSuffixEnabled | boolean | No | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"clientID": "string",
"clientIDRandomSuffixEnabled": false,
"id": 0,
"name": "string",
"password": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformMqttAuthCreateResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/mqtt-auth/delete
Delete an MQTT credential
Idempotently delete a regular MQTT credential. Missing, deleted or non-regular IDs return success without deleting Flow, EdgeNode or other system credentials. Requires a full_access API key.
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
| Field | Type | Required | Description |
|---|
id | integer | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"success": false
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformMqttAuthDeleteResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
Agent
POST/agent/analyses/dispatch
Dispatch an analysis using its operation ID
Dispatch an immediate refresh or rerun analysis using an operationId UUID. Repeating the same ID and request reads the original run without executing again. Requires uns:write and the actual owner's identity.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/analyses/dispatch' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"canvasId":"string","cardId":"string","kind":"string","operationId":"string","resultId":"string"}'application/json
| Field | Type | Required | Description |
|---|
canvasId | string | No | Not specified in OpenAPI |
cardId | string | No | Not specified in OpenAPI |
kind | string | Yes | Not specified in OpenAPI |
operationId | string | Yes | Not specified in OpenAPI |
resultId | string | No | Not specified in OpenAPI |
task | object | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"dispatchState": "string",
"errorCode": "string",
"errorMessage": "string",
"runId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentAnalysisDispatchResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/analyses/get
Read an analysis run and result reference
Read the current owner's analysis status, errors and results by runId within the workspace. Other users' runs are inaccessible. Requires uns:read.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/analyses/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"runId":"string"}'application/json
| Field | Type | Required | Description |
|---|
runId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"run": {
"dispatchState": "value",
"errorCode": "value",
"errorMessage": "value",
"finishedAt": "value",
"firedAt": "value"
}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentAnalysisGetResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/canvases/list
List workspace canvases
List canvas metadata in the current workspace, optionally filtered by platform session. page and size are required; size is 1 to 100. Requires uns:read.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/canvases/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"sessionId":"string","size":0}'application/json
| Field | Type | Required | Description |
|---|
page | integer | Yes | Not specified in OpenAPI |
sessionId | string | No | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentCanvasListResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/cards/delete
Delete a canvas card with optimistic concurrency
Delete by canvas and card row ID. expectedCardSpec must match the full current card or HTTP 409 is returned. Requires uns:write.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/cards/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"canvasId":"string","cardId":"string","expectedCardSpec":"string"}'application/json
| Field | Type | Required | Description |
|---|
canvasId | string | Yes | Not specified in OpenAPI |
cardId | string | Yes | Not specified in OpenAPI |
expectedCardSpec | object | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"cardId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentCardDeleteResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/cards/get
Read a complete canvas card
Read the full CardSpec by authenticated workspace, canvas ID and card row ID before editing.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/cards/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"canvasId":"string","cardId":"string"}'application/json
| Field | Type | Required | Description |
|---|
canvasId | string | Yes | Not specified in OpenAPI |
cardId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"canvasId": "string",
"cardId": "string",
"cardKey": "string",
"cardSpec": "string",
"updatedAt": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentCardGetResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/cards/list
List canvas cards
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/cards/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"canvasId":"string","page":0,"size":0}'application/json
| Field | Type | Required | Description |
|---|
canvasId | string | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentCardListResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/cards/update
Update a canvas card
A sandbox Agent updates a canvas card using an App key. The card must belong to the key's workspace.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/cards/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"canvasId":"string","cardId":"string","cardSpec":"string","expectedCardSpec":"string","ord":0}'application/json
| Field | Type | Required | Description |
|---|
canvasId | string | No | Not specified in OpenAPI |
cardId | string | Yes | Not specified in OpenAPI |
cardSpec | object | Yes | Not specified in OpenAPI |
expectedCardSpec | object | Yes | The full previously read card. Changes produce HTTP 409. |
ord | integer | No | Canvas order: omit to leave unchanged (forwarded to unssvr as -1). Explicit values, including 0, are preserved. |
position | object | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"cardId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentCardUpdateResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/job-runs/get
Read a task run
Only the task owner may use this operation. Triggering returns the run ID and current dispatch state, not proof of successful execution. Do not retry automatically after an unknown network outcome.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/job-runs/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string","jobRunId":"string"}'application/json
| Field | Type | Required | Description |
|---|
jobId | string | Yes | Not specified in OpenAPI |
jobRunId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"run": {
"dispatchState": "value",
"errorCode": "value",
"errorMessage": "value",
"finishedAt": "value",
"firedAt": "value"
}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentJobRunGetResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/job-runs/list
List task run history
Only the task owner may use this operation. Triggering returns the run ID and current dispatch state, not proof of successful execution. Do not retry automatically after an unknown network outcome.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/job-runs/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string","page":0,"size":0,"status":"string"}'application/json
| Field | Type | Required | Description |
|---|
jobId | string | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
status | string | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentJobRunListResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/jobs/create
Create a scheduled task
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"cardId":"string","cronExpr":"string","expiresAt":0,"intervalSeconds":0,"name":"string"}'application/json
| Field | Type | Required | Description |
|---|
cardId | string | No | Not specified in OpenAPI |
cronExpr | string | No | Not specified in OpenAPI |
expiresAt | integer | No | Not specified in OpenAPI |
intervalSeconds | integer | No | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
notify | object | No | Not specified in OpenAPI |
scheduleKind | string | Yes | Not specified in OpenAPI |
sessionId | string | Yes | Not specified in OpenAPI |
sourceBlockId | string | No | Not specified in OpenAPI |
sourceId | string | No | Not specified in OpenAPI |
sourceName | string | No | Not specified in OpenAPI |
sourceType | string | Yes | Not specified in OpenAPI |
task | object | Yes | Not specified in OpenAPI |
type | string | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"jobId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentJobMutationResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/jobs/delete
Delete a scheduled task
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string"}'application/json
| Field | Type | Required | Description |
|---|
jobId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"jobId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentJobMutationResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/jobs/get
Read a scheduled task
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string"}'application/json
| Field | Type | Required | Description |
|---|
jobId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"job": {
"attentionReason": "value",
"cardId": "value",
"createdAt": "value",
"cronExpr": "value",
"expiresAt": "value"
}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentJobGetResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/jobs/list
List scheduled tasks
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"cardId":"string","page":0,"search":"string","size":0,"sourceId":"string"}'application/json
| Field | Type | Required | Description |
|---|
cardId | string | No | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
search | string | No | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
sourceId | string | No | Not specified in OpenAPI |
sourceType | string | No | Not specified in OpenAPI |
status | string | No | active / paused / needs_attention / expired |
type | string | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentJobListResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/jobs/pause
Pause a scheduled task
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/pause' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string"}'application/json
| Field | Type | Required | Description |
|---|
jobId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"jobId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentJobMutationResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/jobs/resume
Resume a scheduled task
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/resume' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string"}'application/json
| Field | Type | Required | Description |
|---|
jobId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"jobId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentJobMutationResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/jobs/trigger
Trigger a task once
Only the task owner may use this operation. Triggering returns the run ID and current dispatch state, not proof of successful execution. Do not retry automatically after an unknown network outcome.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/trigger' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobId":"string"}'application/json
| Field | Type | Required | Description |
|---|
jobId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"dispatchState": "string",
"jobId": "string",
"jobRunId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentJobTriggerResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/jobs/update
Update a scheduled task
Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"cardId":"string","cronExpr":"string","expiresAt":0,"intervalSeconds":0,"jobId":"string"}'application/json
| Field | Type | Required | Description |
|---|
cardId | string | No | Not specified in OpenAPI |
cronExpr | string | No | Not specified in OpenAPI |
expiresAt | integer | No | Not specified in OpenAPI |
intervalSeconds | integer | No | Not specified in OpenAPI |
jobId | string | Yes | Not specified in OpenAPI |
name | string | No | Not specified in OpenAPI |
notify | object | No | Not specified in OpenAPI |
notifyEnabled | integer | No | Omit to preserve notification settings. 1 requires notify; 2 disables notifications and must omit notify. |
scheduleKind | string | No | Not specified in OpenAPI |
sessionId | string | No | Not specified in OpenAPI |
sourceBlockId | string | No | Not specified in OpenAPI |
sourceId | string | No | Not specified in OpenAPI |
sourceName | string | No | Not specified in OpenAPI |
sourceType | string | No | Not specified in OpenAPI |
task | object | No | Not specified in OpenAPI |
type | string | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"jobId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentJobMutationResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/library/create
Create a library entry with conflict detection
Create a workspace template. The same cardKey and content reuse the existing entry; different content returns HTTP 409 without overwriting the template. Requires uns:write.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"cardKey":"string","cardSpec":"string","sourceSessionId":"string","tags":["string"]}'application/json
| Field | Type | Required | Description |
|---|
cardKey | string | Yes | Not specified in OpenAPI |
cardSpec | object | Yes | Not specified in OpenAPI |
sourceSessionId | string | No | Not specified in OpenAPI |
tags | array<string> | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"libraryItemId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentLibraryMutationResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/library/delete
Delete a card library entry
Delete a workspace template by its verified library entry ID. Requires uns:write.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"libraryItemId":"string"}'application/json
| Field | Type | Required | Description |
|---|
libraryItemId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"libraryItemId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentLibraryMutationResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/library/get
Read a complete card library entry
Read the complete template, tags and source session by library entry ID before editing. Requires uns:read.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"libraryItemId":"string"}'application/json
| Field | Type | Required | Description |
|---|
libraryItemId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"item": {
"cardKey": "value",
"cardSpec": "value",
"createdAt": "value",
"libraryItemId": "value",
"sourceSessionId": "value"
}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentLibraryGetResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/library/list
List card library entries
List shared card templates in the current workspace, matching any requested tag and optionally searching titles. Requires uns:read.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"search":"string","size":0,"tags":["string"]}'application/json
| Field | Type | Required | Description |
|---|
page | integer | Yes | Not specified in OpenAPI |
search | string | No | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
tags | array<string> | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentLibraryListResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/library/update
Update a library entry with optimistic concurrency
Update a template with the full previously read expectedItem. Changed content returns HTTP 409. An explicit empty tags array clears tags. Requires uns:write.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"cardSpec":"string","expectedItem":{"cardKey":"string","cardSpec":"string","sourceSessionId":"string","tags":["value"]},"libraryItemId":"string","sourceSessionId":"string","tags":["string"]}'application/json
| Field | Type | Required | Description |
|---|
cardSpec | object | Yes | Not specified in OpenAPI |
expectedItem | object | Yes | PlatformAgentLibrarySnapshot. See the referenced schema in the Schemas section. |
libraryItemId | string | Yes | Not specified in OpenAPI |
sourceSessionId | string | No | Not specified in OpenAPI |
tags | array<string> | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"libraryItemId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentLibraryMutationResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/results/create
Save an Agent analysis result
A sandbox Agent submits a v1 result manifest using an App key, with idempotency by operationId.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/results/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"cardSpec":"string","dataScope":"string","images":["value"],"missingData":"string","operationId":"string"}'application/json
| Field | Type | Required | Description |
|---|
cardSpec | object | No | Not specified in OpenAPI |
dataScope | object | No | Not specified in OpenAPI |
images | array | No | Not specified in OpenAPI |
missingData | object | Yes | Not specified in OpenAPI |
operationId | string | Yes | Not specified in OpenAPI |
resultSchemaVersion | integer | Yes | Not specified in OpenAPI |
source | object | Yes | PlatformAgentResultSource. See the referenced schema in the Schemas section. |
steps | array | No | Not specified in OpenAPI |
summary | string | No | Not specified in OpenAPI |
tables | array | No | Not specified in OpenAPI |
title | string | Yes | Not specified in OpenAPI |
warnings | array<string> | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"jobRunId": "string",
"resultId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentResultCreateResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/results/get
Read a saved analysis result
Read a result in the authenticated workspace using exactly one of resultId or operationId. Reuse the original operation ID to verify a save after a lost receipt. Returns the full manifest and CardSpec; requires uns:read.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/results/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"operationId":"string","resultId":"string"}'application/json
| Field | Type | Required | Description |
|---|
operationId | string | No | Provide this or resultId, but not both. After a save timeout, retrieve by the original ID instead of saving again. |
resultId | string | No | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"result": {
"agentId": "value",
"byteSize": "value",
"cardSpec": "value",
"createdAt": "value",
"manifest": "value"
}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentResultGetResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/results/list
List saved analysis results
List results in the authenticated workspace, optionally filtered by platform session. page and size are required; size is 1 to 100. Requires uns:read.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/results/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"platformSessionId":"string","size":0}'application/json
| Field | Type | Required | Description |
|---|
page | integer | Yes | Not specified in OpenAPI |
platformSessionId | string | No | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"list": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentResultListResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
POST/agent/results/pin
Pin a saved result to a canvas
Pin a result in the authenticated workspace; requires uns:write. Create a card from CardSpec when present, or a reference card that reads tabular/chart details by resultId. Retrying the same result and canvas returns the original card without overwriting later edits.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/results/pin' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"canvasId":"string","position":"string","resultId":"string"}'application/json
| Field | Type | Required | Description |
|---|
canvasId | string | Yes | Not specified in OpenAPI |
position | object | No | Not specified in OpenAPI |
resultId | string | Yes | Not specified in OpenAPI |
Responses
200
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"data": {
"cardId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | Yes | See the referenced schema in the Schemas section. |
msg | string | Yes | See the referenced schema in the Schemas section. |
data | object | Yes | PlatformAgentResultPinResp. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
Stream requests
POST/stream-requests/{requestCode}/describe
Describe Stream request
Read a public Stream request contract without exposing internal runtime bindings.
Request parameters
| Name | Location | Type | Required | Description |
|---|
requestCode | path | string | Yes | Not specified in OpenAPI |
Responses
200400401403404409422429500503504
Success response example
200 · application/json
{
"code": "string",
"contractVersion": "string",
"description": "string",
"idempotency": "string",
"inputSchema": {}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | string | Yes | See the referenced schema in the Schemas section. |
contractVersion | string | Yes | See the referenced schema in the Schemas section. |
description | string | Yes | See the referenced schema in the Schemas section. |
idempotency | string | Yes | See the referenced schema in the Schemas section. |
inputSchema | object | Yes | See the referenced schema in the Schemas section. |
name | string | Yes | See the referenced schema in the Schemas section. |
outputSchema | object | Yes | See the referenced schema in the Schemas section. |
sideEffect | string | Yes | See the referenced schema in the Schemas section. |
status | string | Yes | See the referenced schema in the Schemas section. |
timeoutMs | integer | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
POST/stream-requests/{requestCode}/invoke
Invoke Stream request
Invoke a Stream request using its public contract. The raw body must be valid UTF-8 and at most 1 MiB. The optional idempotencyKey is limited to 128 decoded UTF-8 bytes; the frozen contract determines whether it is required. Returns code, contractVersion, result, runID, status and replayed (boolean), without internal runtime bindings. An unknown result returns HTTP 504 with errorCode=STREAM_REQUEST_RESULT_UNKNOWN. Unclassified internal errors return HTTP 500 with errorCode=STREAM_REQUEST_INTERNAL_ERROR; message does not expose internal exceptions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
requestCode | path | string | Yes | Not 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 '{"idempotencyKey":"string","input":"string"}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | At most 128 decoded UTF-8 bytes. The frozen contract determines whether this field is required. |
input | object | Yes | Not specified in OpenAPI |
Responses
200400401403404409422429500503504
Success response example
200 · application/json
{
"code": "string",
"contractVersion": "string",
"replayed": false,
"result": "string",
"runID": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | string | Yes | See the referenced schema in the Schemas section. |
contractVersion | string | Yes | The frozen contract version used for execution. |
replayed | boolean | Yes | true indicates an idempotent replay; false indicates the first execution. |
result | object | Yes | The JSON result defined by the contract; null is allowed. |
runID | string | Yes | The execution identifier returned by the server, represented as an opaque string. |
status | string | Yes | The final status returned by the server; never accepted, queued, pending or running. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
POST/stream-requests/discover
Discover Stream requests
Discover visible Stream request contracts without exposing internal runtime bindings.
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,"search":"string","size":0}'application/json
| Field | Type | Required | Description |
|---|
page | integer | No | Defaults to 1. |
search | string | No | Not specified in OpenAPI |
size | integer | No | Defaults to 20. |
Responses
200400401403404409422429500503504
Success response example
200 · application/json
{
"list": [
{
"code": "value",
"contractVersion": "value",
"description": "value",
"idempotency": "value",
"inputSchema": "value"
}
],
"total": 0
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | See the referenced schema in the Schemas section. |
total | integer | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
Stream messages
POST/stream-messages/connect
Connect Stream messages
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/stream-messages/connect' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","clientPublicKey":"string","topics":[{"publish":"value","subscribe":"value","topic":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
clientPublicKey | string | Yes | Not specified in OpenAPI |
topics | array<object> | Yes | Not specified in OpenAPI |
Responses
200400401403404409422429500503504
Success response example
200 · application/json
{
"contractVersion": "string",
"expiresAt": "string",
"maxPayloadBytes": 0,
"permissions": [
{
"publishSubject": "value",
"subscribeSubject": "value",
"topic": "value"
}
],
"url": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
contractVersion | string | Yes | See the referenced schema in the Schemas section. |
expiresAt | string | Yes | See the referenced schema in the Schemas section. |
maxPayloadBytes | integer | Yes | See the referenced schema in the Schemas section. |
permissions | array<object> | Yes | See the referenced schema in the Schemas section. |
url | string | Yes | See the referenced schema in the Schemas section. |
userJwt | string | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | | application/json |
400 | Platform operation failed. | application/json |
401 | Platform operation failed. | application/json |
403 | Platform operation failed. | application/json |
404 | Platform operation failed. | application/json |
409 | Platform operation failed. | application/json |
422 | Platform operation failed. | application/json |
429 | Platform operation failed. | application/json |
500 | Platform operation failed. | application/json |
503 | Platform operation failed. | application/json |
504 | Platform operation failed. | application/json |
Schemas
API field names, examples, and source descriptions follow the bundled English OpenAPI specification.
AppCollectionContext
| Field | Type | Required | Description |
|---|
alias | string | Yes | Not specified in OpenAPI |
collectionId | string | Yes | Collection ID identifying the owner of business records and samples. |
indexes | array<object> | No | Unified index declaration, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omission preserves indexes; [] removes them. Paths omit data.; unique indexes are record B-trees only. Builds are asynchronous; check readiness through indexStatus. |
permissions | array<string> | Yes | Not specified in OpenAPI |
recordSchema | object | Yes | Schema. See the referenced schema in the Schemas section. |
sampleSchema | object | No | Schema. See the referenced schema in the Schemas section. |
createCapability | object | No | CloudAppCreateCapability. See the referenced schema in the Schemas section. |
revision | integer | Yes | Collection definition revision; increments on structural or index changes. |
indexStatus | array<object> | Yes | Current index state; only ready unique indexes support upsert, and only ready TTL indexes begin expiration deletion. |
ttl | object | Yes | Collection TTL rule, or null when absent. |
ownerAppId | string | No | Owning App of the collection. Equal to the current appId for an owned collection, different for a collection granted from another App; omitted for workspace collections. |
name | string | Yes | Business name of the collection. |
description | string | No | Collection description; omitted when empty. |
directoryPath | array<string> | Yes | Directory names from the workspace root to the collection, in the same shape as appCollectionsEnsure directoryPath; [] when the collection is at the root. |
AppContext
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
collections | array<object> | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
platformPermissions | array<string> | Yes | Explicit platform capabilities; default none; current App grants intersect with key and issuer resources |
revision | integer | Yes | Not specified in OpenAPI |
dataState | string | Yes | uninitialized means no data policy exists: empty collections are returned without writing initialization state; declaring the actual collections through ensure makes the state ready. An administrator-disabled policy still returns HTTP 403 APP_DATA_POLICY_DISABLED and is never re-enabled automatically. |
limits | object | Yes | CloudAppDataLimits. See the referenced schema in the Schemas section. |
CapabilityDiscoverycapability
Unknown capability codes are ignored; only recognized codes use the frozen assessment contract.
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
CapabilityDiscoveryknownCapability
State reports publication and assessed prerequisites only; ready never grants resource access or confirms an actual execution.
| Field | Type | Required | Description |
|---|
state | object | Yes | Not specified in OpenAPI |
reasonCode | string | Yes | Not specified in OpenAPI |
checkedAt | string (date-time) | No | Not specified in OpenAPI |
validUntil | string (date-time) | No | Proof expiry must follow checkedAt. Cross-field chronological ordering is a semantic constraint checked by consumers in addition to this structural JSON Schema. |
retryAfterMs | integer | No | Not specified in OpenAPI |
code | string | Yes | Not specified in OpenAPI |
contractVersions | array<string> | Yes | Not specified in OpenAPI |
operations | array<object> | No | Not specified in OpenAPI |
CapabilityDiscoveryknownOperation
State reports publication and assessed prerequisites only; ready never grants resource access or confirms an actual execution.
| Field | Type | Required | Description |
|---|
state | object | Yes | Not specified in OpenAPI |
reasonCode | string | Yes | Not specified in OpenAPI |
checkedAt | string (date-time) | No | Not specified in OpenAPI |
validUntil | string (date-time) | No | Proof expiry must follow checkedAt. Cross-field chronological ordering is a semantic constraint checked by consumers in addition to this structural JSON Schema. |
retryAfterMs | integer | No | Not specified in OpenAPI |
operation | string | Yes | Not specified in OpenAPI |
requiresResourceCheck | boolean | Yes | Not specified in OpenAPI |
CapabilityDiscoveryoperation
Unknown operation names are ignored within their parent capability; known names are validated by that capability.
| Field | Type | Required | Description |
|---|
operation | string | Yes | Not specified in OpenAPI |
CloudAppCollectionDeclaration
| Field | Type | Required | Description |
|---|
alias | string | Yes | Case-insensitively unique app collection alias, matching src/data/collections.ts. |
name | string | Yes | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. Required. ensure writes the name only on creation; existing names are maintained through metadata updates. Declaration changes do not overwrite user renames. |
recordSchema | object | Yes | Schema. See the referenced schema in the Schemas section. |
indexes | array<object> | No | Declared indexes; ensure unions current and declared indexes without removing any. |
description | string | No | Collection description is written only on creation; later changes use schema:replace. ensure does not write annotations and reports differences in ignored as ANNOTATION_NOT_APPLIED. |
directoryPath | array<string> | No | Real business directory names from the workspace root. Required for new aliases; existing aliases may omit it, and changed paths are ignored without moving Collections. Reuse active directories by parent and name or atomically create missing segments. Archived or non-directory name conflicts fail without restoring directories or granting extra permissions. For industrial data, follow the known ISA-95 equipment hierarchy Enterprise, Site, Area, Work Center, Work Unit. Skip inapplicable levels; non-industrial data uses its real business hierarchy. Never invent five levels. MES, App or business-module directories are allowed below the real equipment scope, for example Factory/Line/MES/Work Orders. Do not flatten data from different equipment scopes into a single root App container. |
CloudAppCollectionEnsureResult
| Field | Type | Required | Description |
|---|
alias | string | Yes | Case-insensitively unique app collection alias, matching src/data/collections.ts. |
collectionId | string | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
ignored | array<object> | Yes | Differences ignored because the declaration is narrower than storage or hits retired; for logging only. |
warnings | array<object> | Yes | Not specified in OpenAPI |
indexStatus | array<object> | Yes | Current index state; only ready unique indexes support upsert. |
CloudAppCollectionRetired
| Field | Type | Required | Description |
|---|
paths | array<string> | Yes | Not specified in OpenAPI |
enumValues | array<object> | Yes | Not specified in OpenAPI |
CloudAppCollectionSchemaNote
| Field | Type | Required | Description |
|---|
path | string | Yes | Schema paths join object properties with dots, escaping literal . and backslash with backslash. Array elements use [], such as lines.[].discount; empty string means the record root. |
reason | string | Yes | Not specified in OpenAPI |
message | string | No | Not specified in OpenAPI |
CloudAppCollectionView
| Field | Type | Required | Description |
|---|
alias | string | Yes | Case-insensitively unique app collection alias, matching src/data/collections.ts. |
collectionId | string | Yes | Not specified in OpenAPI |
name | string | Yes | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. |
description | string | No | Not specified in OpenAPI |
parentId | string | No | Not specified in OpenAPI |
recordSchema | object | Yes | Schema. See the referenced schema in the Schemas section. |
indexes | array<object> | Yes | Not specified in OpenAPI |
indexStatus | array<object> | Yes | Not specified in OpenAPI |
retired | object | Yes | CloudAppCollectionRetired. See the referenced schema in the Schemas section. |
revision | integer | Yes | Not specified in OpenAPI |
archived | boolean | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
CloudAppCollectionWarning
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
path | string | No | Not specified in OpenAPI |
message | string | Yes | Not specified in OpenAPI |
CloudAppCreateCapability
Creation-input hint for the current key/app/employee and collection version; not an authorization credential. allowed=true establishes that compliant input exists, not that uniqueness, actual input or future writes will succeed. inputSchema selects writable fields independently, including write-only fields, rather than using the read schema. owner/state are injected by the server and not exposed to clients. No business defaults are filled; required fields must still be supplied. Unprovable schema semantics safely return false. Writes and replay always reauthorize at runtime; binding is only for UI cache invalidation.
| Field | Type | Required | Description |
|---|
version | string | Yes | Not specified in OpenAPI |
allowed | boolean | Yes | Not specified in OpenAPI |
reason | string | Yes | Not specified in OpenAPI |
appRevision | integer | Yes | Not specified in OpenAPI |
collectionRevision | integer | Yes | Not specified in OpenAPI |
binding | string | Yes | Not specified in OpenAPI |
inputSchema | object | No | Schema. See the referenced schema in the Schemas section. |
CloudAppDataGrant
| Field | Type | Required | Description |
|---|
alias | string | No | Optional access alias; when omitted, authorize and access directly by collectionId. An empty string clears the alias. |
collectionId | string | Yes | Not specified in OpenAPI |
permissions | array<string> | Yes | Not specified in OpenAPI |
dataRule | object | No | CloudAppDataRule. See the referenced schema in the Schemas section. |
CloudAppDataGrantChange
| Field | Type | Required | Description |
|---|
action | string | Yes | Not specified in OpenAPI |
collectionId | string | Yes | Not specified in OpenAPI |
alias | string | No | Optional access alias; when omitted, authorize and access directly by collectionId. An empty string clears the alias. |
permissionLevel | string | No | Business record permission presets: read-only, read-write and manage including deletion. Mutually exclusive with permissions; does not automatically grant sample permissions. |
permissions | array<string> | No | Not specified in OpenAPI |
dataRule | object | No | Omission retains employee rules; null clears them explicitly and requires ruleContractVersion confirmation. |
CloudAppDataLimits
Current data-plane limits for SDK/MCP batch and concurrency adaptation; returned from current server configuration.
| Field | Type | Required | Description |
|---|
count | object | Yes | Not specified in OpenAPI |
total | object | Yes | Not specified in OpenAPI |
queryBatch | object | Yes | Not specified in OpenAPI |
get | object | Yes | Not specified in OpenAPI |
subscribe | object | Yes | Not specified in OpenAPI |
ttl | object | Yes | Not specified in OpenAPI |
concurrency | object | Yes | Not specified in OpenAPI |
idempotencyWindowMs | integer | Yes | Write-idempotency retention window in milliseconds; reuse after the window is treated as a new request. |
CloudAppDataPolicy
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
version | string | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
collections | array<object> | Yes | Not specified in OpenAPI |
authorityStatus | string | Yes | Not specified in OpenAPI |
appName | string | Yes | Not specified in OpenAPI |
ruleContractVersion | string | No | Required explicitly on updates when any previous or proposed Collection grant has a dataRule, including removal and disabled revocation. Omitted for unprotected policies. |
CloudAppDataRule
| Field | Type | Required | Description |
|---|
version | string | Yes | Not specified in OpenAPI |
ownerField | string | Yes | Not specified in OpenAPI |
stateField | string | No | Not specified in OpenAPI |
initialState | string | No | Not specified in OpenAPI |
principals | array<object> | Yes | Not specified in OpenAPI |
CloudAppDataRulePrincipal
| Field | Type | Required | Description |
|---|
userId | string | Yes | Not specified in OpenAPI |
rowScope | string | Yes | Not specified in OpenAPI |
permissions | array<string> | Yes | Not specified in OpenAPI |
readFields | array<string> | No | Not specified in OpenAPI |
writeFields | array<string> | No | Not specified in OpenAPI |
writeStates | array<string> | No | Not specified in OpenAPI |
transitions | array<object> | No | Not specified in OpenAPI |
CloudAppDataRuleTransition
| Field | Type | Required | Description |
|---|
from | string | Yes | Not specified in OpenAPI |
to | string | Yes | Not specified in OpenAPI |
CloudAppStreamAccessItem
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
streamId | string | Yes | Not specified in OpenAPI |
streamName | string | Yes | Not specified in OpenAPI |
entryId | string | Yes | Not specified in OpenAPI |
entryName | string | Yes | Not specified in OpenAPI |
actions | array<string> | Yes | Not specified in OpenAPI |
configuredActive | integer | Yes | Not specified in OpenAPI |
state | string | Yes | Not specified in OpenAPI |
blockedReasons | array<string> | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
CloudAppStreamAccessPage
| Field | Type | Required | Description |
|---|
items | array<object> | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
CloudAppStreamPolicy
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
version | string | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
authorityStatus | string | Yes | Not specified in OpenAPI |
appName | string | Yes | Not specified in OpenAPI |
platformPermissions | array<string> | Yes | Not specified in OpenAPI |
messageTopics | array<object> | No | Not specified in OpenAPI |
CloudCappedCount
Capped count.
| Field | Type | Required | Description |
|---|
count | integer | Yes | Not specified in OpenAPI |
capped | boolean | Yes | capped=true means actual matches exceed the cap, checked using cap + 1 rows, and count equals the cap. With capped=false, count is the complete total. |
CloudCollectionTTL
Collection TTL rule: physically delete records after path time plus expireAfterSeconds; irreversible.
| Field | Type | Required | Description |
|---|
path | string | Yes | Expiration timestamp field. |
expireAfterSeconds | integer | Yes | Not specified in OpenAPI |
CloudDataPage
Pipeline-generated documents, without record/sample wrappers. Fields are determined by pipeline.
| Field | Type | Required | Description |
|---|
items | array<object> | Yes | Not specified in OpenAPI |
pageInfo | object | Yes | CloudPageInfo. See the referenced schema in the Schemas section. |
CloudDistinctPage
| Field | Type | Required | Description |
|---|
mode | string | No | Not specified in OpenAPI |
page | integer | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
CloudDistinctResult
| Field | Type | Required | Description |
|---|
values | array<object> | Yes | Not specified in OpenAPI |
pageInfo | object | Yes | CloudPageInfo. See the referenced schema in the Schemas section. |
CloudNullableRecordDocument
Ordinary business record. Business fields are in data; system attributes are siblings. filter/projection use bare business names and _id/_meta.*, not response-object paths. lock describes only active leases and does not return tokens.
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
collectionId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
createdAt | integer | Yes | Unix milliseconds. |
updatedAt | integer | Yes | Unix milliseconds. |
sourceId | string | Yes | Not specified in OpenAPI |
sourceTime | integer | Yes | Unix milliseconds. |
lock | object | No | CloudRecordLockView. See the referenced schema in the Schemas section. |
CloudNullableSampleDocument
Ordinary sample object. Business fields are in data; time, quality, record identity and available provenance are siblings.
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
collectionId | string | Yes | Not specified in OpenAPI |
recordId | string | Yes | Not specified in OpenAPI |
time | integer | Yes | Unix milliseconds. |
receivedAt | integer | Yes | Unix milliseconds. |
quality | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
sourceId | string | Yes | Not specified in OpenAPI |
streamId | string | No | Not specified in OpenAPI |
bindingId | string | No | Not specified in OpenAPI |
CloudPageInfo
| Field | Type | Required | Description |
|---|
mode | string | Yes | Not specified in OpenAPI |
hasMore | boolean | Yes | Not specified in OpenAPI |
nextCursor | string | Yes | Not specified in OpenAPI |
nextPage | integer | Yes | Not specified in OpenAPI |
snapshotScope | string | Yes | Not specified in OpenAPI |
CloudPlatformReadiness
| Field | Type | Required | Description |
|---|
ready | boolean | Yes | Not specified in OpenAPI |
reasonCode | string | Yes | Not specified in OpenAPI |
checkedAt | string (date-time) | No | Not specified in OpenAPI |
validUntil | string (date-time) | No | Not specified in OpenAPI |
retryAfterMs | integer | No | Not specified in OpenAPI |
CloudPreviewResult
| Field | Type | Required | Description |
|---|
validated | boolean | Yes | Not specified in OpenAPI |
sideEffects | boolean | Yes | Not specified in OpenAPI |
CloudRecordAggregatePage
Pipeline-generated documents; total is the capped count of pipeline output.
| Field | Type | Required | Description |
|---|
items | array<object> | Yes | Not specified in OpenAPI |
pageInfo | object | Yes | CloudPageInfo. See the referenced schema in the Schemas section. |
total | object | No | CloudCappedCount. See the referenced schema in the Schemas section. |
CloudRecordBatchQuery
Batch entries support find/count/distinct/aggregate/get. Fields follow each op variant, with id and op. Record distinct is available only within queryBatch; no standalone distinct endpoint exists.
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]{1,64}$",
"description": "Unique query identifier within the batch, used to return results."
},
"op": {
"type": "string",
"enum": [
"find"
]
},
"collectionId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "Collection ID identifying the owner of business records and samples."
},
"filter": {
"$ref": "#/components/schemas/UnsV2DataFilter"
},
"sort": {
"$ref": "#/components/schemas/UnsV2PipelineSort"
},
"projection": {
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "integer",
"enum": [
0,
1
]
},
{
"type": "boolean"
}
]
},
"description": "Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200
},
"cursor": {
"type": "string"
},
"count": {
"$ref": "#/components/schemas/CloudRecordTotalOption"
}
},
"required": [
"id",
"op",
"collectionId"
],
"allOf": [
{
"not": {
"required": [
"count",
"cursor"
]
}
}
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]{1,64}$",
"description": "Unique query identifier within the batch, used to return results."
},
"op": {
"type": "string",
"enum": [
"count"
]
},
"collectionId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "Collection ID identifying the owner of business records and samples."
},
"filter": {
"$ref": "#/components/schemas/UnsV2DataFilter"
},
"maxCount": {
"type": "integer",
"minimum": 1,
"maximum": 100000,
"default": 100000,
"description": "Count limit; actual counts above maxCount return count=maxCount and capped=true. Equality returns capped=false."
}
},
"required": [
"id",
"op",
"collectionId"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]{1,64}$",
"description": "Unique query identifier within the batch, used to return results."
},
"op": {
"type": "string",
"enum": [
"distinct"
]
},
"collectionId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "Collection ID identifying the owner of business records and samples."
},
"filter": {
"$ref": "#/components/schemas/UnsV2DataFilter"
},
"field": {
"type": "string"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200
},
"page": {
"$ref": "#/components/schemas/CloudDistinctPage"
}
},
"required": [
"id",
"op",
"collectionId",
"field"
],
"allOf": [
{
"not": {
"required": [
"limit",
"page"
]
}
}
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]{1,64}$",
"description": "Unique query identifier within the batch, used to return results."
},
"op": {
"type": "string",
"enum": [
"aggregate"
]
},
"collectionId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "Collection ID identifying the owner of business records and samples."
},
"pipeline": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineStage"
},
"minItems": 0,
"maxItems": 32
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200
},
"page": {
"$ref": "#/components/schemas/UnsV2PipelinePage"
},
"count": {
"$ref": "#/components/schemas/CloudRecordTotalOption"
}
},
"required": [
"id",
"op",
"collectionId",
"pipeline"
],
"allOf": [
{
"not": {
"required": [
"page",
"limit"
]
}
},
{
"not": {
"required": [
"count",
"page"
],
"properties": {
"page": {
"required": [
"cursor"
]
}
}
}
}
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]{1,64}$",
"description": "Unique query identifier within the batch, used to return results."
},
"op": {
"type": "string",
"enum": [
"get"
]
},
"collectionId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"minItems": 1,
"maxItems": 100,
"uniqueItems": true
},
"projection": {
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "integer",
"enum": [
0,
1
]
},
{
"type": "boolean"
}
]
},
"description": "Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained."
}
},
"required": [
"id",
"op",
"collectionId",
"ids"
]
}
],
"description": "Batch entries support find/count/distinct/aggregate/get. Fields follow each op variant, with id and op. Record distinct is available only within queryBatch; no standalone distinct endpoint exists."
}CloudRecordBatchQueryResult
Individual result. Validation, compilation, authorization and individual SQL errors affect only that item; statement timeout or exceeding the batch read budget fails the whole batch.
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"ok": {
"type": "boolean",
"enum": [
true
]
},
"data": {
"oneOf": [
{
"$ref": "#/components/schemas/CloudRecordPage"
},
{
"$ref": "#/components/schemas/CloudCappedCount"
},
{
"$ref": "#/components/schemas/CloudDistinctResult"
},
{
"$ref": "#/components/schemas/CloudRecordAggregatePage"
},
{
"$ref": "#/components/schemas/CloudRecordGetResult"
}
],
"description": "Same as data in the corresponding single endpoint's successful response."
}
},
"required": [
"ok",
"data"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"ok": {
"type": "boolean",
"enum": [
false
]
},
"error": {
"$ref": "#/components/schemas/Fault"
}
},
"required": [
"ok",
"error"
]
}
],
"description": "Individual result. Validation, compilation, authorization and individual SQL errors affect only that item; statement timeout or exceeding the batch read budget fails the whole batch."
}CloudRecordChangeEvent
| Field | Type | Required | Description |
|---|
eventId | string | Yes | Event position, equal to the SSE frame id; use as Last-Event-ID on reconnect. Opaque; do not parse or concatenate it. |
collectionId | string | Yes | Not specified in OpenAPI |
recordId | string | Yes | Not specified in OpenAPI |
revision | integer | Yes | Record revision after the change; delete uses the deletion revision. |
change | string | Yes | record: insert, update or restore; delete: soft deletion or physical TTL deletion. Read again by recordId to obtain current content. |
occurredAt | integer | Yes | Write time: server time within the write transaction, in Unix milliseconds. Events follow write-transaction order, not commit order. Revisions for one record are not guaranteed monotonic. Reread by recordId and ignore non-delete events whose revision is no newer than already observed. Always process delete events, including late ones, and clear the record's observed revision. Treat later events with the same ID as a new record: revisions continue after soft deletion but restart at 1 after physical deletion. |
restricted | boolean | Yes | true when the collection has employee data rules. Servers aggregating under app identity may forward restricted events only as collection-level notifications without recordId/revision. Browsers reread through employee-rule-protected endpoints to avoid disclosing inaccessible record existence. |
CloudRecordGetResult
items follow requested ids order; nonexistent, soft-deleted or unreadable IDs appear in missing.
| Field | Type | Required | Description |
|---|
items | array<object> | Yes | Not specified in OpenAPI |
missing | array<string> | Yes | Not specified in OpenAPI |
CloudRecordLeaseGrant
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
token | string | Yes | Not specified in OpenAPI |
expiresAt | integer | Yes | Unix milliseconds. |
fence | integer | Yes | Not specified in OpenAPI |
record | object | Yes | RecordDocument. See the referenced schema in the Schemas section. |
CloudRecordLockView
| Field | Type | Required | Description |
|---|
label | string | Yes | Not specified in OpenAPI |
expiresAt | integer | Yes | Unix milliseconds. |
fence | integer | Yes | Not specified in OpenAPI |
since | integer | Yes | Unix milliseconds. |
CloudRecordPage
| Field | Type | Required | Description |
|---|
items | array<object> | Yes | Not specified in OpenAPI |
pageInfo | object | Yes | CloudPageInfo. See the referenced schema in the Schemas section. |
total | object | No | CloudCappedCount. See the referenced schema in the Schemas section. |
CloudRecordSubscribeFrame
SSE frame: event is the frame type, id is the resume position, and data is JSON. Sends heartbeat immediately on connection with the current position as id, then every 15 seconds. change follows write-transaction order, so record revisions may not be monotonic; see CloudRecordChangeEvent.occurredAt. reset closes the connection.
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"event": {
"type": "string",
"enum": [
"change"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 8192
},
"data": {
"$ref": "#/components/schemas/CloudRecordChangeEvent"
}
},
"required": [
"event",
"id",
"data"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"event": {
"type": "string",
"enum": [
"heartbeat"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 8192
},
"data": {
"type": "object",
"additionalProperties": false,
"properties": {
"at": {
"type": "integer",
"description": "Server time in Unix milliseconds."
}
},
"required": [
"at"
]
}
},
"required": [
"event",
"id",
"data"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"event": {
"type": "string",
"enum": [
"reset"
]
},
"data": {
"$ref": "#/components/schemas/CloudRecordSubscribeReset"
}
},
"required": [
"event",
"data"
]
}
],
"description": "SSE frame: event is the frame type, id is the resume position, and data is JSON. Sends heartbeat immediately on connection with the current position as id, then every 15 seconds. change follows write-transaction order, so record revisions may not be monotonic; see CloudRecordChangeEvent.occurredAt. reset closes the connection."
}CloudRecordSubscribeReset
The server closes the connection after reset. Read current data again, then subscribe without Last-Event-ID.
| Field | Type | Required | Description |
|---|
reason | string | Yes | CURSOR_EXPIRED: changes after the resume position passed 24-hour retention, the cursor cannot be decoded (for example after key rotation), or the tenant database moved instances. SCOPE_CHANGED: authorization scope changed, including readable collection changes when collectionIds was omitted or a collection becoming unreadable during resume. Both require rereading current data and subscribing again without a resume position. |
message | string | No | Not specified in OpenAPI |
CloudRecordTotalOption
Include matching total from the same read-only snapshot as total:{count,capped}. Only for the first or an offset page; combining with continuation cursor returns INVALID_REQUEST.
| Field | Type | Required | Description |
|---|
max | integer | No | Total cap; if actual total exceeds max, total.count=max and total.capped=true. |
CloudSamplePage
| Field | Type | Required | Description |
|---|
items | array<object> | Yes | Not specified in OpenAPI |
pageInfo | object | Yes | CloudPageInfo. See the referenced schema in the Schemas section. |
CloudSourceDocumentSummary
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
description | string | Yes | Not specified in OpenAPI |
createdAt | integer | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
redacted | boolean | Yes | Not specified in OpenAPI |
protocol | string | Yes | Not specified in OpenAPI |
runtimeState | string | Yes | Not specified in OpenAPI |
health | string | Yes | Not specified in OpenAPI |
platformReadiness | object | No | CloudPlatformReadiness. See the referenced schema in the Schemas section. |
reference | boolean | No | Not specified in OpenAPI |
nativeProtocol | string | No | Not specified in OpenAPI |
target | object | No | StreamSourceTarget. See the referenced schema in the Schemas section. |
configRevision | integer | No | Opaque execution snapshot version; may advance on rename. Read the authoritative receipt, never infer it from revision. |
desiredState | string | No | Not specified in OpenAPI |
sourceType | string | No | Not specified in OpenAPI |
runtimeLocation | string | No | Not specified in OpenAPI |
CloudSourceDocumentView
| Field | Type | Required | Description |
|---|
id | string | Yes | Positive decimal int64 identifier; always a string on the wire. |
revision | integer | Yes | Not specified in OpenAPI |
document | object | Yes | SourceDefinition. See the referenced schema in the Schemas section. |
runtimeState | string | Yes | Not specified in OpenAPI |
health | string | Yes | Not specified in OpenAPI |
createdAt | integer | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
platformReadiness | object | No | CloudPlatformReadiness. See the referenced schema in the Schemas section. |
configRevision | integer | No | Opaque execution snapshot version; may advance on rename. Read the authoritative receipt, never infer it from revision. |
desiredState | string | No | Not specified in OpenAPI |
CloudSourceObservationsFull
| Field | Type | Required | Description |
|---|
items | array<object> | Yes | Not specified in OpenAPI |
window | object | Yes | Not specified in OpenAPI |
coverage | string | Yes | Not specified in OpenAPI |
checkedAt | integer (int64) | Yes | Not specified in OpenAPI |
CloudSourceObservationsSummary
| Field | Type | Required | Description |
|---|
view | string | Yes | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
coverage | string | Yes | Not specified in OpenAPI |
checkedAt | integer (int64) | Yes | Not specified in OpenAPI |
CloudSourceReferenceView
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
configRevision | integer | Yes | Opaque execution snapshot version; may advance on rename. Read the authoritative receipt, never infer it from revision. |
reference | boolean | Yes | Not specified in OpenAPI |
nativeProtocol | string | Yes | Not specified in OpenAPI |
target | object | Yes | StreamSourceTarget. See the referenced schema in the Schemas section. |
runtimeState | string | Yes | Not specified in OpenAPI |
health | string | Yes | Not specified in OpenAPI |
desiredState | string | Yes | Not specified in OpenAPI |
CloudSourceSummaryView
Safe source inventory; no document or configuration is returned. Never use this summary as an editor document.
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
description | string | Yes | Not specified in OpenAPI |
protocol | string | Yes | Not specified in OpenAPI |
runtimeState | string | Yes | Not specified in OpenAPI |
health | string | Yes | Not specified in OpenAPI |
createdAt | integer | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
redacted | boolean | Yes | Not specified in OpenAPI |
platformReadiness | object | No | CloudPlatformReadiness. See the referenced schema in the Schemas section. |
CloudStreamDocument
Shared Stream script and Source bindings; Cloud deployment additionally exposes model, entries and messages.
| Field | Type | Required | Description |
|---|
name | string | Yes | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
model | string | No | Not specified in OpenAPI |
script | object | Yes | StreamScript. See the referenced schema in the Schemas section. |
sources | array<object> | No | Not specified in OpenAPI |
entries | array<object> | No | Not specified in OpenAPI |
messages | array<object> | No | Not specified in OpenAPI |
sourceBindings | array<object> | No | Not specified in OpenAPI |
extensions | object | No | Not specified in OpenAPI |
CloudStreamDocumentSummary
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
description | string | Yes | Not specified in OpenAPI |
createdAt | integer | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
redacted | boolean | Yes | Not specified in OpenAPI |
model | string | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
activeRelease | integer | Yes | Cloud extension: release sequence, not the activeVersion identifier. |
platformReadiness | object | No | CloudPlatformReadiness. See the referenced schema in the Schemas section. |
activeVersion | string | No | Authoritative active version identifier, or 0 when inactive. |
CloudStreamDocumentView
| Field | Type | Required | Description |
|---|
id | string | Yes | Positive decimal int64 identifier; always a string on the wire. |
revision | integer | Yes | Not specified in OpenAPI |
document | object | Yes | CloudStreamDocument. See the referenced schema in the Schemas section. |
activeDocument | object | No | CloudStreamDocument. See the referenced schema in the Schemas section. |
status | string | Yes | Not specified in OpenAPI |
activeRelease | integer | Yes | Cloud extension: release sequence, not the activeVersion identifier. |
createdAt | integer | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
platformReadiness | object | No | CloudPlatformReadiness. See the referenced schema in the Schemas section. |
activeVersion | string | No | Authoritative active version identifier, or 0 when inactive. |
CloudStreamEntry
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
kind | string | Yes | Not specified in OpenAPI |
config | object | No | Not specified in OpenAPI |
topic | string | No | Not specified in OpenAPI |
request | object | No | CloudStreamRequestDefinition. See the referenced schema in the Schemas section. |
CloudStreamMessageDeclaration
| Field | Type | Required | Description |
|---|
topic | string | Yes | Not specified in OpenAPI |
access | string | Yes | Not specified in OpenAPI |
CloudStreamMessageTopicPermission
| Field | Type | Required | Description |
|---|
topic | string | Yes | Not specified in OpenAPI |
publish | boolean | Yes | Not specified in OpenAPI |
subscribe | boolean | Yes | Not specified in OpenAPI |
CloudStreamProgramSummary
Cloud deployment inventory. model and activeRelease are the stored native values; activeVersion is the immutable release row ID. The redacted document is display-only and has no script, entries or Source bindings.
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
model | string | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
activeRelease | integer | Yes | Not specified in OpenAPI |
activeVersion | string | Yes | Not specified in OpenAPI |
executionState | string | Yes | Not specified in OpenAPI |
document | object | Yes | Not specified in OpenAPI |
redacted | boolean | Yes | Not specified in OpenAPI |
createdAt | integer | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
platformReadiness | object | No | CloudPlatformReadiness. See the referenced schema in the Schemas section. |
CloudStreamProgramView
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
model | string | Yes | Not specified in OpenAPI |
revision | integer | Yes | Draft revision returned by this operation; pass it directly as the next expectedRevision. |
activeVersion | string | Yes | Authoritative active version identifier, or 0 when inactive. |
activeRelease | integer | No | Cloud extension: release sequence, not the activeVersion identifier. |
status | string | Yes | Not specified in OpenAPI |
executionState | string | Yes | Not specified in OpenAPI |
createdAt | integer | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
document | object | No | Not specified in OpenAPI |
platformReadiness | object | No | CloudPlatformReadiness. See the referenced schema in the Schemas section. |
CloudStreamRequestDefinition
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
contractVersion | string | Yes | Not specified in OpenAPI |
inputSchema | object | Yes | Not specified in OpenAPI |
outputSchema | object | Yes | Not specified in OpenAPI |
sideEffect | string | Yes | Not specified in OpenAPI |
idempotency | string | Yes | Not specified in OpenAPI |
timeoutMs | integer | Yes | Not specified in OpenAPI |
status | string | No | Not specified in OpenAPI |
CloudStreamRequestGrantInfo
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
principalKind | string | Yes | Not specified in OpenAPI |
principalID | string | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
bindingDigest | string | Yes | Not specified in OpenAPI |
recipientEligible | integer | Yes | Not specified in OpenAPI |
recipientActions | array<string> | Yes | Not specified in OpenAPI |
registered | integer | Yes | Not specified in OpenAPI |
active | integer | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
actions | array<string> | Yes | Not specified in OpenAPI |
targets | array<object> | Yes | Not specified in OpenAPI |
createdPrincipal | string | Yes | Not specified in OpenAPI |
updatedPrincipal | string | Yes | Not specified in OpenAPI |
createdTime | integer | Yes | Not specified in OpenAPI |
updatedTime | integer | Yes | Not specified in OpenAPI |
activationSupported | integer | Yes | Not specified in OpenAPI |
snapshotToken | string | Yes | Server-generated authorization snapshot version, for concurrency checking only, not an invocation credential. |
CloudStreamRequestGrantMutation
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
principalKind | string | Yes | Not specified in OpenAPI |
principalID | string | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
active | integer | Yes | Not specified in OpenAPI |
snapshotToken | string | No | New snapshot returned after a successful expectedSnapshotToken update; absent in legacy revision-field mode. |
CloudStreamRequestGrantTargetInfo
| Field | Type | Required | Description |
|---|
digest | string | Yes | Not specified in OpenAPI |
action | string | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
active | integer | Yes | Not specified in OpenAPI |
current | integer | Yes | Not specified in OpenAPI |
kind | string | Yes | Not specified in OpenAPI |
reference | string | Yes | Not specified in OpenAPI |
CloudStreamRequestGrantTargetRevision
| Field | Type | Required | Description |
|---|
digest | string | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
CloudStreamRunError
Safe run diagnostics from a server allowlist; credentials, upstream response bodies, query parameters and arbitrary script exceptions are excluded. Older records or services may omit this field.
| Field | Type | Required | Description |
|---|
code | string | Yes | Stable reason code; callers must tolerate new codes. |
stage | string | Yes | Confirmed failure stage; unspecified failures use execution, and unconfirmed outcomes use unknown. |
message | string | Yes | Fixed reason text selected from the server allowlist. |
repair | string | Yes | Fixed repair guidance; it does not authorize automatically expanding permissions or replaying writes. |
sourceRequest | string | No | Indicates only that the Source request causing this error was not dispatched; earlier external calls or writes in the same run may have completed. Omitted when unconfirmed or unrelated to a Source request. |
CloudStreamStopView
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
activeRelease | integer | Yes | Cloud extension: release sequence, not the activeVersion identifier. |
createdAt | integer | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
activeVersion | string | No | Authoritative active version identifier, or 0 when inactive. |
CloudWriteError
| Field | Type | Required | Description |
|---|
index | integer | Yes | Not specified in OpenAPI |
id | string | No | Not specified in OpenAPI |
error | object | Yes | Fault. See the referenced schema in the Schemas section. |
CollectionDescription
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID identifying the owner of business records and samples. |
description | string | Yes | Not specified in OpenAPI |
fields | array<object> | Yes | Not specified in OpenAPI |
indexStatus | array<object> | Yes | Read-only index status: name/spec/state/error. Only ready means the declared physical index is effective; pending/building/failed cannot support business-key upsert. Mounted collections enforce uniqueness at the source. |
indexes | array<object> | Yes | Unified index declaration, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omission preserves indexes; [] removes them. Paths omit data.; unique indexes are record B-trees only. Builds are asynchronous; check readiness through indexStatus. |
metadataNotice | string | Yes | Not specified in OpenAPI |
name | string | Yes | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. |
recordGrain | string | No | Not specified in OpenAPI |
recordSchema | object | Yes | Schema. See the referenced schema in the Schemas section. |
relationships | array<object> | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
sampleGrain | string | No | Not specified in OpenAPI |
sampleSchema | object | No | Schema. See the referenced schema in the Schemas section. |
CollectionRelationship
| Field | Type | Required | Description |
|---|
cardinality | string | Yes | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
sourceField | string | Yes | Not specified in OpenAPI |
targetCollectionId | string | Yes | Not specified in OpenAPI |
targetField | string | Yes | Not specified in OpenAPI |
CollectionSemantics
| Field | Type | Required | Description |
|---|
fields | array<object> | No | Not specified in OpenAPI |
recordGrain | string | No | Not specified in OpenAPI |
relationships | array<object> | No | Not specified in OpenAPI |
sampleGrain | string | No | Not specified in OpenAPI |
DiscoveredField
| Field | Type | Required | Description |
|---|
aggregationNote | string | No | Not specified in OpenAPI |
description | string | Yes | Not specified in OpenAPI |
enum | array<object> | No | Not specified in OpenAPI |
kind | string | Yes | Not specified in OpenAPI |
path | string | Yes | Not specified in OpenAPI |
required | boolean | Yes | Not specified in OpenAPI |
type | string | Yes | Not specified in OpenAPI |
unit | string | Yes | Not specified in OpenAPI |
format | string | No | Type representation annotation: int32 for integer, float (float32) or double (float64) for number, and date-time (datetime) for string. Adds no numeric range, precision or date-format validation, rounding, date parsing or time-zone conversion. Omission preserves base-type semantics. The outer sample time field is unchanged. |
DiscoveryCollection
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID identifying the owner of business records and samples. |
description | string | Yes | Not specified in OpenAPI |
hasSamples | boolean | No | Not specified in OpenAPI |
name | string | Yes | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. |
recordGrain | string | No | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
sampleGrain | string | No | Not specified in OpenAPI |
DiscoveryResult
| Field | Type | Required | Description |
|---|
asOf | integer | No | Cursor traversal cutoff in Unix milliseconds; not a retained database snapshot. |
complete | boolean | Yes | True only when this response contains the entire query result; a final page alone is not complete. |
hasMore | boolean | Yes | Continue with nextCursor in cursor mode, otherwise nextPage. |
list | array<object> | Yes | Not specified in OpenAPI |
nextCursor | string | No | Not specified in OpenAPI |
nextPage | integer | No | Not specified in OpenAPI |
page | integer | Yes | Page number, starting at 1. |
size | integer | Yes | Page size; see this endpoint's maximum or the capability catalog. |
snapshotScope | string | Yes | thisRequestOnly uses independent request snapshots; boundedLive limits cursor traversal by asOf but does not preserve row versions across requests. |
total | integer | Yes | Matching row count; null when includeTotal=false. |
totalKnown | boolean | No | Not specified in OpenAPI |
truncated | boolean | Yes | Not specified in OpenAPI |
DocCatalog
| Field | Type | Required | Description |
|---|
capabilities | object | Yes | Not specified in OpenAPI |
contractVersion | string | Yes | Not specified in OpenAPI |
limits | object | Yes | Not specified in OpenAPI |
models | array<object> | Yes | Not specified in OpenAPI |
operations | array<object> | Yes | Not specified in OpenAPI |
relations | array<object> | No | Not specified in OpenAPI |
schemas | object | Yes | Not specified in OpenAPI |
version | string | No | Not specified in OpenAPI |
cloudContractRevision | string | No | Not specified in OpenAPI |
kinds | array<string> | No | Not specified in OpenAPI |
modes | array<string> | No | Not specified in OpenAPI |
jobStates | array<string> | No | Not specified in OpenAPI |
actions | array<string> | No | Not specified in OpenAPI |
DocCloudAppDataPolicyGetResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | CloudAppDataPolicy. See the referenced schema in the Schemas section. |
DocCloudAppDataPolicyUpdateOutcome
| Field | Type | Required | Description |
|---|
jobId | string | No | Not specified in OpenAPI |
replayed | boolean | Yes | Not specified in OpenAPI |
results | array<object> | No | Not specified in OpenAPI |
status | string | Yes | Execution state of this operation. |
summary | object | No | OutcomeSummary. See the referenced schema in the Schemas section. |
DocCloudAppDataPolicyUpdateResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | DocCloudAppDataPolicyUpdateOutcome. See the referenced schema in the Schemas section. |
DocCloudAppDataPolicyUpdateResult
| Field | Type | Required | Description |
|---|
opId | string | Yes | Input identifier for correlating the original request. |
action | string | Yes | Not specified in OpenAPI |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
status | string | Yes | Execution state of this input item. |
kind | string | No | Not specified in OpenAPI |
revision | integer | No | Not specified in OpenAPI |
error | object | No | DocItemFault. See the referenced schema in the Schemas section. |
DocCloudAppStreamAccessListResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | CloudAppStreamAccessPage. See the referenced schema in the Schemas section. |
DocCloudAppStreamPolicyGetResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | CloudAppStreamPolicy. See the referenced schema in the Schemas section. |
DocCloudAppStreamPolicyUpdateOutcome
| Field | Type | Required | Description |
|---|
jobId | string | No | Not specified in OpenAPI |
replayed | boolean | Yes | Not specified in OpenAPI |
results | array<object> | No | Not specified in OpenAPI |
status | string | Yes | Execution state of this operation. |
summary | object | No | OutcomeSummary. See the referenced schema in the Schemas section. |
DocCloudAppStreamPolicyUpdateResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | DocCloudAppStreamPolicyUpdateOutcome. See the referenced schema in the Schemas section. |
DocCloudAppStreamPolicyUpdateResult
| Field | Type | Required | Description |
|---|
opId | string | Yes | Input identifier for correlating the original request. |
action | string | Yes | Not specified in OpenAPI |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
status | string | Yes | Execution state of this input item. |
kind | string | No | Not specified in OpenAPI |
revision | integer | No | Not specified in OpenAPI |
error | object | No | DocItemFault. See the referenced schema in the Schemas section. |
DocCommonError
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | No | Not specified in OpenAPI |
error | object | Yes | Not specified in OpenAPI |
DocItemFault
| Field | Type | Required | Description |
|---|
code | string | Yes | Machine-readable error code, such as OVERLOADED or VERSION_CONFLICT. |
reason | string | Yes | Developer-facing error reason. |
details | array<object> | Yes | Structured location information; an empty array when absent. |
execution | string | Yes | notStarted: rejected before the write path; rolledBack: executed then fully rolled back; committed: committed; unknown: commit status cannot be established. unknown occurs only on writes, never reads. notStarted/rolledBack establish no committed side effects. For non-atomic partialCommit operations, any committed chunk/item means committed, possibly partially. retry.safe=false and error-envelope data contains cumulative results. |
retry | object | Yes | ErrorRetry. See the referenced schema in the Schemas section. |
repair | string | No | Suggested correction, such as narrowing query scope. |
opId | string | No | Identifier of the failed input item. |
queryId | string | No | Identifier of the failed query in a query batch. |
path | string | No | Location of the invalid input, when available. |
DocJobRow
| Field | Type | Required | Description |
|---|
attempts | integer | No | Not specified in OpenAPI |
createdAt | integer | No | Not specified in OpenAPI |
error | object | No | Not specified in OpenAPI |
executionStatus | string | Yes | Not specified in OpenAPI |
finishedAt | integer | No | Not specified in OpenAPI |
jobId | string | Yes | Not specified in OpenAPI |
outcome | string | Yes | Data commit outcome independent of legacy status; failed does not imply rollback. |
progress | object | Yes | Not specified in OpenAPI |
result | object | No | Original submitted operation result, using that operation's result structure. |
startedAt | integer | No | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
DocJobsQueryResult
| Field | Type | Required | Description |
|---|
queryId | string | Yes | Not specified in OpenAPI |
list | array<object> | Yes | Not specified in OpenAPI |
DocMetadataRow
| Field | Type | Required | Description |
|---|
createdAt | integer | No | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
deletedAt | integer | No | Not specified in OpenAPI |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
kind | string | Yes | Not specified in OpenAPI |
launch | object | No | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
updatedAt | integer | No | Not specified in OpenAPI |
relationship | object | No | Not specified in OpenAPI |
DocNamespaceQueryResult
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
hasMore | boolean | Yes | Not specified in OpenAPI |
nextPage | integer | No | Not specified in OpenAPI |
complete | boolean | Yes | Not specified in OpenAPI |
truncated | boolean | Yes | Not specified in OpenAPI |
snapshotScope | string | Yes | Not specified in OpenAPI |
queryId | string | Yes | Not specified in OpenAPI |
ancestors | array<object> | No | Not specified in OpenAPI |
DocOtherReference
| Field | Type | Required | Description |
|---|
createdAt | integer | No | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
deletedAt | integer | No | Not specified in OpenAPI |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
kind | string | Yes | Not specified in OpenAPI |
launch | object | No | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
updatedAt | integer | No | Not specified in OpenAPI |
relationship | object | No | Not specified in OpenAPI |
DocRecordPlanStep
| Field | Type | Required | Description |
|---|
action | string | Yes | Not specified in OpenAPI |
bindingSources | array<string> | No | Not specified in OpenAPI |
changedFields | array<string> | No | Not specified in OpenAPI |
checksRevision | boolean | Yes | Not specified in OpenAPI |
collectionId | string | No | Collection ID identifying the owner of business records and samples. |
conditionCount | integer | Yes | Not specified in OpenAPI |
conditionFields | array<string> | No | Not specified in OpenAPI |
dependsOn | array<string> | No | Prerequisite opIds; the server checks dependency cycles. |
opId | string | Yes | Unique operation identifier within the transaction, used by dependencies and result references. |
targetId | string | No | Not specified in OpenAPI |
DocRecordValidation
| Field | Type | Required | Description |
|---|
executionGuaranteed | boolean | Yes | Not specified in OpenAPI |
locksHeldAfterResponse | boolean | Yes | Not specified in OpenAPI |
plan | array<object> | Yes | Not specified in OpenAPI |
readCollections | array<string> | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
warnings | array<string> | Yes | Not specified in OpenAPI |
writeCollections | array<string> | Yes | Not specified in OpenAPI |
writesCommitted | boolean | Yes | Not specified in OpenAPI |
DocReferencesQueryResult
| Field | Type | Required | Description |
|---|
queryId | string | Yes | Not specified in OpenAPI |
targets | array<object> | Yes | Not specified in OpenAPI |
DocStreamReference
| Field | Type | Required | Description |
|---|
createdAt | integer | No | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
deletedAt | integer | No | Not specified in OpenAPI |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
kind | string | Yes | Not specified in OpenAPI |
launch | object | No | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
updatedAt | integer | No | Not specified in OpenAPI |
relationship | object | No | Not specified in OpenAPI |
DocTopicView
| Field | Type | Required | Description |
|---|
queryId | string | Yes | Not specified in OpenAPI |
meta | object | Yes | DocMetadataRow. See the referenced schema in the Schemas section. |
fields | array<object> | Yes | Not specified in OpenAPI |
DocUnsV2AppCollectionsArchiveResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2AppCollectionsEnsureResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2AppCollectionsListResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2AppCollectionsRestoreResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2AppCollectionsSchemaReplaceResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2CatalogResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | DocCatalog. See the referenced schema in the Schemas section. |
DocUnsV2CollectionDescribeResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | CollectionDescription. See the referenced schema in the Schemas section. |
DocUnsV2DataAppContextResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | AppContext. See the referenced schema in the Schemas section. |
DocUnsV2DataDiscoverResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | DiscoveryResult. See the referenced schema in the Schemas section. |
DocUnsV2EdgeNodesListResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2JobsResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2MetadataAggregateResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2MetadataBulkWritePartialError
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | No | With error.execution=committed, cumulative data includes results/errors/nextIndex/unknownUntil. Indices below nextIndex absent from errors committed; [nextIndex, unknownUntil) is uncertain. Retry with the same key if present. Without a key, only client-ID inserts and ID-based replacements/deletes can be reconciled by reading IDs; server-ID inserts, filter-selected operations and incremental updates such as $inc cannot be safely continued. Always use keys for these writes. Without unknownUntil, continuation from nextIndex is safe. null when nothing committed. |
error | object | Yes | Not specified in OpenAPI |
DocUnsV2MetadataBulkWriteResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2MetadataCountResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2MetadataDeleteManyResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2MetadataDeleteOneResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2MetadataFindResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | MetadataPage. See the referenced schema in the Schemas section. |
DocUnsV2MetadataInsertOneResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2MetadataPurgeOutcome
| Field | Type | Required | Description |
|---|
jobId | string | No | Not specified in OpenAPI |
replayed | boolean | Yes | Not specified in OpenAPI |
results | array<object> | No | Not specified in OpenAPI |
status | string | Yes | Execution state of this operation. |
summary | object | No | OutcomeSummary. See the referenced schema in the Schemas section. |
DocUnsV2MetadataPurgeResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | DocUnsV2MetadataPurgeOutcome. See the referenced schema in the Schemas section. |
DocUnsV2MetadataPurgeResult
| Field | Type | Required | Description |
|---|
opId | string | Yes | Input identifier for correlating the original request. |
action | string | Yes | Not specified in OpenAPI |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
status | string | Yes | Execution state of this input item. |
kind | string | No | Not specified in OpenAPI |
revision | integer | No | Not specified in OpenAPI |
error | object | No | DocItemFault. See the referenced schema in the Schemas section. |
DocUnsV2MetadataReplaceOneResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2MetadataRestoreResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2MetadataTransactResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2MetadataUpdateManyResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2MetadataUpdateOneResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2NamespaceResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordAggregatePipelineResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | CloudRecordAggregatePage. See the referenced schema in the Schemas section. |
DocUnsV2RecordBulkWritePartialError
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | No | With error.execution=committed, data contains cumulative partial results. Indices below nextIndex absent from writeErrors committed; [nextIndex, unknownUntil) is uncertain. Retry with the same key if present. Without a key, only client-ID inserts and ID-based replacements/deletes can be reconciled by reading IDs; server-ID inserts, filter-selected operations and incremental updates such as $inc cannot be safely continued. Always use keys for these writes. Without unknownUntil, continuation from nextIndex is safe. null when nothing committed. |
error | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordBulkWriteResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordCountResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | CloudCappedCount. See the referenced schema in the Schemas section. |
DocUnsV2RecordDeleteManyPartialError
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | No | With error.execution=committed, contains cumulative results and resumable hasMore/resumeAfter; null when nothing committed. |
error | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordDeleteManyResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordDeleteOneResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordExplainResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordFindResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | CloudRecordPage. See the referenced schema in the Schemas section. |
DocUnsV2RecordGetResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | CloudRecordGetResult. See the referenced schema in the Schemas section. |
DocUnsV2RecordInsertOneResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordLockResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordQueryBatchResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordRenewResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordReplaceOneResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordRestoreResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordTransactionExecuteOutcome
| Field | Type | Required | Description |
|---|
jobId | string | No | Not specified in OpenAPI |
replayed | boolean | Yes | Not specified in OpenAPI |
results | array<object> | No | Not specified in OpenAPI |
status | string | Yes | Execution state of this operation. |
summary | object | No | OutcomeSummary. See the referenced schema in the Schemas section. |
DocUnsV2RecordTransactionExecuteResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | dryRun=false returns transaction results; dryRun=true returns a rolled-back preflight plan. |
DocUnsV2RecordTransactionExecuteResult
| Field | Type | Required | Description |
|---|
opId | string | Yes | Input identifier for correlating the original request. |
action | string | Yes | Not specified in OpenAPI |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
status | string | Yes | Execution state of this input item. |
collectionId | string | No | Collection ID identifying the owner of business records and samples. |
revision | integer | No | Not specified in OpenAPI |
sourceId | string | No | Not specified in OpenAPI |
data | object | No | Business payload for transaction result bindings; use document for the full resource object. |
document | object | No | RecordDocument. See the referenced schema in the Schemas section. |
query | object | No | TransactionQueryResult. See the referenced schema in the Schemas section. |
error | object | No | DocItemFault. See the referenced schema in the Schemas section. |
DocUnsV2RecordUnlockResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordUpdateManyPartialError
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | No | With error.execution=committed, contains cumulative results and resumable hasMore/resumeAfter; null when nothing committed. |
error | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordUpdateManyResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2RecordUpdateOneResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2ReferencesResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SampleAggregateResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | CloudDataPage. See the referenced schema in the Schemas section. |
DocUnsV2SampleAppendOutcome
| Field | Type | Required | Description |
|---|
jobId | string | No | Not specified in OpenAPI |
replayed | boolean | Yes | Not specified in OpenAPI |
results | array<object> | No | Not specified in OpenAPI |
status | string | Yes | Execution state of this operation. |
summary | object | No | OutcomeSummary. See the referenced schema in the Schemas section. |
DocUnsV2SampleAppendResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | DocUnsV2SampleAppendOutcome. See the referenced schema in the Schemas section. |
DocUnsV2SampleAppendResult
| Field | Type | Required | Description |
|---|
opId | string | Yes | Input identifier for correlating the original request. |
action | string | Yes | Not specified in OpenAPI |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
status | string | Yes | Execution state of this input item. |
collectionId | string | No | Collection ID identifying the owner of business records and samples. |
error | object | No | DocItemFault. See the referenced schema in the Schemas section. |
DocUnsV2SampleDeleteRangeResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SampleFindResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | CloudSamplePage. See the referenced schema in the Schemas section. |
DocUnsV2SampleLatestValuesResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceDevicesListResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Fresh target Edge inventory. checkedAt is observation time; revision hashes device and binding state; complete=false includes per-kind discovery errors. devices contain deviceId, kind, label, address, canCreateSource, requiredParameters and existing sources. Serial discovery does not imply serial acquisition support. Empty devices only proves absence when complete=true. Never classify an arbitrary HID keyboard as a scanner without device identity supplied by the user. |
DocUnsV2SourceDiscoverResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceDocumentCreateResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceDocumentDeleteResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceDocumentGetResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceDocumentListResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceDocumentStateUpdateResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Native Edge Source result; inspect the target catalog for its exact versioned response. |
DocUnsV2SourceDocumentUpdateResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceHistoryResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceImpactResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceNativeCredentialsUpdateResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceNativeOAuthCompleteResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceNativeOAuthStartResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceObservationsGetResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceProbeResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceProtocolsListResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceResourceCatalogResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceResourceReadResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Bounded native result. Interpret fields using the selected resource output schema. |
DocUnsV2SourceResourceScanResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceRuntimeGetResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2SourceValidateResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2StreamDocumentCreateResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2StreamDocumentDisableResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2StreamDocumentGetResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2StreamDocumentUpdateResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2StreamDocumentValidateResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2StreamObservationGetResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2StreamProgramDeleteResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2StreamProgramDeployResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2StreamProgramListResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2StreamProgramRollbackResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2StreamProgramVersionsListResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2StreamRequestGrantGetResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | CloudStreamRequestGrantInfo. See the referenced schema in the Schemas section. |
DocUnsV2StreamRequestGrantSetResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | CloudStreamRequestGrantMutation. See the referenced schema in the Schemas section. |
DocUnsV2StreamRunsListResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2StreamSampleTestResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
DocUnsV2TopicsResponse
| Field | Type | Required | Description |
|---|
code | integer | Yes | Not specified in OpenAPI |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
ErrorRetry
Whether an unchanged retry is safe. Retry read failures according to safe. Retry write failures only when safe=true, always reusing the original idempotency key.
| Field | Type | Required | Description |
|---|
safe | boolean | Yes | true permits retrying the same request unchanged, reusing the write's original key. With false, correct the request or restore authorization first. |
afterMs | integer | No | Suggested minimum wait in milliseconds, only when safe=true; HTTP also supplies Retry-After in seconds. |
Fault
Wire-format error object. The envelope error, bulk item errors, queryBatch item errors and job errors share this structure.
| Field | Type | Required | Description |
|---|
code | string | Yes | Machine-readable error code, such as OVERLOADED or VERSION_CONFLICT. |
reason | string | Yes | Developer-facing error reason. |
details | array<object> | Yes | Structured location information; an empty array when absent. |
execution | string | Yes | notStarted: rejected before the write path; rolledBack: executed then fully rolled back; committed: committed; unknown: commit status cannot be established. unknown occurs only on writes, never reads. notStarted/rolledBack establish no committed side effects. For non-atomic partialCommit operations, any committed chunk/item means committed, possibly partially. retry.safe=false and error-envelope data contains cumulative results. |
retry | object | Yes | ErrorRetry. See the referenced schema in the Schemas section. |
repair | string | No | Suggested correction, such as narrowing query scope. |
opId | string | No | Identifier of the failed input in a transaction or bulk write. |
queryId | string | No | Identifier of the failed query in a query batch. |
path | string | No | Location of the invalid input, when available. |
objectKind | string | No | Not specified in OpenAPI |
objectId | string | No | Not specified in OpenAPI |
candidates | array<object> | No | Not specified in OpenAPI |
conditionIndex | integer | No | Not specified in OpenAPI |
FieldBinding
| Field | Type | Required | Description |
|---|
collectionId | object | Yes | UnsV2Identity. See the referenced schema in the Schemas section. |
displayName | string | No | Not specified in OpenAPI |
fieldPath | string | Yes | Not specified in OpenAPI |
kind | string | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
recordId | object | Yes | UnsV2Identity. See the referenced schema in the Schemas section. |
FieldSemantics
| Field | Type | Required | Description |
|---|
aggregationNote | string | Yes | Not specified in OpenAPI |
kind | string | Yes | Not specified in OpenAPI |
path | string | Yes | Not specified in OpenAPI |
FileDirectory
| Field | Type | Required | Description |
|---|
extensions | array<string> | Yes | Not specified in OpenAPI |
format | string | Yes | Not specified in OpenAPI |
id | string | Yes | User-declared logical resource selection name within this Source, not a database Source ID or asset file ID. Reuse the same selection name for stable resource identity. |
path | string | Yes | Not specified in OpenAPI |
FileSelection
| Field | Type | Required | Description |
|---|
id | string | Yes | User-declared logical resource selection name within this Source, not a database Source ID or asset file ID. Reuse the same selection name for stable resource identity. |
path | string | Yes | Not specified in OpenAPI |
tables | array<string> | No | Omit for a byte resource, or select QC2000 tables from a SQLite snapshot. |
FileSourceOptions
| Field | Type | Required | Description |
|---|
caCertificate | string | No | Not specified in OpenAPI |
directories | array<object> | No | Not specified in OpenAPI |
resources | array<object> | No | Not specified in OpenAPI |
sshHostKey | string | No | Not specified in OpenAPI |
HTTPConnection
| Field | Type | Required | Description |
|---|
anonymous | boolean | No | Not specified in OpenAPI |
authentication | string | No | Not specified in OpenAPI |
caCertificate | string | No | Not specified in OpenAPI |
headers | object | No | Not specified in OpenAPI |
oauth | object | No | OAuthConfig. See the referenced schema in the Schemas section. |
parameters | object | No | Not specified in OpenAPI |
port | integer | No | Not specified in OpenAPI |
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.
| Field | Type | Required | Description |
|---|
kind | string | No | Not specified in OpenAPI |
path | string | No | Bare business field path; _id and _meta.* cannot be declared as business indexes. |
paths | array<string> | No | Not specified in OpenAPI |
target | string | No | Not specified in OpenAPI |
unique | boolean | No | Not specified in OpenAPI |
expireAfterSeconds | integer | No | TTL index: records are physically deleted after this field's timestamp plus the specified seconds; deletion is irreversible. Only a single path, btree, records, non-unique index is allowed; the field must be declared integer in recordSchema and contain Unix milliseconds. At most one per collection. ensure can only add or increase TTL; shortening/removal requires schema:replace. Unsupported for source-written collections. |
IndexState
| Field | Type | Required | Description |
|---|
error | string | No | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
spec | object | Yes | IndexSpec. See the referenced schema in the Schemas section. |
state | string | Yes | Not specified in OpenAPI |
MetadataBulkDeleteOne
| Field | Type | Required | Description |
|---|
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
expectedRevision | integer | No | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
MetadataBulkInsertOne
| Field | Type | Required | Description |
|---|
id | string | No | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
MetadataBulkReplaceOne
| Field | Type | Required | Description |
|---|
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
expectedRevision | integer | No | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
replacement | object | Yes | Not specified in OpenAPI |
upsert | boolean | No | Supported only for single updates/replacements; filter must explicitly match _id and inserted configuration must be complete and valid. Deleted objects with the same ID are not restored automatically. |
MetadataBulkRestoreOne
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | No | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
MetadataBulkResult
| Field | Type | Required | Description |
|---|
index | integer | Yes | Not specified in OpenAPI |
insertedId | string | No | Not specified in OpenAPI |
matchedCount | integer | No | Not specified in OpenAPI |
modifiedCount | integer | No | Not specified in OpenAPI |
deletedCount | integer | No | Not specified in OpenAPI |
restoredCount | integer | No | Not specified in OpenAPI |
upsertedId | string | No | Not specified in OpenAPI |
value | object | No | MetadataNullableDocument. See the referenced schema in the Schemas section. |
error | object | No | Fault. See the referenced schema in the Schemas section. |
MetadataBulkUpdateOne
| Field | Type | Required | Description |
|---|
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
expectedRevision | integer | No | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
update | object | Yes | Supports only $set/$unset/$setOnInsert. Configuration paths omit data.; system fields are read-only. Replace arrays as whole fields. |
upsert | boolean | No | Supported only for single updates/replacements; filter must explicitly match _id and inserted configuration must be complete and valid. Deleted objects with the same ID are not restored automatically. |
MetadataCollectionInput
Writable configuration; schemaVersion defaults to 1 on the server and unknown fields are rejected.
| Field | Type | Required | Description |
|---|
description | string | No | Not specified in OpenAPI |
indexes | array<object> | No | Unified index declaration, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omission preserves indexes; [] removes them. Paths omit data.; unique indexes are record B-trees only. Builds are asynchronous; check readiness through indexStatus. |
name | string | Yes | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. |
recordSchema | object | Yes | Schema. See the referenced schema in the Schemas section. |
sampleSchema | object | No | Schema. See the referenced schema in the Schemas section. |
schemaVersion | integer | No | Not specified in OpenAPI |
semantics | object | No | CollectionSemantics. See the referenced schema in the Schemas section. |
parentId | object | No | Containing directory ID. Omitted on create or null means root; omitted on update preserves placement. Moving does not change collection identity or data. |
MetadataDirectoryInput
Writable configuration; schemaVersion defaults to 1 on the server and unknown fields are rejected.
| Field | Type | Required | Description |
|---|
description | string | No | Not specified in OpenAPI |
name | string | Yes | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. |
parentId | object | No | Not specified in OpenAPI |
schemaVersion | integer | No | Not specified in OpenAPI |
MetadataDocument
| Field | Type | Required | Description |
|---|
kind | string | Yes | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
id | string | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
createdAt | integer | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
deletedAt | integer | Yes | Not specified in OpenAPI |
data | object | Yes | Metadata response configuration; projection may return only selected fields. ownerAppId / appAlias describe server-managed Collection ownership and cannot be assigned or changed by ordinary writes. App grants determine access separately. |
MetadataNullableDocument
| Field | Type | Required | Description |
|---|
kind | string | No | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
id | string | No | Not specified in OpenAPI |
revision | integer | No | Not specified in OpenAPI |
createdAt | integer | No | Not specified in OpenAPI |
updatedAt | integer | No | Not specified in OpenAPI |
deletedAt | integer | No | Not specified in OpenAPI |
data | object | No | Metadata response configuration; projection may return only selected fields. ownerAppId / appAlias describe server-managed Collection ownership and cannot be assigned or changed by ordinary writes. App grants determine access separately. |
MetadataPage
| Field | Type | Required | Description |
|---|
items | array<object> | Yes | Not specified in OpenAPI |
pageInfo | object | Yes | CloudPageInfo. See the referenced schema in the Schemas section. |
MetadataTopicInput
Writable configuration; schemaVersion defaults to 1 on the server and unknown fields are rejected.
| Field | Type | Required | Description |
|---|
collectionId | object | No | UnsV2Identity. See the referenced schema in the Schemas section. |
description | string | No | Not specified in OpenAPI |
fields | array<object> | No | Not specified in OpenAPI |
name | string | Yes | The user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. |
parentId | object | No | Not specified in OpenAPI |
schemaVersion | integer | No | Not specified in OpenAPI |
viewMode | string | Yes | Not specified in OpenAPI |
MetadataTransactionOperation
| Field | Type | Required | Description |
|---|
opId | string | Yes | Not specified in OpenAPI |
action | string | Yes | Not specified in OpenAPI |
kind | string | Yes | Only directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation. |
id | string | No | Not specified in OpenAPI |
filter | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
data | object | No | Not specified in OpenAPI |
update | object | No | Supports only $set/$unset/$setOnInsert. Configuration paths omit data.; system fields are read-only. Replace arrays as whole fields. |
replacement | object | No | Not specified in OpenAPI |
expectedRevision | integer | No | Optional optimistic lock; management forms should send the revision read. Read again after a conflict. |
dependsOn | array<string> | No | Not specified in OpenAPI |
MetadataTransactionResult
| Field | Type | Required | Description |
|---|
opId | string | Yes | Not specified in OpenAPI |
insertedId | string | No | Not specified in OpenAPI |
matchedCount | integer | No | Not specified in OpenAPI |
modifiedCount | integer | No | Not specified in OpenAPI |
deletedCount | integer | No | Not specified in OpenAPI |
restoredCount | integer | No | Not specified in OpenAPI |
upsertedId | string | No | Not specified in OpenAPI |
value | object | No | MetadataNullableDocument. See the referenced schema in the Schemas section. |
ModbusOptions
| Field | Type | Required | Description |
|---|
pollIntervalMs | integer | No | Not specified in OpenAPI |
ranges | array<object> | No | Not specified in OpenAPI |
unitId | integer | Yes | Not specified in OpenAPI |
ModbusRange
| Field | Type | Required | Description |
|---|
address | integer | Yes | Not specified in OpenAPI |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
quantity | integer | Yes | Not specified in OpenAPI |
table | string | Yes | Not specified in OpenAPI |
unitId | integer | No | Not specified in OpenAPI |
writable | boolean | No | Not specified in OpenAPI |
MQTTOptions
| Field | Type | Required | Description |
|---|
caCertificate | string | No | Not specified in OpenAPI |
clientId | string | No | Not specified in OpenAPI |
correlationField | string | No | Not specified in OpenAPI |
packetEnvelope | boolean | No | Not specified in OpenAPI |
qos | integer | No | Not specified in OpenAPI |
replyTopic | string | No | Not specified in OpenAPI |
replyTopicField | string | No | Not specified in OpenAPI |
requestTopic | string | No | Not specified in OpenAPI |
serverSubscribeTopics | array<string> | No | Not specified in OpenAPI |
subscriptions | object | No | Not specified in OpenAPI |
topicFilters | array<string> | No | Not specified in OpenAPI |
devicePublishTopics | array<string> | No | Managed server logical topic filters; availability and the combined topic budget are defined by the target protocol catalog. |
deviceSubscribeTopics | array<string> | No | Managed server logical topic filters; availability and the combined topic budget are defined by the target protocol catalog. |
OAuthConfig
| Field | Type | Required | Description |
|---|
authorizationUrl | string | No | Not specified in OpenAPI |
clientAuthentication | string | Yes | Not specified in OpenAPI |
clientId | string | Yes | Not specified in OpenAPI |
grantType | string | No | Not specified in OpenAPI |
scopes | string | No | Not specified in OpenAPI |
tokenUrl | string | Yes | Not specified in OpenAPI |
OPCUAOptions
| Field | Type | Required | Description |
|---|
nodeIds | array<string> | No | Not specified in OpenAPI |
samplingIntervalMs | integer | No | Not specified in OpenAPI |
securityMode | string | Yes | Not specified in OpenAPI |
securityPolicy | string | Yes | Not specified in OpenAPI |
serverCertificate | string | No | Not specified in OpenAPI |
serverNodes | array<object> | No | Not specified in OpenAPI |
OPCUAServerNode
| Field | Type | Required | Description |
|---|
dataType | string | Yes | Not specified in OpenAPI |
direction | string | Yes | Not specified in OpenAPI |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
name | string | Yes | Not specified in OpenAPI |
nodeClass | string | Yes | Not specified in OpenAPI |
OpenProtocolOptions
| Field | Type | Required | Description |
|---|
bufferLimit | integer | No | Not specified in OpenAPI |
cellId | integer | Yes | Not specified in OpenAPI |
channelId | integer | Yes | Not specified in OpenAPI |
controllerName | string | Yes | Not specified in OpenAPI |
historyEndId | integer | No | Not specified in OpenAPI |
historyStartId | integer | No | Not specified in OpenAPI |
OutcomeSummary
| Field | Type | Required | Description |
|---|
failed | integer | Yes | Not specified in OpenAPI |
notExecuted | integer | Yes | Not specified in OpenAPI |
succeeded | integer | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
unknown | integer | Yes | Not specified in OpenAPI |
PlatformAgentAnalysisDispatchReq
| Field | Type | Required | Description |
|---|
canvasId | string | No | Not specified in OpenAPI |
cardId | string | No | Not specified in OpenAPI |
kind | string | Yes | Not specified in OpenAPI |
operationId | string | Yes | Not specified in OpenAPI |
resultId | string | No | Not specified in OpenAPI |
task | object | Yes | Not specified in OpenAPI |
PlatformAgentAnalysisDispatchResp
| Field | Type | Required | Description |
|---|
dispatchState | string | Yes | Not specified in OpenAPI |
errorCode | string | Yes | Not specified in OpenAPI |
errorMessage | string | Yes | Not specified in OpenAPI |
runId | string | Yes | Not specified in OpenAPI |
PlatformAgentAnalysisGetReq
| Field | Type | Required | Description |
|---|
runId | string | Yes | Not specified in OpenAPI |
PlatformAgentAnalysisGetResp
| Field | Type | Required | Description |
|---|
run | object | Yes | PlatformAgentJobRunRecord. See the referenced schema in the Schemas section. |
PlatformAgentCanvasListReq
| Field | Type | Required | Description |
|---|
page | integer | Yes | Not specified in OpenAPI |
sessionId | string | No | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
PlatformAgentCanvasListResp
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
PlatformAgentCanvasRecord
| Field | Type | Required | Description |
|---|
canvasId | string | Yes | Not specified in OpenAPI |
createdAt | integer | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
sessionId | string | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
PlatformAgentCardDeleteReq
| Field | Type | Required | Description |
|---|
canvasId | string | Yes | Not specified in OpenAPI |
cardId | string | Yes | Not specified in OpenAPI |
expectedCardSpec | object | Yes | Not specified in OpenAPI |
PlatformAgentCardDeleteResp
| Field | Type | Required | Description |
|---|
cardId | string | Yes | Not specified in OpenAPI |
PlatformAgentCardGetReq
| Field | Type | Required | Description |
|---|
canvasId | string | Yes | Not specified in OpenAPI |
cardId | string | Yes | Not specified in OpenAPI |
PlatformAgentCardGetResp
| Field | Type | Required | Description |
|---|
canvasId | string | Yes | Not specified in OpenAPI |
cardId | string | Yes | Not specified in OpenAPI |
cardKey | string | Yes | Not specified in OpenAPI |
cardSpec | object | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
PlatformAgentCardListReq
| Field | Type | Required | Description |
|---|
canvasId | string | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
PlatformAgentCardListResp
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
PlatformAgentCardUpdateReq
| Field | Type | Required | Description |
|---|
canvasId | string | No | Not specified in OpenAPI |
cardId | string | Yes | Not specified in OpenAPI |
cardSpec | object | Yes | Not specified in OpenAPI |
expectedCardSpec | object | Yes | The full previously read card. Changes produce HTTP 409. |
ord | integer | No | Canvas order: omit to leave unchanged (forwarded to unssvr as -1). Explicit values, including 0, are preserved. |
position | object | No | Not specified in OpenAPI |
PlatformAgentCardUpdateResp
| Field | Type | Required | Description |
|---|
cardId | string | Yes | Not specified in OpenAPI |
PlatformAgentJobCreateReq
| Field | Type | Required | Description |
|---|
cardId | string | No | Not specified in OpenAPI |
cronExpr | string | No | Not specified in OpenAPI |
expiresAt | integer | No | Not specified in OpenAPI |
intervalSeconds | integer | No | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
notify | object | No | Not specified in OpenAPI |
scheduleKind | string | Yes | Not specified in OpenAPI |
sessionId | string | Yes | Not specified in OpenAPI |
sourceBlockId | string | No | Not specified in OpenAPI |
sourceId | string | No | Not specified in OpenAPI |
sourceName | string | No | Not specified in OpenAPI |
sourceType | string | Yes | Not specified in OpenAPI |
task | object | Yes | Not specified in OpenAPI |
type | string | No | Not specified in OpenAPI |
PlatformAgentJobGetResp
| Field | Type | Required | Description |
|---|
job | object | Yes | PlatformAgentJobRecord. See the referenced schema in the Schemas section. |
PlatformAgentJobIDReq
| Field | Type | Required | Description |
|---|
jobId | string | Yes | Not specified in OpenAPI |
PlatformAgentJobListReq
| Field | Type | Required | Description |
|---|
cardId | string | No | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
search | string | No | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
sourceId | string | No | Not specified in OpenAPI |
sourceType | string | No | Not specified in OpenAPI |
status | string | No | active / paused / needs_attention / expired |
type | string | No | Not specified in OpenAPI |
PlatformAgentJobListResp
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
PlatformAgentJobMutationResp
| Field | Type | Required | Description |
|---|
jobId | string | Yes | Not specified in OpenAPI |
PlatformAgentJobRecord
| Field | Type | Required | Description |
|---|
attentionReason | string | Yes | Not specified in OpenAPI |
cardId | string | Yes | Not specified in OpenAPI |
createdAt | integer | Yes | Not specified in OpenAPI |
cronExpr | string | Yes | Not specified in OpenAPI |
expiresAt | integer | Yes | Not specified in OpenAPI |
intervalSeconds | integer | Yes | Not specified in OpenAPI |
jobId | string | Yes | Not specified in OpenAPI |
lastFiredAt | integer | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
nextRunAt | integer | Yes | Not specified in OpenAPI |
notify | object | No | Not specified in OpenAPI |
orphanedAt | integer | Yes | Not specified in OpenAPI |
scheduleKind | string | Yes | Not specified in OpenAPI |
sessionId | string | Yes | Not specified in OpenAPI |
sourceBlockId | string | Yes | Not specified in OpenAPI |
sourceId | string | Yes | Not specified in OpenAPI |
sourceName | string | Yes | Not specified in OpenAPI |
sourceType | string | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
task | object | Yes | Not specified in OpenAPI |
type | string | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
PlatformAgentJobRunGetReq
| Field | Type | Required | Description |
|---|
jobId | string | Yes | Not specified in OpenAPI |
jobRunId | string | Yes | Not specified in OpenAPI |
PlatformAgentJobRunGetResp
| Field | Type | Required | Description |
|---|
run | object | Yes | PlatformAgentJobRunRecord. See the referenced schema in the Schemas section. |
PlatformAgentJobRunListReq
| Field | Type | Required | Description |
|---|
jobId | string | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
status | string | No | Not specified in OpenAPI |
PlatformAgentJobRunListResp
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
PlatformAgentJobRunRecord
| Field | Type | Required | Description |
|---|
dispatchState | string | Yes | Not specified in OpenAPI |
errorCode | string | No | Not specified in OpenAPI |
errorMessage | string | No | Not specified in OpenAPI |
finishedAt | integer | No | Not specified in OpenAPI |
firedAt | integer | Yes | Not specified in OpenAPI |
jobId | string | Yes | Not specified in OpenAPI |
jobRunId | string | Yes | Not specified in OpenAPI |
resultId | string | No | Not specified in OpenAPI |
resultSummary | object | No | Not specified in OpenAPI |
severity | string | No | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
trigger | string | No | Not specified in OpenAPI |
PlatformAgentJobTriggerResp
| Field | Type | Required | Description |
|---|
dispatchState | string | Yes | Not specified in OpenAPI |
jobId | string | Yes | Not specified in OpenAPI |
jobRunId | string | Yes | Not specified in OpenAPI |
PlatformAgentJobUpdateReq
| Field | Type | Required | Description |
|---|
cardId | string | No | Not specified in OpenAPI |
cronExpr | string | No | Not specified in OpenAPI |
expiresAt | integer | No | Not specified in OpenAPI |
intervalSeconds | integer | No | Not specified in OpenAPI |
jobId | string | Yes | Not specified in OpenAPI |
name | string | No | Not specified in OpenAPI |
notify | object | No | Not specified in OpenAPI |
notifyEnabled | integer | No | Omit to preserve notification settings. 1 requires notify; 2 disables notifications and must omit notify. |
scheduleKind | string | No | Not specified in OpenAPI |
sessionId | string | No | Not specified in OpenAPI |
sourceBlockId | string | No | Not specified in OpenAPI |
sourceId | string | No | Not specified in OpenAPI |
sourceName | string | No | Not specified in OpenAPI |
sourceType | string | No | Not specified in OpenAPI |
task | object | No | Not specified in OpenAPI |
type | string | No | Not specified in OpenAPI |
PlatformAgentLibraryCreateReq
| Field | Type | Required | Description |
|---|
cardKey | string | Yes | Not specified in OpenAPI |
cardSpec | object | Yes | Not specified in OpenAPI |
sourceSessionId | string | No | Not specified in OpenAPI |
tags | array<string> | No | Not specified in OpenAPI |
PlatformAgentLibraryGetReq
| Field | Type | Required | Description |
|---|
libraryItemId | string | Yes | Not specified in OpenAPI |
PlatformAgentLibraryGetResp
| Field | Type | Required | Description |
|---|
item | object | Yes | PlatformAgentLibraryItem. See the referenced schema in the Schemas section. |
PlatformAgentLibraryItem
| Field | Type | Required | Description |
|---|
cardKey | string | Yes | Not specified in OpenAPI |
cardSpec | object | Yes | Not specified in OpenAPI |
createdAt | integer | Yes | Not specified in OpenAPI |
libraryItemId | string | Yes | Not specified in OpenAPI |
sourceSessionId | string | Yes | Not specified in OpenAPI |
tags | array<string> | Yes | Not specified in OpenAPI |
updatedAt | integer | Yes | Not specified in OpenAPI |
PlatformAgentLibraryListReq
| Field | Type | Required | Description |
|---|
page | integer | Yes | Not specified in OpenAPI |
search | string | No | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
tags | array<string> | No | Not specified in OpenAPI |
PlatformAgentLibraryListResp
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
PlatformAgentLibraryMutationResp
| Field | Type | Required | Description |
|---|
libraryItemId | string | Yes | Not specified in OpenAPI |
PlatformAgentLibrarySnapshot
| Field | Type | Required | Description |
|---|
cardKey | string | Yes | Not specified in OpenAPI |
cardSpec | object | Yes | Not specified in OpenAPI |
sourceSessionId | string | Yes | Not specified in OpenAPI |
tags | array<string> | Yes | Not specified in OpenAPI |
PlatformAgentLibraryUpdateReq
| Field | Type | Required | Description |
|---|
cardSpec | object | Yes | Not specified in OpenAPI |
expectedItem | object | Yes | PlatformAgentLibrarySnapshot. See the referenced schema in the Schemas section. |
libraryItemId | string | Yes | Not specified in OpenAPI |
sourceSessionId | string | No | Not specified in OpenAPI |
tags | array<string> | No | Not specified in OpenAPI |
PlatformAgentResultCreateReq
| Field | Type | Required | Description |
|---|
cardSpec | object | No | Not specified in OpenAPI |
dataScope | object | No | Not specified in OpenAPI |
images | array | No | Not specified in OpenAPI |
missingData | object | Yes | Not specified in OpenAPI |
operationId | string | Yes | Not specified in OpenAPI |
resultSchemaVersion | integer | Yes | Not specified in OpenAPI |
source | object | Yes | PlatformAgentResultSource. See the referenced schema in the Schemas section. |
steps | array | No | Not specified in OpenAPI |
summary | string | No | Not specified in OpenAPI |
tables | array | No | Not specified in OpenAPI |
title | string | Yes | Not specified in OpenAPI |
warnings | array<string> | No | Not specified in OpenAPI |
PlatformAgentResultCreateResp
| Field | Type | Required | Description |
|---|
jobRunId | string | Yes | Not specified in OpenAPI |
resultId | string | Yes | Not specified in OpenAPI |
PlatformAgentResultGetReq
| Field | Type | Required | Description |
|---|
operationId | string | No | Provide this or resultId, but not both. After a save timeout, retrieve by the original ID instead of saving again. |
resultId | string | No | Not specified in OpenAPI |
PlatformAgentResultGetResp
| Field | Type | Required | Description |
|---|
result | object | Yes | PlatformAgentStoredResult. See the referenced schema in the Schemas section. |
PlatformAgentResultListReq
| Field | Type | Required | Description |
|---|
page | integer | Yes | Not specified in OpenAPI |
platformSessionId | string | No | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
PlatformAgentResultListResp
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
PlatformAgentResultPinReq
| Field | Type | Required | Description |
|---|
canvasId | string | Yes | Not specified in OpenAPI |
position | object | No | Not specified in OpenAPI |
resultId | string | Yes | Not specified in OpenAPI |
PlatformAgentResultPinResp
| Field | Type | Required | Description |
|---|
cardId | string | Yes | Not specified in OpenAPI |
PlatformAgentResultSource
| Field | Type | Required | Description |
|---|
agentId | string | Yes | Not specified in OpenAPI |
platformRunId | string | No | Not specified in OpenAPI |
platformSessionId | string | Yes | Not specified in OpenAPI |
platformUserId | string | No | Not specified in OpenAPI |
skillVersion | string | No | Not specified in OpenAPI |
PlatformAgentStoredResult
| Field | Type | Required | Description |
|---|
agentId | string | Yes | Not specified in OpenAPI |
byteSize | integer | Yes | Not specified in OpenAPI |
cardSpec | object | No | Not specified in OpenAPI |
createdAt | integer | Yes | Not specified in OpenAPI |
manifest | object | Yes | Not specified in OpenAPI |
operationId | string | Yes | Not specified in OpenAPI |
platformRunId | string | Yes | Not specified in OpenAPI |
platformSessionId | string | Yes | Not specified in OpenAPI |
resultId | string | Yes | Not specified in OpenAPI |
skillVersion | string | Yes | Not specified in OpenAPI |
sourceKind | string | Yes | Not specified in OpenAPI |
PlatformAppAccessMemberResp
| Field | Type | Required | Description |
|---|
email | string | No | Not specified in OpenAPI |
grantedAt | integer | Yes | Milliseconds |
roles | array<object> | Yes | Not specified in OpenAPI |
userId | string | Yes | Not specified in OpenAPI |
userName | string | No | Not specified in OpenAPI |
PlatformAppAccessMemberRoleResp
| Field | Type | Required | Description |
|---|
roleId | string | Yes | Not specified in OpenAPI |
roleKey | string | Yes | Not specified in OpenAPI |
roleName | string | Yes | Not specified in OpenAPI |
sources | array<object> | Yes | Not specified in OpenAPI |
PlatformAppAccessMembersListReq
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
grantedAtEnd | integer | No | Milliseconds; inclusive bounds with second precision. |
grantedAtStart | integer | No | Milliseconds; inclusive bounds with second precision. |
page | integer | No | Not specified in OpenAPI |
roleKeys | array<string> | No | Match any value, case insensitive. |
scope | string | No | draft: computed from draft roles; production or omitted: computed from the production version. |
size | integer | No | Not specified in OpenAPI |
PlatformAppAccessMembersListResp
| Field | Type | Required | Description |
|---|
allActiveMembers | integer | Yes | 1: all active members have access; 2: access is granted by role. |
appId | string | Yes | Not specified in OpenAPI |
list | array<object> | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
productionVersionId | string | No | Not specified in OpenAPI |
published | integer | Yes | 1: published; 2: unpublished. |
roles | array<object> | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
PlatformAppAccessRoleResp
| Field | Type | Required | Description |
|---|
description | string | No | Not specified in OpenAPI |
memberCount | integer | Yes | Not specified in OpenAPI |
roleId | string | Yes | Not specified in OpenAPI |
roleKey | string | Yes | Not specified in OpenAPI |
roleName | string | Yes | Not specified in OpenAPI |
status | string | Yes | active / retired |
PlatformAppAccessRoleSourceResp
| Field | Type | Required | Description |
|---|
groupId | string | No | Not specified in OpenAPI |
groupName | string | No | Not specified in OpenAPI |
type | string | Yes | direct / group |
PlatformAssetFileDeleteReq
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Not specified in OpenAPI |
PlatformAssetFileDeleteResp
| Field | Type | Required | Description |
|---|
deleted | boolean | Yes | Not specified in OpenAPI |
PlatformAssetFileMultipartAbortReq
| Field | Type | Required | Description |
|---|
fileKey | string | Yes | Not specified in OpenAPI |
uploadId | string | Yes | Not specified in OpenAPI |
PlatformAssetFileMultipartAbortResp
| Field | Type | Required | Description |
|---|
aborted | integer | Yes | Not specified in OpenAPI |
PlatformAssetFileMultipartCompleteReq
| Field | Type | Required | Description |
|---|
fileKey | string | Yes | Not specified in OpenAPI |
parts | array<object> | Yes | Not specified in OpenAPI |
uploadId | string | Yes | Not specified in OpenAPI |
PlatformAssetFileMultipartCompleteResp
| Field | Type | Required | Description |
|---|
expiresAt | integer | No | Not specified in OpenAPI |
filePath | string | Yes | Not specified in OpenAPI |
fileUrl | string | No | Not specified in OpenAPI |
sizeBytes | integer | Yes | Not specified in OpenAPI |
PlatformAssetFileMultipartInitReq
| Field | Type | Required | Description |
|---|
appInstanceId | string | No | Not specified in OpenAPI |
bizId | string | No | Not specified in OpenAPI |
business | string | No | Not specified in OpenAPI |
contentType | string | No | Not specified in OpenAPI |
fileName | string | Yes | Not specified in OpenAPI |
partSize | integer | No | Not specified in OpenAPI |
sessionId | string | No | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
useBy | string | No | Not specified in OpenAPI |
visibility | string | No | Not specified in OpenAPI |
PlatformAssetFileMultipartInitResp
| Field | Type | Required | Description |
|---|
expiresAt | integer | Yes | Not specified in OpenAPI |
fileKey | string | Yes | Not specified in OpenAPI |
filePath | string | Yes | Not specified in OpenAPI |
partCount | integer | Yes | Not specified in OpenAPI |
partSize | integer | Yes | Not specified in OpenAPI |
uploadId | string | Yes | Not specified in OpenAPI |
PlatformAssetFileMultipartPart
| Field | Type | Required | Description |
|---|
etag | string | Yes | Not specified in OpenAPI |
partNumber | integer | Yes | Not specified in OpenAPI |
PlatformAssetFileMultipartPartUrl
| Field | Type | Required | Description |
|---|
expiresAt | integer | Yes | Not specified in OpenAPI |
partNumber | integer | Yes | Not specified in OpenAPI |
url | string | Yes | Not specified in OpenAPI |
PlatformAssetFileMultipartPartUrlsReq
| Field | Type | Required | Description |
|---|
fileKey | string | Yes | Not specified in OpenAPI |
partNumbers | array<integer> | Yes | Not specified in OpenAPI |
uploadId | string | Yes | Not specified in OpenAPI |
PlatformAssetFileMultipartPartUrlsResp
| Field | Type | Required | Description |
|---|
partUrls | array<object> | Yes | Not specified in OpenAPI |
PlatformAssetFileUploadReq
| Field | Type | Required | Description |
|---|
appInstanceId | string | No | Not specified in OpenAPI |
business | string | No | Not specified in OpenAPI |
contentType | string | No | Not specified in OpenAPI |
fileName | string | Yes | Not specified in OpenAPI |
sessionId | string | No | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
useBy | string | No | Not specified in OpenAPI |
visibility | string | No | Not specified in OpenAPI |
PlatformAssetFileUploadResp
| Field | Type | Required | Description |
|---|
expiresAt | integer | No | Not specified in OpenAPI |
fileId | integer | No | Not specified in OpenAPI |
filePath | string | Yes | Not specified in OpenAPI |
fileUrl | string | No | Not specified in OpenAPI |
postFields | object | Yes | Send all signed fields before the file field. The policy constrains the object key and size. |
postUrl | string | Yes | Signed POST URL for multipart/form-data upload. |
PlatformAssetFileUrlResp
| Field | Type | Required | Description |
|---|
expiresAt | integer | No | Not specified in OpenAPI |
fileUrl | string | Yes | Not specified in OpenAPI |
PlatformAssetUploadReq
| Field | Type | Required | Description |
|---|
business | string | No | Not specified in OpenAPI |
contentType | string | No | Not specified in OpenAPI |
fileName | string | Yes | Not specified in OpenAPI |
isPublic | boolean | No | Not specified in OpenAPI |
sha256 | string | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
sizeBytes | integer | Yes | Not specified in OpenAPI |
storageKey | string | No | Not specified in OpenAPI |
useBy | string | No | Not specified in OpenAPI |
PlatformAssetUploadResp
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Not specified in OpenAPI |
fileUrl | string | No | Not specified in OpenAPI |
postFields | object | Yes | Send all signed fields before the file field. The policy constrains the object key and size. |
postUrl | string | Yes | Signed POST URL for multipart/form-data upload. |
PlatformAuthWhoamiResp
| Field | Type | Required | Description |
|---|
apiKeyName | string | Yes | Not specified in OpenAPI |
email | string | Yes | Not specified in OpenAPI |
keyPrefix | string | Yes | Not specified in OpenAPI |
keyType | string | Yes | Not specified in OpenAPI |
permissions | array<string> | Yes | Not specified in OpenAPI |
roles | array<string> | Yes | Not specified in OpenAPI |
userID | integer | Yes | Not specified in OpenAPI |
userName | string | Yes | Not specified in OpenAPI |
workspaceID | integer | Yes | Not specified in OpenAPI |
workspaceName | string | Yes | Not specified in OpenAPI |
PlatformCapabilityDiscoverV2Resp
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.
| Field | Type | Required | Description |
|---|
product | object | Yes | Not specified in OpenAPI |
productVersion | string | No | Not specified in OpenAPI |
contractVersion | object | Yes | Not specified in OpenAPI |
apiContractVersions | array<string> | Yes | Not specified in OpenAPI |
sdkContractVersions | array<string> | Yes | Not specified in OpenAPI |
capabilities | array<object> | Yes | Not specified in OpenAPI |
deprecations | array<object> | Yes | Not specified in OpenAPI |
PlatformCapabilityErrorResp
| Field | Type | Required | Description |
|---|
errorCode | string | Yes | INVALID_CREDENTIAL / CAPABILITY_INVALID_REQUEST / CAPABILITY_FORBIDDEN / CAPABILITY_UNAVAILABLE / CAPABILITY_INTERNAL_ERROR |
message | string | Yes | A fixed public message; internal exceptions are not exposed. |
PlatformGetNotificationReq
| Field | Type | Required | Description |
|---|
messageId | string | Yes | Not specified in OpenAPI |
PlatformGetNotificationResp
| Field | Type | Required | Description |
|---|
channels | array<object> | Yes | Not specified in OpenAPI |
completedAt | string | No | Not specified in OpenAPI |
createdAt | string | Yes | Not specified in OpenAPI |
errorCode | string | No | Not specified in OpenAPI |
message | string | No | Not specified in OpenAPI |
messageId | string | Yes | Not specified in OpenAPI |
recipientName | string | No | Recipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now |
recipientUserId | string | Yes | Recipient user ID of the request (a large integer carried as string), same as the recipientUserId given when sending |
status | string | Yes | Not specified in OpenAPI |
type | string | Yes | Not specified in OpenAPI |
PlatformInfoResp
| Field | Type | Required | Description |
|---|
capabilities | array<string> | Yes | Not specified in OpenAPI |
mqttBroker | string | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
version | string | Yes | API version of the requested HTTP entry point |
PlatformListNotificationsReq
| Field | Type | Required | Description |
|---|
messageId | string | No | Filter by message ID (a large integer carried as string, a positive integer); omitted or empty string means no filter |
page | integer | No | Page number, 1-based; defaults to 1 when omitted, an explicit value must be >= 1 |
recipientUserId | string | No | Filter by recipient user ID (a large integer carried as string, a positive integer); omitted or empty string means no filter |
size | integer | No | Items per page; defaults to 20 when omitted, an explicit value must be between 1 and 100 |
status | string | No | Filter by status: accepted / sent / failed; omitted or empty string means no filter, any other value is rejected with 400 |
PlatformListNotificationsResp
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | Not specified in OpenAPI |
page | integer | Yes | Page number actually used |
size | integer | Yes | Items per page actually used |
total | integer | Yes | Total number of records matching the filters |
PlatformMqttAuthCreateReq
| Field | Type | Required | Description |
|---|
clientIDRandomSuffixEnabled | boolean | No | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
PlatformMqttAuthCreateResp
| Field | Type | Required | Description |
|---|
clientID | string | Yes | Not specified in OpenAPI |
clientIDRandomSuffixEnabled | boolean | Yes | Not specified in OpenAPI |
id | integer | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
password | string | Yes | Not specified in OpenAPI |
username | string | Yes | Not specified in OpenAPI |
PlatformMqttAuthDeleteReq
| Field | Type | Required | Description |
|---|
id | integer | Yes | Not specified in OpenAPI |
PlatformMqttAuthDeleteResp
| Field | Type | Required | Description |
|---|
success | boolean | Yes | Not specified in OpenAPI |
PlatformNotificationChannelResult
| Field | Type | Required | Description |
|---|
channel | string | Yes | Not specified in OpenAPI |
errorCode | string | No | Not specified in OpenAPI |
message | string | No | Not specified in OpenAPI |
platform | string | Yes | Not specified in OpenAPI |
status | string | Yes | One of sent / failed / no_device / not_configured / accepted / pending. accepted applies to inbox only (the in-app message is accepted and still being processed); pending means the channel was requested but its push is still being processed and has no final result yet. |
successCount | integer | Yes | Not specified in OpenAPI |
targetCount | integer | Yes | Not specified in OpenAPI |
PlatformNotificationError
| Field | Type | Required | Description |
|---|
errorCode | string | Yes | Not specified in OpenAPI |
message | string | Yes | Not specified in OpenAPI |
PlatformNotificationListItem
| Field | Type | Required | Description |
|---|
channels | array<string> | Yes | Requested terminal reminder channels, elements are web / mobile; an empty array for a silent message |
completedAt | string | No | Completion time, RFC 3339 UTC; empty while the request is not completed |
createdAt | string | Yes | Creation time, RFC 3339 UTC |
errorCode | string | No | Only filled when status is failed |
keyId | string | Yes | ID of the API key that sent the message (a large integer carried as string); the string 0 for records dispatched from the admin console |
message | string | No | Only filled when status is failed |
messageId | string | Yes | Message ID (a large integer carried as string) |
mode | string | Yes | test / live |
recipientName | string | No | Recipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now |
recipientUserId | string | Yes | Recipient user ID (a large integer carried as string) |
senderId | string | No | Machine identifier of the sender, self-reported, for display only |
senderName | string | No | Display name of the sender, self-reported, for display only |
senderType | string | Yes | app / other / system; self-reported by the sender, for display only |
status | string | Yes | accepted / sent / failed |
title | string | Yes | Notification title; the content is never returned by this endpoint |
PlatformNotificationSender
| Field | Type | Required | Description |
|---|
id | string | No | For app, requires the appId (agent-platform UUID); optional for other and system. Pattern: [0-9a-zA-Z-]{1,128}. |
meta | object | No | Type-specific metadata, at most 500 bytes when serialized. |
name | string | No | Human-readable display name replacing the deprecated source field; at most 100 characters. |
type | string | No | One of app, other or system; defaults to other. system is available only to internal platform senders (such as UNS Agent); app credentials cannot use system, and with sender.type=app the sender.id follows the app bound to the credential. Only type=app sent with an app-bound credential or a platform app credential is shown as an App; type=app self-declared by any other key is downgraded to other, and the API still returns success. Notifications are placed in the workspace System group. For the Agent in Builder (through Tier0 MCP): send a Builder-internal notification with type=app (sender.id is still required and is replaced by the App bound to the session); it appears only in that App's preview bell. Send a system notification with type=system and id=uns-agent; it goes to the regular message center. |
PlatformPlatformGetMembersReq
| Field | Type | Required | Description |
|---|
keyword | string | No | Not specified in OpenAPI |
page | integer | No | Not specified in OpenAPI |
roleKey | string | No | Not specified in OpenAPI |
roles | array<string> | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
statuses | array<string> | No | Not specified in OpenAPI |
updatedAtEnd | string | No | Not specified in OpenAPI |
updatedAtStart | string | No | Not specified in OpenAPI |
PlatformPlatformMemberResp
| Field | Type | Required | Description |
|---|
email | string | No | Not specified in OpenAPI |
nickName | string | No | Not specified in OpenAPI |
roles | array<object> | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
updatedAt | string | Yes | Not specified in OpenAPI |
userId | string | Yes | Not specified in OpenAPI |
userName | string | No | Not specified in OpenAPI |
PlatformPlatformMemberRoleResp
| Field | Type | Required | Description |
|---|
description | string | No | Not specified in OpenAPI |
roleId | string | Yes | Not specified in OpenAPI |
roleKey | string | Yes | Not specified in OpenAPI |
roleName | string | No | Not specified in OpenAPI |
PlatformPlatformMembersResp
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | Not specified in OpenAPI |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
PlatformPublicStreamRequest
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
contractVersion | string | Yes | Not specified in OpenAPI |
description | string | Yes | Not specified in OpenAPI |
idempotency | string | Yes | Not specified in OpenAPI |
inputSchema | object | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
outputSchema | object | Yes | Not specified in OpenAPI |
sideEffect | string | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
timeoutMs | integer | Yes | Not specified in OpenAPI |
PlatformSendNotificationReq
| Field | Type | Required | Description |
|---|
channels | array<string> | No | Not specified in OpenAPI |
content | string | Yes | Plain text only; a request containing HTML tags is rejected with 400. |
idempotencyKey | string | Yes | Not specified in OpenAPI |
link | string | No | Not specified in OpenAPI |
mode | string | No | Deprecated (2026-11-04): test/live is decided by the platform from the API key and sender.type, and the value sent here is ignored (except for existing app credentials that do not distinguish preview from deployment, during the transition). test messages appear only in that App's Building preview bell; they do not enter the message center and are not pushed to devices. |
recipientUserId | string | Yes | Not specified in OpenAPI |
sender | object | No | PlatformNotificationSender. See the referenced schema in the Schemas section. |
source | string | No | Deprecated transitional alias for sender.name. sender.name takes precedence; this field will be removed. |
title | string | Yes | Plain text only; a request containing HTML tags is rejected with 400. |
type | string | Yes | Not specified in OpenAPI |
PlatformSendNotificationResp
| Field | Type | Required | Description |
|---|
createdAt | string | Yes | Not specified in OpenAPI |
messageId | string | Yes | Not specified in OpenAPI |
recipientName | string | No | Recipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now; never affects the send result |
recipientUserId | string | Yes | Recipient user ID of the request (a large integer carried as string); on an idempotent hit it is the recipient of the existing request |
status | string | Yes | Not specified in OpenAPI |
PlatformStreamMessageGrantedTopic
| Field | Type | Required | Description |
|---|
publishSubject | string | Yes | Not specified in OpenAPI |
subscribeSubject | string | Yes | Not specified in OpenAPI |
topic | string | Yes | Not specified in OpenAPI |
PlatformStreamMessagesConnectReq
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
clientPublicKey | string | Yes | Not specified in OpenAPI |
topics | array<object> | Yes | Not specified in OpenAPI |
PlatformStreamMessagesConnectResp
| Field | Type | Required | Description |
|---|
contractVersion | string | Yes | Not specified in OpenAPI |
expiresAt | string | Yes | Not specified in OpenAPI |
maxPayloadBytes | integer | Yes | Not specified in OpenAPI |
permissions | array<object> | Yes | Not specified in OpenAPI |
url | string | Yes | Not specified in OpenAPI |
userJwt | string | Yes | Not specified in OpenAPI |
PlatformStreamMessageTopicPermission
| Field | Type | Required | Description |
|---|
publish | boolean | Yes | Not specified in OpenAPI |
subscribe | boolean | Yes | Not specified in OpenAPI |
topic | string | Yes | Not specified in OpenAPI |
PlatformStreamRequestDiscoverReq
| Field | Type | Required | Description |
|---|
page | integer | No | Defaults to 1. |
search | string | No | Not specified in OpenAPI |
size | integer | No | Defaults to 20. |
PlatformStreamRequestDiscoverResp
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
PlatformStreamRequestInvokeReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | At most 128 decoded UTF-8 bytes. The frozen contract determines whether this field is required. |
input | object | Yes | Not specified in OpenAPI |
PlatformStreamRequestInvokeResp
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
contractVersion | string | Yes | The frozen contract version used for execution. |
replayed | boolean | Yes | true indicates an idempotent replay; false indicates the first execution. |
result | object | Yes | The JSON result defined by the contract; null is allowed. |
runID | string | Yes | The execution identifier returned by the server, represented as an opaque string. |
status | string | Yes | The final status returned by the server; never accepted, queued, pending or running. |
RecordDocument
Ordinary business record. Business fields are in data; system attributes are siblings. filter/projection use bare business names and _id/_meta.*, not response-object paths. lock describes only active leases and does not return tokens.
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
collectionId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
createdAt | integer | Yes | Unix milliseconds. |
updatedAt | integer | Yes | Unix milliseconds. |
sourceId | string | Yes | Not specified in OpenAPI |
sourceTime | integer | Yes | Unix milliseconds. |
lock | object | No | CloudRecordLockView. See the referenced schema in the Schemas section. |
RuntimeStreamDefinition
| Field | Type | Required | Description |
|---|
name | string | Yes | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
script | object | Yes | StreamScript. See the referenced schema in the Schemas section. |
sources | array<object> | No | Not specified in OpenAPI |
sourceBindings | array<object> | No | Not specified in OpenAPI |
extensions | object | No | Not specified in OpenAPI |
SalesforceQueryDeclaration
| Field | Type | Required | Description |
|---|
cdc | boolean | No | Not specified in OpenAPI |
end | string | Yes | Not specified in OpenAPI |
fields | array<string> | Yes | Not specified in OpenAPI |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
object | string | Yes | Not specified in OpenAPI |
queryAll | boolean | No | Not specified in OpenAPI |
start | string | Yes | Not specified in OpenAPI |
SampleDocument
Ordinary sample object. Business fields are in data; time, quality, record identity and available provenance are siblings.
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
collectionId | string | Yes | Not specified in OpenAPI |
recordId | string | Yes | Not specified in OpenAPI |
time | integer | Yes | Sample timestamp supplied by the caller, in Unix milliseconds. |
receivedAt | integer | Yes | Server-generated sample receipt time in Unix milliseconds. |
quality | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
sourceId | string | Yes | Not specified in OpenAPI |
streamId | string | No | Not specified in OpenAPI |
bindingId | string | No | Not specified in OpenAPI |
Schema
| Field | Type | Required | Description |
|---|
additionalProperties | boolean | No | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
enum | array<object> | No | Not specified in OpenAPI |
items | object | No | Schema. See the referenced schema in the Schemas section. |
maximum | number | No | Not specified in OpenAPI |
minimum | number | No | Not specified in OpenAPI |
properties | object | No | Not specified in OpenAPI |
required | array<string> | No | Not specified in OpenAPI |
title | string | No | Not specified in OpenAPI |
type | string | Yes | Not specified in OpenAPI |
unit | string | No | Not specified in OpenAPI |
format | string | No | Type representation annotation: int32 for integer, float (float32) or double (float64) for number, and date-time (datetime) for string. Adds no numeric range, precision or date-format validation, rounding, date parsing or time-zone conversion. Omission preserves base-type semantics. The outer sample time field is unchanged. |
SourceCredentials
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
username | string | No | Not specified in OpenAPI |
secret | string | No | Not specified in OpenAPI |
values | object | No | Not specified in OpenAPI |
certificateFileId | string | No | Not specified in OpenAPI |
privateKeyFileId | string | No | Not specified in OpenAPI |
caFileId | string | No | Not specified in OpenAPI |
SourceDefinition
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.
| Field | Type | Required | Description |
|---|
credentialRef | string | No | Opaque existing credential reference returned for authorized editing and accepted on input. It contains no secret. Provision secrets only through create.credentials or credentials/update; secret material is never returned in the document. |
description | string | No | Not specified in OpenAPI |
endpoint | string | Yes | Protocol connection address or a discovered native device key. Never include credentials in the address. Managed server roles use the target-defined managed endpoint. |
extensions | object | No | Not specified in OpenAPI |
file | object | No | FileSourceOptions. See the referenced schema in the Schemas section. |
http | object | No | HTTPConnection. See the referenced schema in the Schemas section. |
modbus | object | No | ModbusOptions. See the referenced schema in the Schemas section. |
mqtt | object | No | MQTTOptions. See the referenced schema in the Schemas section. |
name | string | No | Not specified in OpenAPI |
opcua | object | No | OPCUAOptions. See the referenced schema in the Schemas section. |
openProtocol | object | No | OpenProtocolOptions. See the referenced schema in the Schemas section. |
protocol | string | Yes | Not specified in OpenAPI |
role | string | No | Not specified in OpenAPI |
runtimeLocation | string | No | Not specified in OpenAPI |
sourceType | string | No | Not specified in OpenAPI |
sql | object | No | SQLConnection. See the referenced schema in the Schemas section. |
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.
| Field | Type | Required | Description |
|---|
credentialRef | string | No | Opaque existing credential reference returned for authorized editing and accepted on input. It contains no secret. Provision secrets only through create.credentials or credentials/update; secret material is never returned in the document. |
description | string | No | Not specified in OpenAPI |
endpoint | string | No | Protocol connection address or a discovered native device key. Never include credentials in the address. Managed server roles use the target-defined managed endpoint. |
extensions | object | No | Not specified in OpenAPI |
file | object | No | FileSourceOptions. See the referenced schema in the Schemas section. |
http | object | No | HTTPConnection. See the referenced schema in the Schemas section. |
modbus | object | No | ModbusOptions. See the referenced schema in the Schemas section. |
mqtt | object | No | MQTTOptions. See the referenced schema in the Schemas section. |
name | string | No | Not specified in OpenAPI |
opcua | object | No | OPCUAOptions. See the referenced schema in the Schemas section. |
openProtocol | object | No | OpenProtocolOptions. See the referenced schema in the Schemas section. |
protocol | string | No | Not specified in OpenAPI |
role | string | No | Not specified in OpenAPI |
runtimeLocation | string | No | Not specified in OpenAPI |
sourceType | string | No | Not specified in OpenAPI |
sql | object | No | SQLConnection. See the referenced schema in the Schemas section. |
SQLConnection
| Field | Type | Required | Description |
|---|
caCertificate | string | No | Not specified in OpenAPI |
query | string | No | Preset approved business SELECT, supported on Cloud and Enterprise. Tool/WMS presets require PostgreSQL; quality-inspections requires SQL Server. Fixed reads support keyset scan; verify-full TLS is required. Query and queries are mutually exclusive. |
wms | object | No | WMSMapping. See the referenced schema in the Schemas section. |
queries | object | No | Source-owned named queries on Cloud and Enterprise; never override SQL in Stream acquisition. PostgreSQL/MySQL use read-only transactions and bounded read. SQL Server has no public preview or live-query dryRun; explicitly authorized Stream execution is potentially writing and uses effect journaling. No named-query scan. limit 1..100; timeoutMs 100..10000. |
tlsMode | string | No | Not specified in OpenAPI |
StreamScript
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
timeoutMs | integer | Yes | Not specified in OpenAPI |
StreamSourceAlias
| Field | Type | Required | Description |
|---|
sourceId | string | No | Not specified in OpenAPI |
configRevision | integer | No | Opaque execution snapshot version. It may conservatively advance even for a rename. Use the authoritative receipt; never derive configRevision from revision. |
target | object | No | StreamSourceTarget. See the referenced schema in the Schemas section. |
acquisition | object | No | Protocol acquisition only; cannot override connection or credentials. |
alias | string | Yes | Not specified in OpenAPI |
resources | array<string> | No | Not specified in OpenAPI |
StreamSourceBinding
| Field | Type | Required | Description |
|---|
sourceId | string | No | Not specified in OpenAPI |
configRevision | integer | No | Opaque execution snapshot version. It may conservatively advance even for a rename. Use the authoritative receipt; never derive configRevision from revision. |
target | object | No | StreamSourceTarget. See the referenced schema in the Schemas section. |
acquisition | object | No | Protocol acquisition only; cannot override connection or credentials. |
alias | string | No | Not specified in OpenAPI |
resources | array<string> | No | Not specified in OpenAPI |
StreamSourceTarget
| Field | Type | Required | Description |
|---|
fleetNodeId | string | Yes | Not specified in OpenAPI |
sourceId | string | Yes | Not specified in OpenAPI |
configRevision | integer | Yes | Opaque execution snapshot version. It may conservatively advance even for a rename. Use the authoritative receipt; never derive configRevision from revision. |
TeamcenterFileSelection
| Field | Type | Required | Description |
|---|
datasetUid | string | Yes | Not specified in OpenAPI |
fileUid | string | Yes | Not specified in OpenAPI |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
itemId | string | Yes | Not specified in OpenAPI |
itemUid | string | Yes | Not specified in OpenAPI |
queryUid | string | Yes | Not specified in OpenAPI |
revisionUid | string | Yes | Not specified in OpenAPI |
TransactionQueryResult
| Field | Type | Required | Description |
|---|
hasMore | boolean | Yes | Not specified in OpenAPI |
records | array<object> | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
UnsV2ArrayElementFilter
Scalar elements use comparison operators; object elements use relative field conditions, optionally with nested logical composition. pull rejects $expr.
{
"type": "object",
"minProperties": 1,
"additionalProperties": true,
"description": "Scalar elements use comparison operators; object elements use relative field conditions, optionally with nested logical composition. pull rejects $expr."
}UnsV2DataFilter
Unified predicates: business paths use field or customer.name; system paths use _id and _meta.revision/createdAt/updatedAt/sourceId/sourceTime/locked. Samples use _meta.recordId/time/receivedAt/quality/streamId/bindingId. Direct values equal $eq. Supports scalar comparisons, string $contains (ASCII case-insensitive substring), array $elemMatch/$all/$size, logical composition and restricted $expr. Dot-separated paths: escape literal dots as \. and backslashes as \\, escaping again in JSON. At most 512 bytes/10 segments; arrays use explicit indices, without implicit traversal. Field types are schema-validated; SQL and scripts are rejected. Record writes must match exactly one record by default. $eq:null matches null or missing; $ne:null matches present non-null fields; $ne:non-null also includes missing fields. $exists distinguishes presence from absence; explicit null counts as present.
| Field | Type | Required | Description |
|---|
$and | array<object> | No | Not specified in OpenAPI |
$or | array<object> | No | Not specified in OpenAPI |
$nor | array<object> | No | Not specified in OpenAPI |
$not | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
$expr | object | No | UnsV2PipelineExpression. See the referenced schema in the Schemas section. |
UnsV2Distinct
Deduplicate by the field combination in by and output the alias fields. Uses ordinary offset pagination. Count unique values with $distinct followed by $count; there is no countDistinct stage.
| Field | Type | Required | Description |
|---|
by | object | Yes | UnsV2DistinctBy. See the referenced schema in the Schemas section. |
UnsV2DistinctBy
Map output aliases to input field references. Aliases must be valid top-level field paths using the same escaping rules; empty names, $ prefixes, control characters and reserved prototype names are prohibited. An input row is discarded if any referenced field is missing; explicit null is preserved. Arrays compare as whole values; use $unwind first for element-level distinct values.
{
"type": "object",
"minProperties": 1,
"maxProperties": 16,
"additionalProperties": {
"type": "string",
"minLength": 2,
"maxLength": 513,
"pattern": "^\\$[^$].*$",
"description": "Declared field path with one $ prefix, such as $status; expressions and $$ variables are rejected."
},
"description": "Map output aliases to input field references. Aliases must be valid top-level field paths using the same escaping rules; empty names, $ prefixes, control characters and reserved prototype names are prohibited. An input row is discarded if any referenced field is missing; explicit null is preserved. Arrays compare as whole values; use $unwind first for element-level distinct values."
}UnsV2FieldComparisons
| Field | Type | Required | Description |
|---|
$eq | object | No | UnsV2FilterScalar. See the referenced schema in the Schemas section. |
$ne | object | No | UnsV2FilterScalar. See the referenced schema in the Schemas section. |
$gt | object | No | UnsV2FilterScalar. See the referenced schema in the Schemas section. |
$gte | object | No | UnsV2FilterScalar. See the referenced schema in the Schemas section. |
$lt | object | No | UnsV2FilterScalar. See the referenced schema in the Schemas section. |
$lte | object | No | UnsV2FilterScalar. See the referenced schema in the Schemas section. |
$in | array<object> | No | Not specified in OpenAPI |
$nin | array<object> | No | Not specified in OpenAPI |
$exists | boolean | No | Not specified in OpenAPI |
$all | array<object> | No | Each item matches by complete JSON-element equality. |
$size | integer | No | Not specified in OpenAPI |
$elemMatch | object | No | UnsV2ArrayElementFilter. See the referenced schema in the Schemas section. |
$contains | string | No | Substring matching for string fields only; ASCII letters are case-insensitive and other characters compare literally. Arrays and other types are errors. Wildcards and regex are unsupported. Cannot use indexes; large collections may time out. |
UnsV2FieldOperation
| Field | Type | Required | Description |
|---|
op | string | Yes | Not specified in OpenAPI |
path | string | Yes | Declared data.* path. Escape literal dot with \. and backslash with \\. Explicit array indexes are allowed; no implicit traversal or positional operators. Identity/revision fields cannot be modified. |
value | object | No | Required except unset, directly or through an explicit result binding. append/addToSet: array of 1..200 elements; pull: nonempty scalar-operator or object-field predicate evaluated on each element. |
UnsV2FieldPredicate
| Field | Type | Required | Description |
|---|
$eq | object | No | UnsV2FilterScalar. See the referenced schema in the Schemas section. |
$ne | object | No | UnsV2FilterScalar. See the referenced schema in the Schemas section. |
$gt | object | No | UnsV2FilterScalar. See the referenced schema in the Schemas section. |
$gte | object | No | UnsV2FilterScalar. See the referenced schema in the Schemas section. |
$lt | object | No | UnsV2FilterScalar. See the referenced schema in the Schemas section. |
$lte | object | No | UnsV2FilterScalar. See the referenced schema in the Schemas section. |
$in | array<object> | No | Not specified in OpenAPI |
$nin | array<object> | No | Not specified in OpenAPI |
$exists | boolean | No | Not specified in OpenAPI |
$all | array<object> | No | Each item matches by complete JSON-element equality. |
$size | integer | No | Not specified in OpenAPI |
$elemMatch | object | No | UnsV2ArrayElementFilter. See the referenced schema in the Schemas section. |
$not | object | No | UnsV2FieldComparisons. See the referenced schema in the Schemas section. |
$contains | string | No | Substring matching for string fields only; ASCII letters are case-insensitive and other characters compare literally. Arrays and other types are errors. Wildcards and regex are unsupported. Cannot use indexes; large collections may time out. |
UnsV2FilterScalar
{
"oneOf": [
{
"type": "string",
"nullable": true
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}UnsV2Frequencies
Count frequencies by the fields in by, returning aliases and a fixed count field. Counts the current stage's input; results may be sorted or filtered further.
| Field | Type | Required | Description |
|---|
by | object | Yes | Uses distinct field-combination and missing/null rules; aliases cannot be count. |
UnsV2Identity
{
"oneOf": [
{
"type": "string",
"maxLength": 128
},
{
"type": "object",
"required": [
"ref"
],
"additionalProperties": false,
"properties": {
"ref": {
"type": "string"
}
}
}
]
}UnsV2JobsQuery
| Field | Type | Required | Description |
|---|
queryId | string | Yes | Unique identifier within this query batch, used to correlate results. |
jobIds | array<string> | No | Not specified in OpenAPI |
UnsV2PipelineAccumulator
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"$sum": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$sum"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$avg": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$avg"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$min": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$min"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$max": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$max"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$count": {
"type": "object",
"maxProperties": 0
}
},
"required": [
"$count"
]
}
]
}UnsV2PipelineExpression
$field path reference or scalar constant; $literal forces a constant. Arithmetic accepts numbers only. $divide returns null for zero denominators; $ifNull explicitly supplies a missing/null default. $expr must return boolean. $cond requires a boolean condition and compatible branch types. Conversion failures are errors; missing/null propagate. $trim input/chars are string expressions; omitting chars trims whitespace. $dateTrunc input/output use Unix milliseconds, timezone is IANA, and startOfWeek applies only to week. Expression depth is at most 8, with at most 512 nodes. Each intermediate $concat result is limited to 1 MiB of UTF-8, otherwise EXPRESSION_BUDGET_EXCEEDED. Arbitrary functions are unsupported.
{
"oneOf": [
{
"$ref": "#/components/schemas/UnsV2FilterScalar"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$ifNull": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$ifNull"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$add": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$add"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$subtract": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$subtract"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$multiply": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$multiply"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$divide": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$divide"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$literal": {
"$ref": "#/components/schemas/UnsV2FilterScalar"
}
},
"required": [
"$literal"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$eq": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$eq"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$ne": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$ne"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$gt": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$gt"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$gte": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$gte"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$lt": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$lt"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$lte": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$lte"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$and": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 1,
"maxItems": 64
}
},
"required": [
"$and"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$or": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 1,
"maxItems": 64
}
},
"required": [
"$or"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$not": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 1,
"maxItems": 1
}
},
"required": [
"$not"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$cond": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 3,
"maxItems": 3
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"if": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"then": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"else": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"if",
"then",
"else"
]
}
]
}
},
"required": [
"$cond"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$concat": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 1,
"maxItems": 64
}
},
"required": [
"$concat"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toLower": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toLower"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toUpper": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toUpper"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$strLenCP": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$strLenCP"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toString": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toString"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toDecimal": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toDecimal"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toLong": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toLong"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toBool": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toBool"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$trim": {
"type": "object",
"additionalProperties": false,
"properties": {
"input": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"chars": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"input"
]
}
},
"required": [
"$trim"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$convert": {
"type": "object",
"additionalProperties": false,
"properties": {
"input": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"to": {
"type": "string",
"enum": [
"string",
"decimal",
"long",
"bool"
]
}
},
"required": [
"input",
"to"
]
}
},
"required": [
"$convert"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$dateTrunc": {
"type": "object",
"additionalProperties": false,
"properties": {
"date": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"unit": {
"type": "string",
"enum": [
"millisecond",
"second",
"minute",
"hour",
"day",
"week",
"month",
"quarter",
"year"
]
},
"timezone": {
"type": "string",
"default": "UTC"
},
"binSize": {
"type": "integer",
"minimum": 1,
"maximum": 1000000,
"default": 1,
"description": "Above 1, only fixed UTC millisecond/second/minute/hour/day buckets aligned to the Unix epoch are supported. 1 supports calendar units and time zones."
},
"startOfWeek": {
"type": "string",
"enum": [
"sunday",
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday"
],
"default": "sunday"
}
},
"required": [
"date",
"unit"
]
}
},
"required": [
"$dateTrunc"
]
}
],
"description": "$field path reference or scalar constant; $literal forces a constant. Arithmetic accepts numbers only. $divide returns null for zero denominators; $ifNull explicitly supplies a missing/null default. $expr must return boolean. $cond requires a boolean condition and compatible branch types. Conversion failures are errors; missing/null propagate. $trim input/chars are string expressions; omitting chars trims whitespace. $dateTrunc input/output use Unix milliseconds, timezone is IANA, and startOfWeek applies only to week. Expression depth is at most 8, with at most 512 nodes. Each intermediate $concat result is limited to 1 MiB of UTF-8, otherwise EXPRESSION_BUDGET_EXCEEDED. Arbitrary functions are unsupported."
}UnsV2PipelinePage
| Field | Type | Required | Description |
|---|
size | integer | No | Page size; see this endpoint's maximum or the capability catalog. |
mode | string | No | Pipelines containing only $match/$sort default to cursor (keyset); other pipelines default to offset and do not support cursor. |
page | integer | No | Page number, starting at 1. |
cursor | string | No | Signed keyset token containing complete sort values and unique identity, bound to query, collection, schema/revision and caller identity, valid for 7 days. Restart after identity, schema or signing-key changes. Does not freeze snapshots across requests. |
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
Exactly one operator per stage; stages execute in order. $lookup performs equality matching before its pipeline, producing an array; each target collection is authorized independently.
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"$match": {
"$ref": "#/components/schemas/UnsV2DataFilter"
}
},
"required": [
"$match"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$project": {
"type": "object",
"minProperties": 1,
"maxProperties": 64,
"additionalProperties": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"description": "Field inclusion/exclusion (1/0) or expressions. Supports nested output paths and $field references. Cannot mix inclusion and exclusion except for _id."
}
},
"required": [
"$project"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$set": {
"type": "object",
"minProperties": 1,
"maxProperties": 64,
"additionalProperties": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"description": "Add or replace computed fields, including nested paths, using only allowed expressions."
}
},
"required": [
"$set"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$sort": {
"$ref": "#/components/schemas/UnsV2PipelineSort"
}
},
"required": [
"$sort"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$group": {
"type": "object",
"required": [
"_id"
],
"properties": {
"_id": {
"anyOf": [
{
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
}
]
}
},
"additionalProperties": {
"$ref": "#/components/schemas/UnsV2PipelineAccumulator"
},
"description": "_id defines a scalar, null or object grouping key; other fields support $sum/$avg/$min/$max. Count with {$sum:1}."
}
},
"required": [
"$group"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$distinct": {
"$ref": "#/components/schemas/UnsV2Distinct"
}
},
"required": [
"$distinct"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$frequencies": {
"$ref": "#/components/schemas/UnsV2Frequencies"
}
},
"required": [
"$frequencies"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$lookup": {
"type": "object",
"additionalProperties": false,
"properties": {
"collectionId": {
"type": "string"
},
"recordId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"kind": {
"type": "string",
"enum": [
"records",
"samples"
],
"default": "records"
},
"localField": {
"type": "string"
},
"foreignField": {
"type": "string"
},
"as": {
"type": "string"
},
"pipeline": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineStage"
}
}
},
"required": [
"collectionId",
"localField",
"foreignField",
"as"
],
"oneOf": [
{
"properties": {
"kind": {
"enum": [
"samples"
]
}
},
"required": [
"kind",
"recordId"
]
},
{
"properties": {
"kind": {
"enum": [
"records"
]
}
},
"not": {
"required": [
"recordId"
]
}
}
],
"description": "kind=samples requires a fixed recordId and joins only within that record; records prohibits recordId. foreignField requires a ready B-tree index with that leading field, or an applicable built-in identity index. At most 1000 primary rows, 10000 raw joined rows per input, 8 MiB intermediate results and 200 final joined items per input. Overflow fails explicitly instead of truncating; a child pipeline may filter or aggregate."
}
},
"required": [
"$lookup"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$unwind": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
},
"preserveNullAndEmptyArrays": {
"type": "boolean"
}
},
"required": [
"path"
]
}
]
}
},
"required": [
"$unwind"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$skip": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
}
},
"required": [
"$skip"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$limit": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
}
},
"required": [
"$limit"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$count": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"description": "Valid top-level output field name following common path escaping and reserved-name rules. Output one count row; empty input returns 0. As the final stage, explicit page is prohibited. With later stages, paginate the final output normally."
}
},
"required": [
"$count"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$exists": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"description": "Valid top-level output field name following common path escaping and reserved-name rules. Output one boolean indicating whether the current stage has any input; empty input returns false. As the final stage, explicit page is prohibited. With later stages, paginate the final output normally."
}
},
"required": [
"$exists"
]
}
],
"description": "Exactly one operator per stage; stages execute in order. $lookup performs equality matching before its pipeline, producing an array; each target collection is authorized independently."
}UnsV2QueryCountExpectation
| Field | Type | Required | Description |
|---|
min | integer | No | Not specified in OpenAPI |
max | integer | No | Not specified in OpenAPI |
UnsV2RecordChange
| Field | Type | Required | Description |
|---|
update | object | No | Update-operator document for record.update; mutually exclusive with operations. |
arrayFilters | array<object> | No | Not specified in OpenAPI |
upsert | boolean | No | When true, filter requires _id equality or equality covering every field of a ready unique index; otherwise UPSERT_REQUIRES_UNIQUE_INDEX. Insert when unmatched; unique conflicts return 409 DUPLICATE_KEY. |
opId | string | Yes | Unique operation identifier within the transaction, used by dependencies and result references. |
action | string | Yes | Not specified in OpenAPI |
id | object | No | Record ID or a reference to an earlier create operation. Creation may omit it for automatic allocation. Existing-record operations may select by id, filter or target-result binding. record.query does not accept id. |
collectionId | object | Yes | UnsV2Identity. See the referenced schema in the Schemas section. |
expectedRevision | integer | No | Optional revision check. For creation, reads, collection queries or exists=false checks, omit or use 0 only. |
data | object | No | Business data for record.create/replace. |
dependsOn | array<string> | No | Prerequisite opIds; the server checks dependency cycles. |
exists | boolean | No | Not specified in OpenAPI |
filter | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
selection | string | No | Selection mode for record.read/update/modify/replace/delete. first requires filter and optionally sort. Defaults to exactOne; multiple matches are an error. |
sort | object | No | Used only with selection=first; ID sorting is appended to stabilize ties. |
returnDocument | string | No | before/after snapshot option for record.read/update/modify/replace/delete. Writes return no extra snapshot when omitted. |
operations | array<object> | No | Not specified in OpenAPI |
bindings | array<object> | No | Bind prior operation results to specified fields in this operation; no string templates or arbitrary code. |
query | object | No | UnsV2TransactionQuery. See the referenced schema in the Schemas section. |
lockToken | string | No | Not specified in OpenAPI |
release | boolean | No | Not specified in OpenAPI |
lockTokens | object | No | Not specified in OpenAPI |
conditions | array<object> | No | Conditions for record.check/update/modify; mutually exclusive with filter. |
UnsV2RecordFilter
| Field | Type | Required | Description |
|---|
field | string | Yes | Not specified in OpenAPI |
op | string | Yes | Not specified in OpenAPI |
value | object | Yes | Not specified in OpenAPI |
UnsV2ReferenceTarget
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
id | string | Yes | Object ID as a string, obtained through discovery or read endpoints; do not use a name as an ID. |
UnsV2ResultBinding
| Field | Type | Required | Description |
|---|
path | string | Yes | data.field DTO paths, operations.N.value, or JSON Pointers beginning with filter/ such as filter/available/$gte and filter/_id/$eq. Filter pointers may replace only existing scalar/null placeholders, not predicate structure. id may bind a record identity from a query result in the same collection. |
ref | string | Yes | Not specified in OpenAPI |
resultPath | string | Yes | id/revision/collectionId/data.field; queries additionally expose query.total and query.records.N.id/revision/collectionId/data.field. Missing rows or fields fail the transaction. |
UnsV2TransactionQuery
| Field | Type | Required | Description |
|---|
filter | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
sort | array<array<object>> | No | UnsV2PipelineSort. See the referenced schema in the Schemas section. |
limit | integer | No | Returned row limit; omitted or 0 means 20. Count assertions apply before this limit. |
expectCount | object | No | UnsV2QueryCountExpectation. See the referenced schema in the Schemas section. |
WMSMapping
| Field | Type | Required | Description |
|---|
fields | array<string> | Yes | Not specified in OpenAPI |
keyColumn | string | Yes | Not specified in OpenAPI |
table | string | Yes | Not specified in OpenAPI |
updatedAt | string | No | Not specified in OpenAPI |