Operations
API field names, examples, and source descriptions follow the bundled English OpenAPI specification.
Collection Management
Collection management APIs
POST/uns/discovery/describe
Read Collection fields, relationships and measurement semantics
Returns the Collection Schema and explicitly declared semantics. Do not infer undeclared relationships, units or granularity from field names.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/discovery/describe' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"collectionId":"string"}'application/json
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID owning the business Records and Samples. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"collectionId": "string",
"description": "string",
"fields": [
"value"
],
"indexStatus": [
"value"
],
"indexes": [
"value"
]
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/discovery/search
Search accessible Collections
Search Collections accessible to the current identity by name or description. Discover real IDs before interpreting their fields.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/discovery/search' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"search":"string","page":0,"size":0}'application/json
| Field | Type | Required | Description |
|---|
search | string | No | Search by name or supported text fields; not SQL. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. At most 200 items per page. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"asOf": 0,
"complete": false,
"hasMore": false,
"list": [
"value"
],
"nextCursor": "string"
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
Metadata
Metadata APIs
POST/uns/app/context
context · App
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/context' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'application/json
This request body has no declared object fields in OpenAPI.
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/auto-indexes/disable
Disable or enable an automatic index specification
Disable or enable an automatic index specification.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/auto-indexes/disable' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"collectionId":"string","fields":[{"field":"value","direction":"value","form":"value"}],"action":"disable"}'application/json
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID for the business records and samples. |
fields | array<object> | Yes | Specification to disable or enable, taken from autoIndexes[].spec.fields or disabledAutoIndexSpecs[].spec.fields. |
action | string | Yes | disable deletes existing automatic indexes with the same specification and prevents their automatic recreation; enable restores automatic management. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"collectionId": "string",
"specKey": "string",
"spec": {
"paths": "value",
"fields": "value"
},
"state": "disabled",
"removingIndexIds": [
"value"
]
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/auto-indexes/pin
Pin or unpin an automatic index
Pin or unpin an automatic index.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/auto-indexes/pin' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"collectionId":"string","indexId":"string","action":"pin"}'application/json
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID for the business records and samples. |
indexId | string | Yes | Automatic index task ID (autoIndexes[].id). |
action | string | Yes | pin pins the index: the platform will neither delete nor rebuild it; unpin removes the pin. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"id": "string",
"name": "string",
"physicalNames": [
"value"
],
"spec": {
"paths": "value",
"fields": "value"
},
"state": "pending"
}
}Success response fields
200 · application/json
| 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 | CloudAutoIndex. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/batch/status
Query the caller’s write receipt and current durable delivery status
Retains existing cross-type batch semantics for recovery by existing clients. New calls should use meta/batch, /uns/records:transact or the items array on ordinary Record/Sample resource operations. Do not replay an unresolved old request through a different endpoint.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/batch/status' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"scope":"string","idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
scope | string | No | Not specified in OpenAPI |
idempotencyKey | string | Yes | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"committedAt": 0,
"deliveries": [
"value"
],
"itemCount": 0,
"jobId": "string",
"retryAdvice": {
"recommendedAction": "value",
"canRetrySameRequest": "value",
"keepIdempotencyKey": "value"
}
}
}Success response fields
200 · application/json
| 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 | TransactionStatusResult. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/edges/collection-sync/validate
Validate this Edge Collection mapping, current center grant and target schema
Validate this Edge Collection mapping, current center grant and target schema.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/edges/collection-sync/validate' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"collectionId":"string"}'application/json
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID owning the business Records and Samples. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"collectionId": "string",
"targetCollectionId": "string",
"centerId": "string",
"sourceRevision": 0,
"targetRevision": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/edges/config/get
Read an Edge configuration section and its revision
Read an Edge configuration section and its revision.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/edges/config/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"section":"collectionSync"}'application/json
| Field | Type | Required | Description |
|---|
section | string | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"section": "collectionSync",
"revision": 0,
"config": "string",
"effectiveAt": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/edges/config/update
Save an Edge configuration section with revision checking. uploadPolicy sets the delivery cadence for newly queued Collection replication
Save an Edge configuration section with revision checking. uploadPolicy sets the delivery cadence for newly queued Collection replication.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/edges/config/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"section":"collectionSync","expectedRevision":0,"config":"string","collectionId":"string","expectedCollectionRevision":0}'application/json
| Field | Type | Required | Description |
|---|
section | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
config | object | Yes | Not specified in OpenAPI |
collectionId | string | No | Collection ID owning the business Records and Samples. |
expectedCollectionRevision | integer | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"section": "collectionSync",
"revision": 0,
"config": "string",
"effectiveAt": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/edges/list
Query the Fleet node directory managed by the Cluster center
Lists configuration by page/size/search; archived=true selects archived items only.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/edges/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"size":0,"keyword":"string","status":"unjoined"}'application/json
| 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"list": [
"value"
],
"total": 0,
"page": 0,
"size": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
Apps and Grants
App identity and authorization APIs
POST/uns/app-stream-access/list
List configured App Request grants with current platform management authority. includeInactive=1 retains revoked or missing-publication grants for review and revocation.
Lists configuration by page/size/search; archived=true selects archived items only.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-stream-access/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","streamId":"string","page":0,"size":0,"includeInactive":1}'application/json
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
streamId | string | No | Not specified in OpenAPI |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
includeInactive | integer | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"items": [
"value"
],
"page": 0,
"size": 0,
"total": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/app-stream-policy/get
Get native App Stream policy; current manager session or full_access personal/Agent/service key requires uns.write and stream.requests.manage; restricted MCP OAuth and App runtime credentials cannot manage policy; preserves data grants and does not upgrade credentials or enable message transport
Reads only the object definition, ID and revision, without expanding business Records or Samples.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-stream-policy/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string"}'application/json
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"appId": "string",
"revision": 0,
"version": "cloud-hosted-app-stream/v1",
"status": "active",
"platformPermissions": [
"value"
]
}
}Success response fields
200 · application/json
| 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 | AppStreamPolicyView. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/app-stream-policy/update
Update native App Stream policy; current manager session or full_access personal/Agent/service key requires uns.write and stream.requests.manage; restricted MCP OAuth and App runtime credentials cannot manage policy; preserves data grants and does not upgrade credentials or enable message transport
Updates only the basic information listed by this operation. Omitted fields retain their values. Schema, connections, drafts and grants use their own operations.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-stream-policy/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","expectedRevision":0,"status":"active","platformPermissions":["stream.requests.read"],"messageTopics":[{"publish":"value","subscribe":"value","topic":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Expected revision; provide it after reading the current object. On conflict, reread and decide how to proceed instead of blindly overwriting. Shared App metadata revision; zero only when no metadata exists. Read the current revision before updating. |
status | string | Yes | Not specified in OpenAPI |
platformPermissions | array<string> | Yes | Not specified in OpenAPI |
messageTopics | array<object> | No | Not specified in OpenAPI |
idempotencyKey | string | Yes | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/app/collections/archive
Archive an App-owned Collection and revoke its data grants
Archive an App-owned Collection and revoke its data grants.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/archive' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"alias":"string"}'application/json
| Field | Type | Required | Description |
|---|
alias | string | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"alias": "string",
"collectionId": "string",
"revision": 0,
"archived": false
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/app/collections/ensure
Resolve an existing Collection or create/widen a Collection owned by the current App
Resolve an existing Collection or create/widen a Collection owned by the current App.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/ensure' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","dryRun":false,"collections":[{"alias":"value","name":"value","description":"value","directoryPath":"value","recordSchema":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
appId | string | No | Not specified in OpenAPI |
dryRun | boolean | No | Not specified in OpenAPI |
collections | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"appId": "string",
"results": [
"value"
]
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/app/collections/list
List Collections owned by a local App, including archived Collections
List Collections owned by a local App, including archived Collections.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string"}'application/json
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"appId": "string",
"collections": [
"value"
]
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/app/collections/restore
Restore an App-owned Collection and the data grants revoked by this archive
Restore an App-owned Collection and the data grants revoked by this archive.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/restore' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"alias":"string"}'application/json
| Field | Type | Required | Description |
|---|
alias | string | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"alias": "string",
"collectionId": "string",
"revision": 0,
"archived": false
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/app/collections/schema:replace
Explicitly replace the Schema and indexes of an App-owned Collection
Explicitly replace the Schema and indexes of an App-owned Collection.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/schema:replace' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"alias":"string","recordSchema":{"additionalProperties":false,"description":"string","enum":["value"],"format":"string","items":{"additionalProperties":"value","description":"value","enum":"value","format":"value","items":"value"}},"indexes":[{"expireAfterSeconds":"value","kind":"value","path":"value","paths":"value","target":"value"}],"description":"string","expectedRevision":0}'application/json
| Field | Type | Required | Description |
|---|
alias | string | Yes | Not specified in OpenAPI |
recordSchema | object | Yes | Schema. See the referenced schema in the Schemas section. |
indexes | array<object> | Yes | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
expectedRevision | integer | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"alias": "string",
"collectionId": "string",
"revision": 0,
"status": "unchanged",
"retired": {
"paths": "value",
"enumValues": "value"
}
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/apps:replace
Replace App configuration
Replaces the complete configuration under current domain rules. System fields are read-only. Credential, release, associated-resource and authorization checks still apply.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps:replace' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","expectedRevision":0,"replacement":{"collections":["value"],"description":"string","entry":{"basePath":"value","environment":"value","path":"value"},"members":["value"],"name":"string"},"dryRun":false,"idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | No | Optional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
replacement | object | Yes | AppData. See the referenced schema in the Schemas section. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"matchedCount": 0,
"modifiedCount": 0,
"status": "validated",
"replayed": false
}
}Success response fields
200 · application/json
| 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 counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/apps/context
Read the current App identity and grants
Requires an App data Key. Returns actual Collection grants and cannot elevate permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/context' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'application/json
This request body has no declared object fields in OpenAPI.
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/apps/create
Create app; schemaVersion is assigned by the server
Creates App configuration. Set initial Collection grants, members, roles and linked Topics through their dedicated update operations. This creates neither a deployment nor a page.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","description":"value","entry":"value","name":"value","platformPermissions":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/apps/get
Get one app definition and revision, without data expansion
Reads only the object definition, ID and revision, without expanding business Records or Samples.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"kind": "app",
"id": "string",
"revision": 0,
"data": {
"collections": "value",
"description": "value",
"entry": "value",
"members": "value",
"name": "value"
},
"createdAt": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/apps/grants/update
Replace App collections only; all other App fields are preserved
Replaces the complete collections grant list; omitted grants are removed and [] clears it. alias is the Collection alias within the App. permissions explicitly grant record:read/write/delete and sample:read/write. Linked Topics grant none of these permissions.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/grants/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","collections":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/apps/keys/create
Issue an App data Key
The secret is returned only on creation. Store it on a trusted server; never in a browser.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/keys/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","name":"string"}'application/json
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/apps/keys/revoke
Revoke an App data Key
The specified Key can no longer access the API after revocation.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/keys/revoke' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","keyId":"string"}'application/json
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
keyId | string | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/apps/list
List apps; archived=true selects archived objects only
Lists configuration by page/size/search; archived=true selects archived items only.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"size":0,"search":"string","archived":false}'application/json
| Field | Type | Required | Description |
|---|
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
archived | boolean | No | true lists archived objects only; false lists active objects only. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"asOf": 0,
"complete": false,
"hasMore": false,
"nextCursor": "string",
"nextPage": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/apps/members/update
Replace App members only; all other App fields are preserved
Replaces all members; userId references a user and roleIds reference this App's roles. Omitted members are removed; [] clears the list. This does not grant platform roles.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/members/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","members":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/apps/navigation/update
Replace the App associated Topic list (navigation.topicIds); this does not configure page menus or grant data access; all other App fields are preserved
Replaces the App's complete linked Topic list; an empty list clears it. navigation is the retained API field name for Topic associations, not a page navbar or menu. Linking grants no Collection data permissions and does not modify App pages. idempotencyKey and expectedRevision are optional and apply when supplied; dryRun=true validates only.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/navigation/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","navigation":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/apps/platform-permissions/update
Replace explicit App platform permissions; empty array revokes all; permissions cannot exceed issuer resources; MCP consent is unavailable
Replaces the complete App platformPermissions list; [] revokes all platform capabilities. Collection grants, roles and linked Topics do not substitute for platform permissions. Effective capabilities remain the intersection with Key scope and owner permissions. Optionally supply the current expectedRevision; dryRun=true validates only.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/platform-permissions/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","platformPermissions":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/apps/roles/update
Replace App roles only; all other App fields are preserved
Replaces all roles; each role has id/name. Omitted roles are removed; [] clears the list. Collection data permissions remain configured through grants.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/roles/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","roles":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/apps/session/inspect
Verify a human platform session for the caller App; OpenAPI requires an App-bound API Key matching appId; internal callers may inspect only themselves; returns minimal identity and current App roles, never credentials; no implicit administrator membership
The App server uses an App Key matching appId to verify a platform session token and read the trusted user identity and App roles. It issues no login credentials and does not elevate data permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/session/inspect' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","token":"string"}'application/json
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
token | string | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"appId": "string",
"roleIds": [
"value"
],
"roles": [
"value"
],
"sessionExpireAt": "string",
"user": {
"nickName": "value",
"userId": "value",
"userName": "value"
}
}
}Success response fields
200 · application/json
| 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 | AppSessionIdentity. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/apps/update
Update app metadata only; omitted fields are preserved
Updates only the basic information listed by this operation. Omitted fields retain their values. Schema, connections, drafts and grants use their own operations.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/apps/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","name":"value","description":"value","status":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
API Capabilities
API capability discovery
POST/uns/catalog/get
Read the API capability catalog
Returns operations, Schemas and limits supported by this server. Call for a new connection or after a version change.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/catalog/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'application/json
This request body has no declared object fields in OpenAPI.
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
Namespaces
Namespace APIs
POST/uns/namespace:copy
Copy a directory or display Topic
Directory copies preserve the tree; Topic copies preserve explicit references. Collections, Records and Samples are not copied. Mounted resources are read-only. Permissions, names, parents and references are still validated.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/namespace:copy' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","id":"string","expectedRevision":0,"data":{"name":"string","parentId":"string","description":"string"},"dryRun":false}'application/json
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | No | Optional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
data | object | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"insertedId": "string",
"status": "validated",
"replayed": false
}
}Success response fields
200 · application/json
| 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 counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/namespace/query
Read directory trees in a batch
Reads the directory/topic display hierarchy; Records are not expanded into tree nodes.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/namespace/query' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"queries":[{"queryId":"value","page":"value","size":"value","search":"value","kinds":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/topics/view
Read Topic display data
Reads the saved records/fields view of a Topic without creating a data copy.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/topics/view' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"queries":[{"queryId":"value","topicId":"value","include":"value","records":"value","selectedRecord":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
Metadata Management
Metadata management APIs
POST/uns/metadata
Insert one metadata object
Creates a directory, Topic or Collection with current identity permissions and configuration validation. Use dedicated operations for App grants.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","id":"string","data":{},"dryRun":false,"idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
id | string | No | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"insertedId": "string",
"status": "validated",
"replayed": false
}
}Success response fields
200 · application/json
| 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 counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/metadata:aggregate
Aggregate metadata
Supports match/project/group/sort/skip/limit for permitted metadata kinds, without cross-table joins or writes.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:aggregate' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","kinds":["directory"],"state":"active","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"pipeline":["string"]}'application/json
| Field | Type | Required | Description |
|---|
kind | string | No | Not specified in OpenAPI |
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. The $distinct stage sorts by JSONB value and uses outer pagination. |
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 results. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/metadata:bulkWrite
Execute mixed metadata writes
At most 200 operations within one kind. Atomic by default. For non-atomic batches, ordered controls whether to continue after failure. Per-item results retain original input indices.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:bulkWrite' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","operations":["string"],"atomic":false,"ordered":false,"dryRun":false}'application/json
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
operations | array<object> | Yes | Not specified in OpenAPI |
atomic | boolean | No | The entire batch commits atomically by default. Set false to commit items independently. Full authorization and domain validation still apply to each object. |
ordered | boolean | No | With atomic=false, controls whether to stop or continue after a failure. Atomic batches reject ordered=false. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"insertedCount": 0,
"matchedCount": 0,
"modifiedCount": 0,
"deletedCount": 0,
"restoredCount": 0
}
}Success response fields
200 · application/json
| 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 counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/metadata:count
Count metadata
Counts matching objects within the specified kind and state.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:count' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","kinds":["directory"],"state":"active","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]}}'application/json
| Field | Type | Required | Description |
|---|
kind | string | No | Not specified in OpenAPI |
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 results. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/metadata:deleteMany
Soft-delete multiple metadata objects
An atomic conditional batch within an explicit kind. Rejects the entire batch if matches exceed maxDocs. Use bulkWrite when objects require independent revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:deleteMany' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"atomic":true,"maxDocs":0,"dryRun":false}'application/json
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
atomic | boolean | No | The entire batch commits atomically. Use bulkWrite to commit individual items. |
maxDocs | integer | No | Rejects the entire operation if the match limit is exceeded. The write set is never truncated. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"deletedCount": 0,
"results": [
"value"
],
"errors": [
"value"
],
"status": "validated",
"replayed": false
}
}Success response fields
200 · application/json
| 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 counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/metadata:deleteOne
Soft-delete one metadata object
Recycles an active object. Directories include their active subtree. Collections retain Records, Samples and references while rejecting writes.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:deleteOne' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"expectedRevision":0,"dryRun":false}'application/json
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
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. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
returnDocument | string | No | none returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null. |
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 counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/metadata:find
Find metadata
Queries directories, Topics and Collections. Use bare configuration field names and _id/_meta.* for system fields. Returns items/pageInfo.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:find' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","kinds":["directory"],"state":"active","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'application/json
| Field | Type | Required | Description |
|---|
kind | string | No | Not specified in OpenAPI |
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 results. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/metadata:purge
Permanently purge recycled objects
Asynchronously purges explicitly selected recycled objects; directories include recycled descendants. Deletes metadata after cleaning Records and Samples in batches. Returns jobId. Retain idempotencyKey when retrying.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:purge' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","ids":["string"],"dryRun":false,"idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
ids | array<string> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/metadata:replaceOne
Replace one metadata object
Fully replaces writable configuration, validating Schema, indexes and references. System fields remain server-managed. An upsert insertion requires an explicit _id and complete configuration.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:replaceOne' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"expectedRevision":0,"replacement":{}}'application/json
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
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. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
replacement | object | Yes | Not specified in OpenAPI |
upsert | boolean | No | Supported for single-resource updates and replacements. The filter must specify equality on _id, and the new configuration must be complete and valid. A deleted object with the same ID is never restored automatically. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
returnDocument | string | No | none returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null. |
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 counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/metadata:restore
Restore metadata objects by ID
Atomically restores the batch, revalidating current names, parent directories and references, and incrementing revision. Dependencies are not implicitly restored.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:restore' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","items":[{"id":"value","expectedRevision":"value"}],"dryRun":false,"idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"restoredCount": 0,
"items": [
"value"
],
"status": "validated",
"replayed": false
}
}Success response fields
200 · application/json
| 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 counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/metadata:transact
Execute a metadata transaction
Atomic operations across directories, Topics and Collections. opId/dependsOn control dependencies. parentId/collectionId support {ref:opId} to reference creation results. At most 200 items. dryRun=true validates then rolls back.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:transact' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"operations":[{"opId":"value","action":"value","kind":"value","id":"value","filter":"value"}],"dryRun":false,"idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
operations | array<object> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"results": [
"value"
],
"status": "validated",
"replayed": false
}
}Success response fields
200 · application/json
| 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 counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/metadata:updateMany
Update multiple metadata objects
An atomic conditional batch within an explicit kind. Rejects the entire batch if matches exceed maxDocs. Use bulkWrite when objects require independent revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:updateMany' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"update":{"$set":{},"$unset":{},"$setOnInsert":{}},"atomic":true,"maxDocs":0}'application/json
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
update | object | Yes | Supports only $set, $unset, and $setOnInsert. Configuration paths omit the data. prefix. System fields are read-only. An array update replaces the whole field. |
atomic | boolean | No | The entire batch commits atomically. Use bulkWrite to commit individual items. |
maxDocs | integer | No | Rejects the entire operation if the match limit is exceeded. The write set is never truncated. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"matchedCount": 0,
"modifiedCount": 0,
"upsertedId": "string",
"results": [
"value"
],
"errors": [
"value"
]
}
}Success response fields
200 · application/json
| 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 counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/metadata:updateOne
Update one metadata object
Selection and update run in the same transaction with domain validation. An upsert insertion requires an explicit _id and complete configuration.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:updateOne' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"expectedRevision":0,"update":{"$set":{},"$unset":{},"$setOnInsert":{}}}'application/json
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
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. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
update | object | Yes | Supports only $set, $unset, and $setOnInsert. Configuration paths omit the data. prefix. System fields are read-only. An array update replaces the whole field. |
upsert | boolean | No | Supported for single-resource updates and replacements. The filter must specify equality on _id, and the new configuration must be complete and valid. A deleted object with the same ID is never restored automatically. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
returnDocument | string | No | none returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null. |
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 counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/references/query
Query object references
Inspects references between configuration objects; it does not infer business batch relationships.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/references/query' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"queries":[{"queryId":"value","page":"value","size":"value","targets":"value","relationKinds":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
Jobs
Job APIs
POST/uns/jobs/query
Query asynchronous job status
accepted means the job was accepted. Wait for its final status to confirm a successful commit.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/jobs/query' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"queries":[{"queryId":"value","jobIds":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
Business Data
Query, write, soft-delete and restore business Records; manage lease locks and cross-Collection transactions. Use bare business field names and _id/_meta.* for system fields.
POST/uns/collections/{collectionId}/records
Insert one Record
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","id":"string","data":{}}'application/json
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
id | string | No | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
data | object | Yes | Not specified in OpenAPI |
returnDocument | string | No | none returns the original insertedId response. after includes the created value in the same write transaction and requires the corresponding read permission. Idempotent replays return the original creation snapshot. dryRun returns an uncommitted preview. |
lockToken | string | No | Not specified in OpenAPI |
release | boolean | No | Not specified in OpenAPI |
assertLocks | array<object> | No | Not specified in OpenAPI |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"insertedId": "string",
"value": {
"id": "value",
"collectionId": "value",
"data": "value",
"revision": "value",
"createdAt": "value"
},
"acceptedId": "string",
"deliveryState": "pendingUpload",
"centerCommitted": false
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:aggregate
Aggregate business Records
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:aggregate' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"pipeline":["string"],"limit":0,"page":{"size":0,"mode":"offset","page":0,"cursor":"string"},"count":{"max":0}}'application/json
| 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 | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"items": [
"value"
],
"pageInfo": {
"mode": "value",
"hasMore": "value",
"nextCursor": "value",
"nextPage": "value",
"snapshotScope": "value"
},
"total": {
"count": "value",
"capped": "value"
}
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:bulkWrite
Execute mixed writes within a Collection
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:bulkWrite' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","operations":["string"],"ordered":false}'application/json
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
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 up to 200 items for document actions. false commits each document separately. |
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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"insertedCount": 0,
"matchedCount": 0,
"modifiedCount": 0,
"deletedCount": 0,
"upsertedCount": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:count
Count Records
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:count' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"maxCount":0}'application/json
| Field | Type | Required | Description |
|---|
filter | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
maxCount | integer | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"count": 0,
"capped": false
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:deleteMany
Soft-delete multiple Records
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:deleteMany' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"maxDocs":0}'application/json
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
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. Document actions are limited to 200 items, maxDocs must be at most 200, and the complete match set must fit the limit. false commits each document separately. |
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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"deletedCount": 0,
"delivery": {
"centerCommitted": "value",
"eventIds": "value",
"failed": "value",
"localCommitted": "value",
"pending": "value"
},
"status": "string",
"replayed": false,
"writeErrors": [
"value"
]
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:deleteOne
Soft-delete one Record
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:deleteOne' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'application/json
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
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 the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"deletedCount": 0,
"delivery": {
"centerCommitted": "value",
"eventIds": "value",
"failed": "value",
"localCommitted": "value",
"pending": "value"
},
"status": "string",
"replayed": false,
"value": {
"id": "value",
"collectionId": "value",
"data": "value",
"revision": "value",
"createdAt": "value"
}
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:explain
Assess query and write scope. aggregate uses the actual pipeline and pagination; returns only the database plan without executing aggregation or writes.
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:explain' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"op":"find","limit":0,"pipeline":["string"]}'application/json
| 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 | For scope evaluation, the default is 1000 and the maximum is 10000. For aggregate, the default is 20 and the maximum is 200. |
pipeline | array<object> | No | Not specified in OpenAPI |
page | object | No | UnsV2PipelinePage. See the referenced schema in the Schemas section. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:find
Find business Records
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:find' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"projection":{},"limit":0,"cursor":"string"}'application/json
| 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 | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"items": [
"value"
],
"pageInfo": {
"mode": "value",
"hasMore": "value",
"nextCursor": "value",
"nextPage": "value",
"snapshotScope": "value"
},
"total": {
"count": "value",
"capped": "value"
}
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:get
Read Records by ID
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"ids":["string"],"projection":{}}'application/json
| 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"items": [
"value"
],
"missing": [
"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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:lock
Lock or claim Records
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:lock' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"ids":["string"],"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"limit":0,"ttlMs":0}'application/json
| 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"locks": [
"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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:renew
Renew Record lock leases
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:renew' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"locks":[{"id":"value","token":"value"}],"ttlMs":0}'application/json
| Field | Type | Required | Description |
|---|
locks | array<object> | Yes | Not specified in OpenAPI |
ttlMs | integer | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"locks": [
"value"
]
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:replaceOne
Replace one Record
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:replaceOne' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'application/json
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
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 | Inserts if no record matches. The filter must specify equality on _id or equality for all fields of a ready unique index. Concurrent conflicts do not create duplicate records. |
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 the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"matchedCount": 0,
"modifiedCount": 0,
"upsertedId": "string",
"delivery": {
"centerCommitted": "value",
"eventIds": "value",
"failed": "value",
"localCommitted": "value",
"pending": "value"
},
"status": "string"
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:restore
Restore Records by ID in a batch
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:restore' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"ids":["string"],"dryRun":false,"idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
ids | array<string> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"restoredCount": 0,
"restoredIds": [
"value"
],
"delivery": {
"centerCommitted": "value",
"eventIds": "value",
"failed": "value",
"localCommitted": "value",
"pending": "value"
},
"status": "string",
"replayed": false
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:unlock
Release Record locks
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:unlock' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"locks":[{"id":"value","token":"value"}],"ids":["string"],"force":false}'application/json
| 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"unlockedCount": 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:updateMany
Update multiple Records
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:updateMany' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"update":{}}'application/json
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
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. Document actions are limited to 200 items, maxDocs must be at most 200, and the complete match set must fit the limit. false commits each document separately. |
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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"matchedCount": 0,
"modifiedCount": 0,
"delivery": {
"centerCommitted": "value",
"eventIds": "value",
"failed": "value",
"localCommitted": "value",
"pending": "value"
},
"status": "string",
"replayed": false
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/records:updateOne
Update one Record
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:updateOne' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'application/json
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
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 | Inserts if no record matches. The filter must specify equality on _id or equality for all fields of a ready unique index. Concurrent conflicts do not create duplicate records. |
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 the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"matchedCount": 0,
"modifiedCount": 0,
"upsertedId": "string",
"delivery": {
"centerCommitted": "value",
"eventIds": "value",
"failed": "value",
"localCommitted": "value",
"pending": "value"
},
"status": "string"
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/records:queryBatch
Query business Records in a batch
Query business Records in a batch.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/records:queryBatch' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"queries":["string"]}'application/json
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"results": {}
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
GET/uns/records:subscribe
Subscribe to authorized Record changes using SSE. Supply repeated collectionIds/recordIds query parameters, Accept: text/event-stream and optional Last-Event-ID. Notifications contain no business fields. Current key and App permissions are rechecked on every poll.
Subscribe to authorized Record changes using SSE. Supply repeated collectionIds/recordIds query parameters, Accept: text/event-stream and optional Last-Event-ID. Notifications contain no business fields. Current Key and App permissions are rechecked on every poll.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionIds | query | array<string> | No | Not specified in OpenAPI |
recordIds | query | array<string> | No | Not specified in OpenAPI |
Accept | header | string | Yes | Not specified in OpenAPI |
Last-Event-ID | header | string | No | Opaque resume cursor from the last SSE event id. |
Responses
200401403404409413422500503504
Success response example
200 · text/event-stream
"string"
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Server-Sent Events: change, heartbeat, or reset. Never contains business data. | text/event-stream |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/records:transact
Execute a cross-Collection business transaction
Atomically orchestrates query/check/read/create/update/replace/delete and result bindings across authorized Collections. record.query supports filter, sort, limit (default 20, maximum 100) and expectCount.min/max (asserts the total before limit). Later items may bind id=query.records.N.id from the same Collection and must omit a static id. Write each Record at most once. Query transactions use serializable isolation and Record locks; conflicts roll back the entire batch and never skip locked rows. Transactional join aggregation and allowPartial are unsupported. Use items arrays for ordinary same-kind operations. Idempotency keys are optional. Query accepted jobs by jobId; inspect business state before retrying a timeout.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/records:transact' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","mode":"auto","items":[{"update":"value","arrayFilters":"value","upsert":"value","opId":"value","action":"value"}],"dryRun":false,"assertLocks":[{"collectionId":"value","id":"value","token":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Not specified in OpenAPI |
assertLocks | array<object> | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/records:updateManyAtomic
Update all matching Records in one serializable transaction
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/records:updateManyAtomic' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"collectionId":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"update":{},"arrayFilters":[{}],"idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID owning the business Records and Samples. |
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 |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"matchedCount": 0,
"modifiedCount": 0,
"transactionTime": 0,
"replayed": false,
"dryRun": false
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
Streams
Stream APIs
POST/uns/stream-requests/grants/get
Inspect user RBAC eligibility or manage an App grant for a frozen Request release. Provide the native snapshot token or Cloud code and target revisions. User identities cannot activate per-Request grants.
Inspect user RBAC eligibility or manage an App grant for a frozen Request release. Provide the native snapshot token or Cloud code and target revisions. User identities cannot activate per-Request grants.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/stream-requests/grants/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"code":"string","principalKind":"app","principalID":"string"}'application/json
| 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"code": "string",
"principalKind": "app",
"principalID": "string",
"status": "string",
"bindingDigest": "string"
}
}Success response fields
200 · application/json
| 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 | AppRequestGrantView. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/stream-requests/grants/set
Inspect user RBAC eligibility or manage an App grant for a frozen Request release. Provide the native snapshot token or Cloud code and target revisions. User identities cannot activate per-Request grants.
Inspect user RBAC eligibility or manage an App grant for a frozen Request release. Provide the native snapshot token or Cloud code and target revisions. User identities cannot activate per-Request grants.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/stream-requests/grants/set' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"code":"string","principalKind":"app","principalID":"string","active":1,"actions":["stream.requests.read"]}'application/json
| 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 |
actions | array<string> | No | Not specified in OpenAPI |
expectedSnapshotToken | string | No | Not specified in OpenAPI |
expectedCodeRevision | integer | No | Not specified in OpenAPI |
expectedBindingDigest | string | No | Not specified in OpenAPI |
targetRevisions | array<object> | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"code": "string",
"principalKind": "app",
"principalID": "string",
"status": "string",
"bindingDigest": "string"
}
}Success response fields
200 · application/json
| 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 | AppRequestGrantView. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams:replace
Replace Stream configuration
Replaces the complete configuration under current domain rules. System fields are read-only. Credential, release, associated-resource and authorization checks still apply.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams:replace' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","expectedRevision":0,"replacement":{"description":"string","draft":{"name":"value","description":"value","script":"value","sources":"value","sourceBindings":"value"},"executionMode":"string","name":"string","schemaVersion":1},"dryRun":false,"idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | No | Optional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
replacement | object | Yes | StreamData. See the referenced schema in the Schemas section. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"matchedCount": 0,
"modifiedCount": 0,
"status": "validated",
"replayed": false
}
}Success response fields
200 · application/json
| 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 counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/streams/create
Create stream; schemaVersion is assigned by the server
draft describes the supported protocol, parameter Schema, JavaScript processor and output Schema. Creating a draft does not execute it. Full programs use the native Source/Stream API and SDK; storage policy is configured separately.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","description":"value","draft":"value","executionMode":"value","name":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/documents/create
Create a Stream document
Create a Stream document.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","document":{"name":"string","description":"string","model":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"]},"program":{"name":"string","description":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"],"sourceBindings":["value"]},"expectedSourceRevision":0}'application/json
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | Not specified in OpenAPI |
idempotencyKey | string | 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"activeRelease": 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/documents/disable
Disable a Stream document
Disable a Stream document.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/disable' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","expectedRevision":0,"dryRun":false,"idempotencyKey":"string","expectedActiveVersion":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Not specified in OpenAPI |
dryRun | boolean | Yes | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
expectedActiveVersion | string | Yes | Authoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"activeRelease": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/documents/get
Read a Stream document
Read a Stream document.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","view":"summary"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Positive decimal int64 identifier; always a string on the wire. |
view | string | No | summary requires only read permission and omits scripts and connection settings. full or an omitted value requires management permission. API Keys also require full_access, and MCP requires the corresponding management scope. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"activeRelease": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/documents/update
Update a Stream document
Update a Stream document.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0,"document":{"name":"string","description":"string","model":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"]}}'application/json
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"activeRelease": 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/documents/validate
Validate a Stream document
Validate a Stream document.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/validate' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"document":{"name":"string","description":"string","model":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"]},"id":"string","program":{"name":"string","description":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"],"sourceBindings":["value"]},"expectedSourceRevision":0}'application/json
| 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
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/draft/update
draft/update stream
Replaces the complete draft without changing existing releases. Call publish to create a new fixed release.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/draft/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","draft":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/get
Get one stream definition and revision, without data expansion
Reads only the object definition, ID and revision, without expanding business Records or Samples.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"kind": "stream",
"id": "string",
"revision": 0,
"data": {
"description": "value",
"draft": "value",
"executionMode": "value",
"name": "value",
"schemaVersion": "value"
},
"createdAt": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/list
List streams; archived=true selects archived objects only
Lists configuration by page/size/search; archived=true selects archived items only.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"size":0,"search":"string","archived":false}'application/json
| Field | Type | Required | Description |
|---|
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
archived | boolean | No | true lists archived objects only; false lists active objects only. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"asOf": 0,
"complete": false,
"hasMore": false,
"nextCursor": "string",
"nextPage": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/observation/get
Read Stream observations
Read Stream observations.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/observation/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"window": {
"from": "value",
"to": "value"
},
"diagnostics": {
"release": "value",
"streamRevision": "value",
"state": "value",
"stage": "value",
"evidence": "value"
},
"opcuaAcquisition": [
"value"
]
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/program/delete
Delete a Stream program
Delete a Stream program.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0}'application/json
| Field | Type | Required | Description |
|---|
dryRun | boolean | Yes | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
id | string | Yes | Positive decimal int64 identifier; always a string on the wire. |
expectedRevision | integer | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/program/deploy
program/deploy: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed
program/deploy: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/deploy' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"id":"string","expectedRevision":0,"expectedSourceRevision":0}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"activeRelease": 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/program/invoke
program/invoke: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed
program/invoke: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/invoke' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"id":"string","expectedActiveVersion":"string","entryId":"string"}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
expectedActiveVersion | string | Yes | Not specified in OpenAPI |
entryId | string | No | Not specified in OpenAPI |
input | object | Yes | Not specified in OpenAPI |
timeoutMs | integer | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/program/list
List Stream programs
List Stream programs.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"size":0,"search":"string","sourceId":"string","model":"string"}'application/json
| 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
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/program/rollback
program/rollback: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed
program/rollback: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/rollback' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"id":"string","expectedRevision":0,"expectedSourceRevision":0}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"activeRelease": 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/program/runs/get
program/runs/get: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed
program/runs/get: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/runs/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","runId":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
runId | string | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/program/runs/list
program/runs/list: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed
program/runs/list: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/runs/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","page":0,"size":0,"search":"string","status":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
status | string | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/program/test
program/test: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed
program/test: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/test' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"document":{"name":"string","description":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"],"sourceBindings":["value"]},"input":{"checkpointSample":"string","data":"string","previewWrites":false,"sourceSamples":{},"topicSamples":{}},"phase":"input"}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
document | object | Yes | RuntimeStreamDefinition. See the referenced schema in the Schemas section. |
input | object | Yes | RuntimeProgramTestInput. See the referenced schema in the Schemas section. |
phase | string | Yes | Not specified in OpenAPI |
entryId | string | No | Not specified in OpenAPI |
expectedSourceRevision | integer | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/program/versions/list
program/versions/list: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed
program/versions/list: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/versions/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","page":0,"size":0,"search":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/publish
Publish an immutable Stream release on its execution node
Creates an immutable release from the current draft; expectedRevision is the current Stream revision. Full programs use their native publishing lifecycle. Verify runtime state and delivered data after the call.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/publish' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/releases/get
Read one immutable shared transform release with parameter/output schemas; processor code is redacted
Read one immutable shared transform release with parameter/output schemas; processor code is redacted.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/releases/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","release":0}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
release | integer | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"streamId": "string",
"release": 0,
"publishedAt": 0,
"definition": {
"name": "value",
"description": "value",
"script": "value",
"sources": "value",
"sourceBindings": "value"
}
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/releases/list
List immutable shared transform releases in descending release order; this is not a program deployment version
List immutable shared transform releases in descending release order; this is not a program deployment version.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/releases/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","page":0,"size":0,"search":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"asOf": 0,
"complete": false,
"hasMore": false,
"nextCursor": "string",
"nextPage": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/releases/restore
Restore a shared release into the draft on the server, retaining hidden processor code; does not change enabled Bindings or publish a new release
Restore a shared release into the draft on the server, retaining hidden processor code; does not change enabled Bindings or publish a new release.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/releases/restore' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","release":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/runs/get
Read a redacted native Stream run receipt.
Read a redacted native Stream run receipt.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/runs/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"runId":"string"}'application/json
| Field | Type | Required | Description |
|---|
runId | string | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/runs/list
List Stream runs
List Stream runs.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/runs/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","page":0,"size":0,"search":"string","cursor":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | No | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
cursor | string | No | Opaque creation-time/id continuation bound; retain the same id and native filters. Mutually exclusive with page when nonempty. |
status | string | No | Not specified in OpenAPI |
sourceId | string | No | Not specified in OpenAPI |
topicId | string | No | Not specified in OpenAPI |
model | string | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"items": [
"value"
],
"list": [
"value"
],
"nextCursor": "string",
"page": 0,
"size": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/sample/test
Test Stream Samples
Test a Stream entry in an isolated Worker.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/sample/test' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"document":{"name":"string","description":"string","model":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"]},"entryId":"string","input":"string"}'application/json
| 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"status": "completed",
"errorCode": "string",
"snapshot": "string",
"entryId": "string",
"data": "string"
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/streams/update
Update stream metadata only; omitted fields are preserved
Updates only the basic information listed by this operation. Omitted fields retain their values. Schema, connections, drafts and grants use their own operations.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","expectedRevision":"value","name":"value","description":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
Sources
Source APIs
POST/uns/sources:replace
Replace Source configuration
Replaces the complete configuration under current domain rules. System fields are read-only. Credential, release, associated-resource and authorization checks still apply.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources:replace' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","expectedRevision":0,"replacement":{"adapter":"http-api","config":{"connection":"value"},"description":"string","name":"string","schemaVersion":1},"dryRun":false,"idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | No | Optional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
replacement | object | Yes | SourceData. See the referenced schema in the Schemas section. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
Responses
200default
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"matchedCount": 0,
"modifiedCount": 0,
"status": "validated",
"replayed": false
}
}Success response fields
200 · application/json
| 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 counts or object, plus commit or validation status. | application/json |
default | Operation failed. See error for the reason, rollback state and recovery advice. | application/json |
POST/uns/sources/credentials/list
List Edge-local shared Source credential references; never returns secrets; string Source IDs
List Edge-local shared Source credential references; never returns secrets; string Source IDs.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/credentials/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/devices/list
List currently attached physical devices on this Edge without reading input. Returns a fresh snapshot with checkedAt, revision, completeness and existing Source bindings. Serial discovery does not imply a supported serial acquisition driver.
List currently attached physical devices on this Edge without reading input. Returns a fresh snapshot with checkedAt, revision, completeness and existing Source bindings. Serial discovery does not imply a supported serial acquisition driver.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/devices/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"kind":"usb-hid"}'application/json
| Field | Type | Required | Description |
|---|
kind | string | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/discover
discover: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed
discover: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/discover' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","expectedRevision":0}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/documents/create
Create a Source document
Create a Source document.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","document":{"credentialRef":"string","description":"string","endpoint":"string","extensions":{"tls":"value","ingress":"value"},"file":{"caCertificate":"value","directories":"value","resources":"value","sshHostKey":"value","connectTimeoutMs":"value"}},"credentials":{"kind":"basic","username":"string","secret":"string","values":{},"certificateFileId":"string"},"items":[{"id":"value","document":"value","credentials":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
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
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/documents/credentials/update
Set or rotate encrypted credentials on the native Edge, including MQTT mTLS, file access and SQL login.
Set or rotate encrypted credentials on the native Edge, including MQTT mTLS, file access and SQL login.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/credentials/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0,"credentials":{"kind":"basic","username":"string","secret":"string","values":{},"certificateFileId":"string"}}'application/json
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | Yes | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
expectedRevision | integer | Yes | Expected revision read from the current object. On conflict, read again and decide; never 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
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/documents/delete
Delete a native Source using its current revision and dependency impact confirmation. Stops future connections and acquisition without a separate disable step; history is retained.
Delete a native Source using its current revision and dependency impact confirmation. Stops future connections and acquisition without a separate disable step; history is retained.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0,"confirmedImpactRevision":"string"}'application/json
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
expectedRevision | integer | Yes | Expected revision read from the current object. On conflict, read again and decide; never 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
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/documents/get
Read a Source document
Read a Source document.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","view":"summary"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Positive decimal int64 identifier; always a string on the wire. |
view | string | No | summary requires only read permission and omits scripts and connection settings. full or an omitted value requires management permission. API Keys also require full_access, and MCP requires the corresponding management scope. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"sourceType": "string",
"catalogId": "aws-iot-core"
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/documents/list
List Source documents
List Source documents.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"size":0,"search":"string","protocol":"http-api","health":"string"}'application/json
| 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"list": [
"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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/documents/oauth/complete
Complete the native OAuth flow with its stored one-time state.
Complete the native OAuth flow with its stored one-time state.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/oauth/complete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","state":"string","code":"string"}'application/json
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only, without committing. Validation does not reserve resources; execution checks them again. OAuth state creation and token exchange require execution. A preview is rejected. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
state | string | Yes | Not specified in OpenAPI |
code | string | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/documents/oauth/start
Start native OAuth authorization; secrets remain encrypted on the Source installation.
Start native OAuth authorization; secrets remain encrypted on the Source installation.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/oauth/start' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","redirectUri":"string"}'application/json
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only, without committing. Validation does not reserve resources; execution checks them again. OAuth state creation and token exchange require execution. A preview is rejected. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
redirectUri | string | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/documents/state/update
Enable or disable Source connections with revision and dependency confirmation; configuration, Stream documents and history are retained.
Enable or disable Source connections with revision and dependency confirmation; configuration, Stream documents and history are retained.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/state/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"id":"string","expectedRevision":0,"desiredState":"enabled","idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
dryRun | boolean | Yes | Not specified in OpenAPI |
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Not specified in OpenAPI |
desiredState | string | Yes | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
confirmedImpactRevision | string | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/documents/update
Update a Source document
Update a Source document.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0,"document":{"credentialRef":"string","description":"string","endpoint":"string","extensions":{"tls":"value","ingress":"value"},"file":{"caCertificate":"value","directories":"value","resources":"value","sshHostKey":"value","connectTimeoutMs":"value"}}}'application/json
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
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
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/history
Read Source revision history
Read durable revision history for a local Source.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/history' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","beforeRevision":0,"size":0}'application/json
| 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"sourceID": "string",
"currentRevision": 0,
"deleted": 1,
"total": 0,
"missingRevisionCount": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/impact
Assess Source change impact
Assess Source change impact.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/impact' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","expectedRevision":0,"action":"update","document":{"credentialRef":"string","description":"string","endpoint":"string","extensions":{"tls":"value","ingress":"value"},"file":{"caCertificate":"value","directories":"value","resources":"value","sshHostKey":"value","connectTimeoutMs":"value"}},"offset":0}'application/json
| 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
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/observations/get
Read Source observations
Read Source observations.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/observations/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"items":[{"id":"value","expectedRevision":"value"}],"view":"summary"}'application/json
| 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
200401403404409413422500503504
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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/opcua/endpoints
Discover SignAndEncrypt with Basic256Sha256 at the supplied OPC UA address. Does not create a Source or device session, accept certificates or write device data.
Discover SignAndEncrypt with Basic256Sha256 at the supplied OPC UA address. Does not create a Source or device session, accept certificates or write device data.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/opcua/endpoints' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"endpoint":"string"}'application/json
| Field | Type | Required | Description |
|---|
endpoint | string | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"endpoint": "string",
"securityMode": "SignAndEncrypt",
"securityPolicy": "Basic256Sha256"
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/opcua/points/discover
Browse child nodes or describe up to 100 explicit OPC UA Variable references on the selected Source. The selectors are mutually exclusive.
Browse child nodes or describe up to 100 explicit OPC UA Variable references on the selected Source. The selectors are mutually exclusive.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/opcua/points/discover' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"id":"string","expectedRevision":0,"parentResourceRef":"string"}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
expectedRevision | integer | Yes | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
parentResourceRef | string | No | Not specified in OpenAPI |
resourceRefs | array<string> | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string"
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/probe
probe: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed
probe: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed.
Writes require the current identity's corresponding permissions. Consult this operation's Schema for supported validation, idempotency and revision guards.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/probe' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"id":"string","timeoutMs":0,"mode":"connection"}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
timeoutMs | integer | Yes | Not specified in OpenAPI |
mode | string | No | connection performs a bounded lightweight check; data explicitly validates a configured readable resource without writing business data. Only enabled Sources are periodically checked every 10 minutes on their owning runtime. Cloud never schedules checks for Edge references. Data checks never replace connection health. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"mode": "connection",
"health": "healthy",
"stage": "string",
"errorCode": "string",
"message": "string"
}
}Success response fields
200 · application/json
| 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 | Executed checks return SourceCheckResult fields; dryRun returns validated:true and sideEffects:false without performing a check. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/protocols/list
protocols/list: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed
protocols/list: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/protocols/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'application/json
This request body has no declared object fields in OpenAPI.
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/resources/catalog
Describe the read-only resources declared on this native Source, including mode, parameters, result shape and required permission.
Describe the read-only resources declared on this native Source, including mode, parameters, result shape and required permission.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/resources/catalog' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","configRevision":0}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
configRevision | integer | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"id": "string",
"configRevision": 0,
"protocol": "string",
"sourceType": "string",
"resources": [
"value"
]
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/resources/preview
Perform one bounded read on an enabled native Source at the specified revision. Use the instance catalog for supported parameters and output fields.
Perform one bounded read on an enabled native Source at the specified revision. Use the instance catalog for supported parameters and output fields.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/resources/preview' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","configRevision":0,"resourceRef":"string","params":{"limit":0,"createdDateTimeBegin":"string","createdDateTimeEnd":"string","material":"string","baseUnit":"string"},"timeoutMs":0}'application/json
| 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"resourceRef": "string",
"configRevision": 0,
"collectedAt": 0,
"items": [
"value"
],
"returned": 0
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/resources/scan
Read one bounded native page of a resource declared by this Source. Pass the issued opaque cursor unchanged with the same parameters, caller, resource and revision.
Read one bounded native page of a resource declared by this Source. Pass the issued opaque cursor unchanged with the same parameters, caller, resource and revision.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/resources/scan' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","configRevision":0,"resourceRef":"string","cursor":"string","params":{"maxItems":0,"createdDateTimeBegin":"string","createdDateTimeEnd":"string","material":"string","baseUnit":"string"}}'application/json
| 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"resourceRef": "string",
"configRevision": 0,
"collectedAt": 0,
"items": [
"value"
],
"nextCursor": "string"
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/runtime/get
Read observed Source and per-Stream acquisition health, pagination checkpoint, counts and last error; no payloads or credentials
Read observed Source and per-Stream acquisition health, pagination checkpoint, counts and last error; no payloads or credentials.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/runtime/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string"}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"sourceId": "string",
"revision": 0,
"state": {
"schemaVersion": "value",
"health": "value",
"healthMessage": "value",
"lastDataAt": "value",
"checkedAt": "value"
}
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/runtime/read
Read one Modbus range on this Edge using an enabled native Source at exactly configRevision; fixed read operation; endpoint, credentials and unit ID remain local; no subscriptions or writes
Read one Modbus range on this Edge using an enabled native Source at exactly configRevision; fixed read operation; endpoint, credentials and unit ID remain local; no subscriptions or writes.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/runtime/read' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":"string","configRevision":0,"range":{"id":"string","table":"holding-register","address":0,"quantity":0},"timeoutMs":0}'application/json
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
configRevision | integer | Yes | Not specified in OpenAPI |
range | object | Yes | Not specified in OpenAPI |
timeoutMs | integer | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/sources/validate
validate: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed
validate: reuse the existing Source/Stream runtime lifecycle; runtime IDs are positive decimal strings; no shared release is implicitly deployed.
Reads are constrained by the current caller's permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/validate' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"document":{"credentialRef":"string","description":"string","endpoint":"string","extensions":{"tls":"value","ingress":"value"},"file":{"caCertificate":"value","directories":"value","resources":"value","sshHostKey":"value","connectTimeoutMs":"value"}}}'application/json
| Field | Type | Required | Description |
|---|
document | object | Yes | SourceDefinition. See the referenced schema in the Schemas section. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {}
}Success response fields
200 · application/json
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
Time Series Data
Append Samples, query multiple Records, aggregate, read latest values and delete within explicit time ranges. Latest values always refer to actual Samples.
POST/uns/collections/{collectionId}/records/{recordId}/samples
Append Samples
Uses collectionId, dryRun, an items array and optional mode. Defaults to whole-batch rollback. allowPartial=true independently commits items and returns results in input order, with error.code/path/reason/repair per failure. For partiallyCommitted, inspect summary and jobId. dryRun validates only. Idempotency keys and Record revisions are optional. Query accepted jobs by jobId; never automatically resubmit an unknown outcome. Sample requests require recordId alongside collectionId and items; items contain time/data and optional quality and cannot override the parent Record.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
recordId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records/{recordId}/samples' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"time":"value","quality":"value","data":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"jobId": "string",
"nextIndex": 0,
"replayed": false,
"results": [
"value"
],
"status": "committed"
}
}Success response fields
200 · application/json
| 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 | Outcome. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/samples:aggregate
Aggregate Samples
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:aggregate' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"recordIds":["string"],"from":0,"to":0,"pipeline":["string"],"limit":0}'application/json
| Field | Type | Required | Description |
|---|
recordIds | array<string> | No | In rows mode, accepts up to 20 IDs. Omission uses the authorized scope. In series mode, IDs are required and are paginated in request order. |
from | integer | Yes | Inclusive start time in Unix milliseconds. |
to | integer | Yes | Exclusive end time in Unix milliseconds. Must be 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. |
resultFormat | string | No | rows returns a list of aggregation documents. series paginates the supplied Record IDs. Each outer item is {recordId, items}, with an empty items array if no Samples match. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"items": [
"value"
],
"pageInfo": {
"mode": "value",
"hasMore": "value",
"nextCursor": "value",
"nextPage": "value",
"snapshotScope": "value"
},
"total": {
"count": "value",
"capped": "value"
}
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/samples:delete
Delete Samples for specified Records within a time range
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"recordIds":["string"],"from":0,"to":0,"dryRun":false}'application/json
| Field | Type | Required | Description |
|---|
recordIds | array<string> | Yes | List of Record IDs, with no Collection IDs. |
from | integer | Yes | Time range start, Unix milliseconds. |
to | integer | Yes | Time range end, Unix milliseconds. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"deletedCount": 0,
"dryRun": false
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/samples:deleteExact
Delete explicit Sample identities atomically
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:deleteExact' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"samples":[{"recordId":"value","id":"value","time":"value"}],"dryRun":false,"idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
samples | array<object> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Not specified in OpenAPI |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"deletedCount": 0,
"missingCount": 0,
"dryRun": false
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/samples:find
Find Samples
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:find' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"recordIds":["string"],"from":0,"to":0,"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'application/json
| 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. Must be 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
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"items": [
"value"
],
"pageInfo": {
"mode": "value",
"hasMore": "value",
"nextCursor": "value",
"nextPage": "value",
"snapshotScope": "value"
}
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/uns/collections/{collectionId}/samples:latest
Read the latest Sample of each Record
4.0 document operation. Use bare business fields and _id/_meta.* for system fields; sort is [[field,1|-1]]. dryRun defaults to false. Consult this operation's Schema for limits, atomicity and response shape.
Request parameters
| Name | Location | Type | Required | Description |
|---|
collectionId | path | string | Yes | Not specified in OpenAPI |
X-Fleet-Node-Id | header | string | No | Registered Edge target. Omit for local execution. Requires Fleet and native operation permissions; no arbitrary URL forwarding. |
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:latest' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"recordIds":["string"]}'application/json
| Field | Type | Required | Description |
|---|
recordIds | array<string> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"series": [
"value"
]
}
}Success response fields
200 · application/json
| 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 | Read results or operation status: validated means validation only; committed means committed; accepted requires checking the final status. | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
Instance Identity and Users
Shared by platform integrations and business Apps subject to permissions; Apps require the corresponding platformPermissions. identity/get verifies the current Key identity; info/get reads platform information. users/list and projects/members/list require platform permissions. Listing users does not grant an App access to their business data.
POST/apps/access-members/list
List App access members
An App Key can only query deployed-role members of its own App. Grant timestamps come from current effective direct or group grants. Older grants without a recorded time return grantedAt=0; timestamp filtering involving these members returns 503. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/apps/access-members/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"appId":"string","roleKeys":["string"],"grantedAtStart":0,"grantedAtEnd":0,"scope":""}'application/json
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
roleKeys | array<string> | No | Not specified in OpenAPI |
grantedAtStart | integer (int64) | No | Start of the authorization period in Unix milliseconds. |
grantedAtEnd | integer (int64) | No | End of the authorization period in Unix milliseconds. |
scope | string | No | Not specified in OpenAPI |
page | integer (int64) | No | Page number. Uses page 1 when omitted or set to 0. |
size | integer (int64) | No | Results per page, up to 100. Uses 20 when omitted or set to 0. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"appId": "string",
"published": 0,
"productionVersionId": "string",
"allActiveMembers": 0,
"roles": [
"value"
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/auth/whoami
Read SDK caller identity
Returns the API Key's current identity and effective permissions. Request body may be omitted; a nonempty body requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/auth/whoami' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'application/json
This request body has no declared object fields in OpenAPI.
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"userID": 0,
"userName": "string",
"email": "string",
"workspaceID": 0,
"workspaceName": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
401 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
403 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
404 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
409 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
413 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
415 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
422 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
429 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
500 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
503 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
504 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
POST/capabilities/discover
Discover capabilities available to the current identity
Read-only assessment of registered operations and platform prerequisites; does not replace target resource checks. Accepts only an empty JSON object (maximum 4 KiB), with no query parameters.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/capabilities/discover' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'application/json
This request body has no declared object fields in OpenAPI.
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"product": "cloud",
"productVersion": "string",
"contractVersion": "2.0",
"apiContractVersions": [
"string"
],
"sdkContractVersions": [
"string"
]
}Success response fields
200 · application/json
| 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 | Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
401 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
403 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
404 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
409 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
413 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
415 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
422 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
429 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
500 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
503 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
504 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
POST/info
Read SDK platform information
No credentials required. Returns the API version, public MQTT address and registered public API capability families. capabilities describes route families, not caller authorization; read effective permissions through auth/whoami or platform/info/get. Request body may be omitted; a nonempty body requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/info' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'application/json
This request body has no declared object fields in OpenAPI.
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"name": "string",
"version": "string",
"mqttBroker": "string",
"capabilities": [
"value"
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/mqtt-auth/create
Create ordinary MQTT credentials
Requires full_access and a non-App Key. The password is returned only on successful creation. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/mqtt-auth/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"name":"string","description":"string","clientIDRandomSuffixEnabled":false}'application/json
| Field | Type | Required | Description |
|---|
name | string | Yes | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
clientIDRandomSuffixEnabled | boolean | No | Not specified in OpenAPI |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"id": 0,
"name": "string",
"clientID": "string",
"username": "string",
"password": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/mqtt-auth/delete
Delete ordinary MQTT credentials
Requires full_access and a non-App Key. System credentials are unaffected. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/mqtt-auth/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"id":0}'application/json
| Field | Type | Required | Description |
|---|
id | integer (int64) | Yes | Regular MQTT credential ID. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"success": false
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/platform/getMembers
List Workspace members
App callers receive only fields needed for directory use. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/platform/getMembers' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"keyword":"string","roleKey":"string","roles":["string"],"statuses":["string"],"updatedAtStart":"string"}'application/json
| Field | Type | Required | Description |
|---|
keyword | string | No | Not specified in OpenAPI |
roleKey | string | No | Not specified in OpenAPI |
roles | array<string> | No | Not specified in OpenAPI |
statuses | array<string> | No | Not specified in OpenAPI |
updatedAtStart | string | No | Not specified in OpenAPI |
updatedAtEnd | string | No | Not specified in OpenAPI |
page | integer (int64) | No | Page number. Uses page 1 when omitted or set to 0. |
size | integer (int64) | No | Results per page, up to 100. Uses 20 when omitted or set to 0. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"list": [
"value"
],
"total": 0,
"page": 0,
"size": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/platform/identity/get
Read the current caller identity
Returns the trusted subject and grants associated with the API Key, never the secret. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/platform/identity/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'application/json
This request body has no declared object fields in OpenAPI.
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"userId": "string",
"userName": "string",
"authType": "string",
"apiKeyId": "string",
"appId": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/platform/info/get
Read platform information
Reads current instance information without changing configuration. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/platform/info/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'application/json
This request body has no declared object fields in OpenAPI.
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"name": "string",
"version": "string",
"apiVersion": "v2",
"capabilities": [
"value"
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/platform/projects/members/list
List project members
projectId is a positive decimal project ID string. The API Key owner must have access to this project. App Keys also require platform.projects.members.read. This operation neither adds members nor grants permissions. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/platform/projects/members/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"projectId":"string","page":0,"size":0}'application/json
| Field | Type | Required | Description |
|---|
projectId | string | Yes | Target project ID as a positive integer string. |
page | integer (int64) | No | Page number. Uses page 1 when omitted or set to 0. |
size | integer (int64) | No | Results per page, up to 100. Uses 20 when omitted or set to 0. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"list": [
"value"
],
"total": 0,
"page": 0,
"size": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/platform/users/list
Find platform users by page
Searches users by text under the intersection of current Key and owner permissions. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/platform/users/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"search":"string","page":0,"size":0,"roleKeys":["string"],"statuses":["active"]}'application/json
| Field | Type | Required | Description |
|---|
search | string | No | Search text for supported fields such as usernames and display names. |
page | integer (int64) | No | Page number. Uses page 1 when omitted or set to 0. |
size | integer (int64) | No | Results per page, up to 100. Uses 20 when omitted or set to 0. |
roleKeys | array<string> | No | Matches any specified platform role. |
statuses | array<string> | No | Not specified in OpenAPI |
updatedAtStart | string (date-time) | No | Start of the last-update time range, in RFC3339 format. |
updatedAtEnd | string (date-time) | No | End of the last-update time range, in RFC3339 format. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"list": [
"value"
],
"total": 0,
"page": 0,
"size": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
Notifications
Shared by platform integrations and business Apps subject to permissions; Apps require the corresponding platformPermissions. send creates an inbox notification using a stable idempotency key; status/get reads the status of messages created by the same caller. Creation does not mean the recipient has read the message. Notifications are outside UNS batch transactions.
POST/notifications/get
Read SDK notification send status
Only reads messages created by the current API Key. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"messageId":"string"}'application/json
| Field | Type | Required | Description |
|---|
messageId | string | Yes | Not specified in OpenAPI |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"messageId": "string",
"type": "string",
"status": "string",
"createdAt": "string",
"completedAt": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
messageId | string | Yes | See the referenced schema in the Schemas section. |
type | string | Yes | See the referenced schema in the Schemas section. |
status | string | Yes | See the referenced schema in the Schemas section. |
createdAt | string (date-time) | Yes | See the referenced schema in the Schemas section. |
completedAt | string (date-time) | No | 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. |
recipientUserId | string | Yes | See the referenced schema in the Schemas section. |
recipientName | string | No | See the referenced schema in the Schemas section. |
channels | array<object> | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
401 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
403 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
404 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
409 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
413 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
415 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
422 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
429 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
500 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
503 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
504 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
POST/notifications/list
Query SDK notification send history
Normally restricted to this Key. A personal Key with Workspace management permission can read instance send history. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"size":0,"messageId":"string","recipientUserId":"string","status":""}'application/json
| Field | Type | Required | Description |
|---|
page | integer (int64) | No | Page number. |
size | integer (int64) | No | Results per page. |
messageId | string | No | Not specified in OpenAPI |
recipientUserId | string | No | Not specified in OpenAPI |
status | string | No | Not specified in OpenAPI |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"list": [
{
"messageId": "value",
"type": "value",
"status": "value",
"createdAt": "value",
"completedAt": "value"
}
],
"total": 0,
"page": 0,
"size": 0
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | See the referenced schema in the Schemas section. |
total | integer (int64) | Yes | See the referenced schema in the Schemas section. |
page | integer (int64) | Yes | See the referenced schema in the Schemas section. |
size | integer (int64) | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
401 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
403 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
404 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
409 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
413 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
415 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
422 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
429 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
500 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
503 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
504 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
POST/notifications/send
Send an inbox notification
The server derives sender from the trusted identity; clients cannot supply it. Retry with the same idempotencyKey and request. A sent status does not mean the recipient has read it. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/send' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"recipientUserId":"string","type":"inbox","title":"string","content":"string","idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
recipientUserId | string | Yes | Recipient user ID as a positive integer string to preserve large integer precision. |
type | string | No | Not specified in OpenAPI |
title | string | Yes | Not specified in OpenAPI |
content | string | Yes | Not specified in OpenAPI |
idempotencyKey | string | Yes | Not specified in OpenAPI |
mode | string | No | Not specified in OpenAPI |
link | string | No | Business link starting with http://, https://, or /. Credentials, protocol-relative URLs, and control characters are forbidden. |
channels | array<string> | No | Omit or pass an empty array to send a silent inbox message. Enterprise accepts web/mobile metadata without sending external push notifications. The get operation returns not_configured for external channels. sent means the message was persisted in the local inbox. |
source | string | No | Not specified in OpenAPI |
wechatEventRef | string | No | Not specified in OpenAPI |
sender | object | No | Not specified in OpenAPI |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"messageId": "string",
"type": "string",
"status": "string",
"createdAt": "string",
"completedAt": "string"
},
"messageId": "string"
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. |
messageId | string | Yes | See the referenced schema in the Schemas section. |
type | string | No | See the referenced schema in the Schemas section. |
status | string | Yes | See the referenced schema in the Schemas section. |
createdAt | string (date-time) | Yes | See the referenced schema in the Schemas section. |
completedAt | string (date-time) | No | 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. |
recipientUserId | string | Yes | See the referenced schema in the Schemas section. |
recipientName | string | No | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
401 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
403 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
404 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
409 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
413 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
415 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
422 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
429 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
500 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
503 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
504 | Request failed. Handle the status and error code; do not bypass permission failures. | application/json |
POST/notifications/status/get
Read notification send status
Only reads messageId values created by the current caller. Inaccessible messages do not reveal their existence. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/status/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"messageId":"string"}'application/json
| Field | Type | Required | Description |
|---|
messageId | string | Yes | Message ID returned by send. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"messageId": "string",
"type": "string",
"status": "string",
"createdAt": "string",
"completedAt": "string"
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
Files and Attachments
Shared by platform integrations and business Apps subject to permissions; Apps require the corresponding platformPermissions. POST operations are the JSON control plane. GET assets/files/url uses query parameters; GET assets/files/download returns 302/Location. Single file: obtain a signed form with uploads/create, then upload binary content directly to upload.url with upload.fields. Large file: multipart/create, obtain part PUT URLs with parts, upload parts, then submit their ETags with complete; use abort on failure. downloads/create returns a short-lived download URL. File permissions follow the authenticated caller; clients cannot impersonate App ownership.
POST/assets/files
Request an SDK file upload
Returns signed form fields. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"fileName":"string","contentType":"string","size":0,"visibility":"private","business":"string"}'application/json
| Field | Type | Required | Description |
|---|
fileName | string | Yes | Nonempty original filename. Disallowed extensions include html and php. |
contentType | string | No | Optional file MIME type, such as application/pdf. |
size | integer (int64) | Yes | File size in bytes. |
visibility | string | No | With private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use. |
business | string | No | Not specified in OpenAPI |
useBy | string | No | Not specified in OpenAPI |
appInstanceId | string | No | Not specified in OpenAPI |
sessionId | string | No | Optional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"fileId": 0,
"filePath": "string",
"fileUrl": "string",
"postUrl": "string",
"postFields": {}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/assets/files/delete
Delete an SDK file
Deletes a file the caller may manage. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"filePath":"string"}'application/json
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Managed file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"deleted": false
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
GET/assets/files/download
Download an SDK file
Checks file permissions and redirects to the download URL.
Request parameters
| Name | Location | Type | Required | Description |
|---|
filePath | query | string | Yes | Not specified in OpenAPI |
responseContentDisposition | query | string | No | Not specified in OpenAPI |
Responses
302400401403404409413415422429500503504
Response status meanings
| Status | Meaning | Media type |
|---|
302 | Redirect to an authorized file URL. | — |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/assets/files/multipart/abort
Abort an SDK multipart upload
Revokes the specified multipart session. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/multipart/abort' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"fileKey":"string","uploadId":"string"}'application/json
| Field | Type | Required | Description |
|---|
fileKey | string | Yes | File identifier returned by multipart initialization. |
uploadId | string | Yes | Session identifier returned by multipart initialization. Use it together with filePath exactly as returned. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"aborted": 1
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/assets/files/multipart/complete
Complete an SDK multipart upload
Submit part numbers and ETags after all parts are uploaded. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/multipart/complete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"fileKey":"string","uploadId":"string","parts":[{"partNumber":"value","etag":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
fileKey | string | Yes | File identifier returned by multipart initialization. |
uploadId | string | Yes | Session identifier returned by multipart initialization. Use it together with filePath exactly as returned. |
parts | array<object> | Yes | Not specified in OpenAPI |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"filePath": "string",
"fileUrl": "string",
"sizeBytes": 0,
"expiresAt": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/assets/files/multipart/init
Initialize an SDK multipart upload
Returns a file identity and multipart session. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/multipart/init' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"fileName":"string","contentType":"string","size":0,"visibility":"private","business":"string"}'application/json
| Field | Type | Required | Description |
|---|
fileName | string | Yes | Nonempty original filename. Disallowed extensions include html and php. |
contentType | string | No | Optional file MIME type, such as application/pdf. |
size | integer (int64) | Yes | File size in bytes. |
visibility | string | No | With private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use. |
business | string | No | Not specified in OpenAPI |
useBy | string | No | Not specified in OpenAPI |
appInstanceId | string | No | Not specified in OpenAPI |
sessionId | string | No | Optional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace. |
partSize | integer (int64) | No | Bytes. |
bizId | string | No | Not specified in OpenAPI |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"fileKey": "string",
"filePath": "string",
"uploadId": "string",
"partSize": 0,
"partCount": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/assets/files/multipart/part-urls
Read SDK multipart upload links
Upload each part to its corresponding signed URL. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/multipart/part-urls' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"fileKey":"string","uploadId":"string","partNumbers":[0]}'application/json
| Field | Type | Required | Description |
|---|
fileKey | string | Yes | File identifier returned by multipart initialization. |
uploadId | string | Yes | Session identifier returned by multipart initialization. Use it together with filePath exactly as returned. |
partNumbers | array<integer (int64)> | Yes | Not specified in OpenAPI |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"partUrls": [
"value"
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
GET/assets/files/url
Read an SDK file URL
Issues an access link after checking file permissions.
Request parameters
| Name | Location | Type | Required | Description |
|---|
filePath | query | string | Yes | Not specified in OpenAPI |
expiredSec | query | integer (int64) | No | Not specified in OpenAPI |
responseContentDisposition | query | string | No | Not specified in OpenAPI |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"fileUrl": "string",
"expiresAt": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/assets/upload
Request an SDK asset upload
Returns signed form fields; the storage service creates the file object identity. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/upload' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"fileName":"string","sizeBytes":0,"contentType":"string","size":0,"sha256":"string"}'application/json
| Field | Type | Required | Description |
|---|
fileName | string | Yes | Nonempty original filename. Disallowed extensions include html and php. |
sizeBytes | integer (int64) | Yes | Declared file size in bytes. Direct and multipart uploads each support up to 1 GiB. |
contentType | string | No | Optional file MIME type, such as application/pdf. |
size | integer (int64) | No | Not specified in OpenAPI |
sha256 | string | No | Not specified in OpenAPI |
storageKey | string | No | Not specified in OpenAPI |
isPublic | boolean | No | Not specified in OpenAPI |
business | string | No | Not specified in OpenAPI |
useBy | string | No | Not specified in OpenAPI |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"filePath": "string",
"fileUrl": "string",
"postUrl": "string",
"postFields": {}
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/files/delete
Delete a file
Deletes a file the current caller may manage. Use filePath returned by uploads/create or multipart/complete. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/delete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"filePath":"string"}'application/json
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Managed file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"filePath": "string",
"deleted": false
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/files/downloads/create
Create a file download link
Creates a time-limited download URL after checking file access. The URL is a temporary credential; do not expose it in public logs. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/downloads/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"filePath":"string","expiresInSeconds":0}'application/json
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Managed file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding. |
expiresInSeconds | integer (int64) | No | Requested URL lifetime in seconds. Uses the server default when omitted or set to 0, with a maximum of 7 days. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"filePath": "string",
"url": "string",
"expiresAt": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/files/uploads/create
Create file upload credentials
Creates upload credentials only. The caller must still submit the file to upload.url with upload.fields and the upload.fileField file field. This response does not mean the file is uploaded. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/uploads/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"fileName":"string","contentType":"string","sizeBytes":0,"visibility":"private","sessionId":"string"}'application/json
| Field | Type | Required | Description |
|---|
fileName | string | Yes | Nonempty original filename. Disallowed extensions include html and php. |
contentType | string | No | Optional file MIME type, such as application/pdf. |
sizeBytes | integer (int64) | Yes | Declared file size in bytes. Direct and multipart uploads each support up to 1 GiB. |
visibility | string | No | With private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use. |
sessionId | string | No | Optional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"fileId": "string",
"filePath": "string",
"upload": {
"method": "value",
"url": "value",
"fields": "value",
"fileField": "value"
},
"expiresAt": 0,
"sizeBytes": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/files/uploads/multipart/abort
Abort a multipart upload
Cancels an unfinished multipart session. Use files/delete to delete a completed file. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/uploads/multipart/abort' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"filePath":"string","uploadId":"string"}'application/json
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Managed file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding. |
uploadId | string | Yes | Session identifier returned by multipart initialization. Use it together with filePath exactly as returned. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"filePath": "string",
"aborted": false
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/files/uploads/multipart/complete
Complete a multipart upload
Submits part numbers and ETags only after all parts are uploaded. Associate filePath with business Records after success. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/uploads/multipart/complete' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"filePath":"string","uploadId":"string","parts":[{"partNumber":"value","etag":"value"}]}'application/json
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Managed file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding. |
uploadId | string | Yes | Session identifier returned by multipart initialization. Use it together with filePath exactly as returned. |
parts | array<object> | Yes | Not specified in OpenAPI |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"fileId": "string",
"filePath": "string",
"url": "string",
"sizeBytes": 0,
"expiresAt": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/files/uploads/multipart/create
Initialize a multipart upload
Creates a multipart session. Split the file using returned partSizeBytes/partCount; the file is not uploaded yet. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/uploads/multipart/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"fileName":"string","contentType":"string","sizeBytes":0,"visibility":"private","sessionId":"string"}'application/json
| Field | Type | Required | Description |
|---|
fileName | string | Yes | Nonempty original filename. Disallowed extensions include html and php. |
contentType | string | No | Optional file MIME type, such as application/pdf. |
sizeBytes | integer (int64) | Yes | Declared file size in bytes. Direct and multipart uploads each support up to 1 GiB. |
visibility | string | No | With private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use. |
sessionId | string | No | Optional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace. |
partSizeBytes | integer (int64) | No | Requested part size in bytes. Omit, set to 0, or supply less than 5 MiB to use 10 MiB. Use the actual part size returned in the response. |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"filePath": "string",
"uploadId": "string",
"partSizeBytes": 0,
"partCount": 0,
"expiresAt": 0
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
POST/files/uploads/multipart/parts
Create multipart upload links
Obtains a separate signed URL for each partNumber. Save every uploaded part's ETag for complete. Requires a single JSON object with Content-Type: application/json, maximum 1 MiB; unknown fields are rejected.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/files/uploads/multipart/parts' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"filePath":"string","uploadId":"string","partNumbers":[0]}'application/json
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Managed file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding. |
uploadId | string | Yes | Session identifier returned by multipart initialization. Use it together with filePath exactly as returned. |
partNumbers | array<integer (int64)> | Yes | Not specified in OpenAPI |
Responses
200400401403404409413415422429500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": {
"list": [
"value"
]
}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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. Upload credentials do not mean a file is uploaded; notification acceptance does not mean a recipient has read it. | application/json |
400 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
401 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
403 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
404 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
409 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
413 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
415 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
422 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
429 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
500 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
503 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
504 | Request failed. Handle code/msg; do not bypass permission failures. | application/json |
Stream Requests
Discover contracts by public Request code and invoke them synchronously. Discovery and invocation permissions are independent. Apps also require current Stream policy and a grant for the frozen contract release; this does not grant Source/Stream management permissions.
POST/stream-requests/{requestCode}/describe
Describe a Stream Request contract
Requires stream.requests.read or stream.requests.manage. requestCode belongs only in the URL path; send {} as the body. Returns the active public contract itself, excluding internal Stream bindings. Content-Type: application/json. Body must be one valid UTF-8 object, maximum 1 MiB. Unknown/duplicate fields and query parameters are rejected. Errors are flat {errorCode,message}.
Request parameters
| 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}/describe' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'application/json
This request body has no declared object fields in OpenAPI.
Responses
200400401403404409422429500502503504
Success response example
200 · application/json
{
"code": "string",
"name": "string",
"description": "string",
"contractVersion": "string",
"inputSchema": {}
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | string | Yes | See the referenced schema in the Schemas section. |
name | string | Yes | See the referenced schema in the Schemas section. |
description | string | Yes | See the referenced schema in the Schemas section. |
contractVersion | string | Yes | See the referenced schema in the Schemas section. |
inputSchema | object | 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. |
idempotency | string | Yes | See the referenced schema in the Schemas section. |
timeoutMs | integer (int64) | Yes | See the referenced schema in the Schemas section. |
status | string | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Flat public result, without a code/msg/requestId/data envelope. | application/json |
400 | STREAM_REQUEST_INVALID_INPUT | application/json |
401 | INVALID_CREDENTIAL | application/json |
403 | STREAM_REQUEST_FORBIDDEN | application/json |
404 | STREAM_REQUEST_NOT_FOUND | application/json |
409 | STREAM_REQUEST_INACTIVE / IDEMPOTENCY_CONFLICT | application/json |
422 | STREAM_REQUEST_OUTPUT_INVALID | application/json |
429 | STREAM_REQUEST_RATE_LIMITED | application/json |
500 | STREAM_REQUEST_INTERNAL_ERROR | application/json |
502 | SOURCE_PROTOCOL_ERROR | application/json |
503 | STREAM_REQUEST_UNAVAILABLE | application/json |
504 | STREAM_REQUEST_RESULT_UNKNOWN | application/json |
POST/stream-requests/{requestCode}/invoke
Invoke a Stream Request
Requires stream.requests.invoke; write contracts also require stream.requests.write. Discovery permission is unnecessary. requestCode belongs only in the URL path. input is required; send null when there is no business input. Follow the contract idempotency policy. Success is a flat result and status is always succeeded. HTTP 504 / STREAM_REQUEST_RESULT_UNKNOWN means an unknown outcome: do not treat it as execution failure or automatically retry with a new idempotency key. Content-Type: application/json. Body must be one valid UTF-8 object, maximum 1 MiB. Unknown/duplicate fields and query parameters are rejected. Errors are flat {errorCode,message}.
Request parameters
| 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 '{"input":"string","idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
input | object | Yes | Required. Accepts any JSON value that conforms to the contract inputSchema. Pass null when there is no business input. |
idempotencyKey | string | No | Up to 128 UTF-8 bytes without surrounding whitespace. A write/required contract requires a nonempty, durable key. Replays must reuse the same key and input. |
Responses
200400401403404409422429500502503504
Success response example
200 · application/json
{
"code": "string",
"contractVersion": "string",
"result": "string",
"runID": "string",
"status": "succeeded"
}Success response fields
200 · application/json
| 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. |
result | object | Yes | Business result that conforms to the contract outputSchema. May be null. |
runID | string | Yes | See the referenced schema in the Schemas section. |
status | string | Yes | See the referenced schema in the Schemas section. |
replayed | boolean | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Flat public result, without a code/msg/requestId/data envelope. | application/json |
400 | STREAM_REQUEST_INVALID_INPUT | application/json |
401 | INVALID_CREDENTIAL | application/json |
403 | STREAM_REQUEST_FORBIDDEN | application/json |
404 | STREAM_REQUEST_NOT_FOUND | application/json |
409 | STREAM_REQUEST_INACTIVE / IDEMPOTENCY_CONFLICT | application/json |
422 | STREAM_REQUEST_OUTPUT_INVALID | application/json |
429 | STREAM_REQUEST_RATE_LIMITED | application/json |
500 | STREAM_REQUEST_INTERNAL_ERROR | application/json |
502 | SOURCE_PROTOCOL_ERROR | application/json |
503 | STREAM_REQUEST_UNAVAILABLE | application/json |
504 | STREAM_REQUEST_RESULT_UNKNOWN | application/json |
POST/stream-requests/discover
Discover Stream Requests
Requires stream.requests.read or stream.requests.manage. Returns only visible active Request contracts, filtering by App grants before pagination and counting; the result is flat {total,list}. Content-Type: application/json. Body must be one valid UTF-8 object, maximum 1 MiB. Unknown/duplicate fields and query parameters are rejected. Errors are flat {errorCode,message}.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/stream-requests/discover' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"size":0,"search":"string"}'application/json
| Field | Type | Required | Description |
|---|
page | integer (int64) | No | Uses page 1 when omitted or set to 0. |
size | integer (int64) | No | Uses 20 when omitted or set to 0. |
search | string | No | Up to 256 UTF-8 bytes. |
Responses
200400401403404409422429500502503504
Success response example
200 · application/json
{
"total": 0,
"list": [
{
"code": "value",
"name": "value",
"description": "value",
"contractVersion": "value",
"inputSchema": "value"
}
]
}Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
total | integer (int64) | Yes | See the referenced schema in the Schemas section. |
list | array<object> | Yes | See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Flat public result, without a code/msg/requestId/data envelope. | application/json |
400 | STREAM_REQUEST_INVALID_INPUT | application/json |
401 | INVALID_CREDENTIAL | application/json |
403 | STREAM_REQUEST_FORBIDDEN | application/json |
404 | STREAM_REQUEST_NOT_FOUND | application/json |
409 | STREAM_REQUEST_INACTIVE / IDEMPOTENCY_CONFLICT | application/json |
422 | STREAM_REQUEST_OUTPUT_INVALID | application/json |
429 | STREAM_REQUEST_RATE_LIMITED | application/json |
500 | STREAM_REQUEST_INTERNAL_ERROR | application/json |
502 | SOURCE_PROTOCOL_ERROR | application/json |
503 | STREAM_REQUEST_UNAVAILABLE | application/json |
504 | STREAM_REQUEST_RESULT_UNKNOWN | application/json |
Fleet
Enterprise collaboration management; explicit cluster.edge.manage authorization required.
POST/fleet/rollouts/cancel
Stop dispatch of pending rollout steps
Requires a personal full-access API key explicitly granted cluster.edge.manage, and current user and Edge permissions. The Fleet Center rechecks the key before dispatch.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/fleet/rollouts/cancel' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
jobKey | string | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string",
"error": {
"code": "string",
"stage": "string",
"message": "string",
"repair": "string",
"path": "string"
}
}Success response fields
200 · application/json
| 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. |
error | object | No | Optional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/fleet/rollouts/create
Submit selected preflight targets with a stable idempotency key
Requires a personal full-access API key explicitly granted cluster.edge.manage, and current user and Edge permissions. The Fleet Center rechecks the key before dispatch.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/fleet/rollouts/create' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"previewId":"string","previewDigest":"string","approvedTargets":["string"],"impactConfirmations":[{"targetId":"value","sourceRef":"value","impactRevision":"value"}],"idempotencyKey":"string"}'application/json
| Field | Type | Required | Description |
|---|
previewId | string | Yes | Not specified in OpenAPI |
previewDigest | string | Yes | Not specified in OpenAPI |
approvedTargets | array<string> | Yes | Not specified in OpenAPI |
impactConfirmations | array<object> | No | Not specified in OpenAPI |
idempotencyKey | string | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string",
"error": {
"code": "string",
"stage": "string",
"message": "string",
"repair": "string",
"path": "string"
}
}Success response fields
200 · application/json
| 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. |
error | object | No | Optional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/fleet/rollouts/get
Read a rollout preview or durable job with target evidence
Requires a personal full-access API key explicitly granted cluster.edge.manage, and current user and Edge permissions. The Fleet Center rechecks the key before dispatch.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/fleet/rollouts/get' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"previewId":"string","jobKey":"string","page":0,"size":0,"evidenceTargetId":"string"}'application/json
| Field | Type | Required | Description |
|---|
previewId | string | No | Not specified in OpenAPI |
jobKey | string | No | Not specified in OpenAPI |
page | integer | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
evidenceTargetId | string | No | With jobKey, recheck late sample evidence for this expired target without retrying its deployment. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string",
"error": {
"code": "string",
"stage": "string",
"message": "string",
"repair": "string",
"path": "string"
}
}Success response fields
200 · application/json
| 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. |
error | object | No | Optional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/fleet/rollouts/list
List the current operator’s Fleet rollout jobs or target history
Requires a personal full-access API key explicitly granted cluster.edge.manage, and current user and Edge permissions. The Fleet Center rechecks the key before dispatch.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/fleet/rollouts/list' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"page":0,"size":0,"status":"pending","view":"targets","nodeId":"string"}'application/json
| Field | Type | Required | Description |
|---|
page | integer | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
status | string | No | Filter by the job status in either view. |
view | string | No | Omit for job summaries. Use targets for one history row per node in each job, newest job first. |
nodeId | string | No | Filter by node in the targets view. |
onlyIssues | boolean | No | In the targets view, include only failed, expired, unknown, conflict, denied, waitingOffline and reconciling targets. |
jobKey | string | No | Filter by job in the targets view. |
Responses
200401403404409413422500503504
Success response example
200 · application/json
"string"
Success response fields
200 · application/json
| Field | Type | Required | Description |
|---|
code | integer | No | See the referenced schema in the Schemas section. |
msg | string | No | See the referenced schema in the Schemas section. |
requestId | string | No | See the referenced schema in the Schemas section. |
data | object | No | See the referenced schema in the Schemas section. |
error | object | No | Optional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included. |
data | object | No | FleetV2RolloutListResult. See the referenced schema in the Schemas section. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/fleet/rollouts/preview
Preflight a bounded Fleet rollout and freeze target guards
Requires a personal full-access API key explicitly granted cluster.edge.manage, and current user and Edge permissions. The Fleet Center rechecks the key before dispatch.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/fleet/rollouts/preview' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"action":"saveConfig","config":{},"targets":[{"nodeId":"value","streamBinding":"value","streamDocument":"value","sourceBindings":"value","collectionBindings":"value"}],"taskExpiresAt":0}'application/json
| Field | Type | Required | Description |
|---|
action | string | Yes | Not specified in OpenAPI |
config | object | No | Not specified in OpenAPI |
targets | array<object> | Yes | Not specified in OpenAPI |
taskExpiresAt | integer | No | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string",
"error": {
"code": "string",
"stage": "string",
"message": "string",
"repair": "string",
"path": "string"
}
}Success response fields
200 · application/json
| 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. |
error | object | No | Optional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
POST/fleet/rollouts/retry
Wake selected recoverable rollout targets without changing intent
Requires a personal full-access API key explicitly granted cluster.edge.manage, and current user and Edge permissions. The Fleet Center rechecks the key before dispatch.
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/fleet/rollouts/retry' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"jobKey":"string","targetIds":["string"]}'application/json
| Field | Type | Required | Description |
|---|
jobKey | string | Yes | Not specified in OpenAPI |
targetIds | array<string> | Yes | Not specified in OpenAPI |
Responses
200401403404409413422500503504
Success response example
200 · application/json
{
"code": 0,
"msg": "string",
"requestId": "string",
"data": "string",
"error": {
"code": "string",
"stage": "string",
"message": "string",
"repair": "string",
"path": "string"
}
}Success response fields
200 · application/json
| 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. |
error | object | No | Optional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included. |
Response status meanings
| Status | Meaning | Media type |
|---|
200 | Operation result | application/json |
401 | Unauthenticated: verify the Key; retain the original business intent and avoid duplicate writes. | application/json |
403 | Permission denied: request authorization; do not bypass Collection restrictions. | application/json |
404 | Object does not exist or is inaccessible. | application/json |
409 | Condition, revision or unique-key conflict: read the latest state and decide again. | application/json |
413 | Request or response exceeds a limit: narrow the scope without splitting an atomic business intent. | application/json |
422 | Invalid request: correct parameters using error.path and the repair advice. | application/json |
500 | Server error: query transaction status first when the outcome is unknown. | application/json |
503 | Temporarily unavailable: follow retry advice and retain the original idempotency key. | application/json |
504 | Query timeout: narrow the time range, joins or aggregation scope. | application/json |
Schemas
API field names, examples, and source descriptions follow the bundled English OpenAPI specification.
AppCollectionContext
| Field | Type | Required | Description |
|---|
alias | string | Yes | Not specified in OpenAPI |
autoIndexes | array<object> | Yes | Not specified in OpenAPI |
collectionId | string | Yes | Collection ID owning the business Records and Samples. |
description | string | No | Not specified in OpenAPI |
directoryPath | array<string> | 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 usable. pending/building/failed cannot support business-key upsert. Mounted Collections have source-managed unique constraints. |
indexes | array<object> | No | Unified index declarations, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omit to retain; [] removes declarations. Fields omit data. Unique indexes apply only to Record B-trees, build asynchronously and must be checked through indexStatus. |
name | string | Yes | Not specified in OpenAPI |
ownerAppId | string | No | Not specified in OpenAPI |
permissions | array<string> | Yes | Not specified in OpenAPI |
recordSchema | object | Yes | Schema. See the referenced schema in the Schemas section. |
revision | integer | Yes | Not specified in OpenAPI |
sampleSchema | object | No | Schema. See the referenced schema in the Schemas section. |
sampleSchemaMode | string | No | Not specified in OpenAPI |
slowShapes | array<object> | Yes | Not specified in OpenAPI |
ttl | object | Yes | Not specified in OpenAPI |
AppContext
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
collections | array<object> | Yes | Not specified in OpenAPI |
dataState | string | Yes | Not specified in OpenAPI |
limits | object | Yes | AppDataLimits. See the referenced schema in the Schemas section. |
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 |
AppData
collections[] explicitly grants collectionId, alias and record:read/write/delete or sample:read/write; App N:M Collection; grants cannot exceed issuer permissions; roles never add collection permissions; platformPermissions[] grants explicit platform capabilities independently of Collection grants; omitted or empty means no platform authorization; Platform capabilities must be allowlisted and within issuer resources; effective access intersects current App grants, key resources and user resources; Platform operations recheck the active App and its current grants on every request; removing a grant immediately prevents its use by existing keys; navigation.topicIds are entry points only, not data grants; members[] references platform users; roleIds reference this App's roles, members N:M roles; MCP manages Collection grants/navigation, preserves members/roles; credential APIs are separate; MCP has no consent for platformPermissions
| Field | Type | Required | Description |
|---|
collections | array<object> | Yes | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
entry | object | No | AppEntry. See the referenced schema in the Schemas section. |
members | array<object> | No | Not specified in OpenAPI |
name | string | Yes | Unique display name; no surrounding whitespace |
navigation | object | Yes | Topics associated with the App. This retained field name does not describe a page menu and grants no data permissions. |
platformPermissions | array<string> | No | Explicit platform capabilities; default none; current App grants intersect with key and issuer resources |
roles | array<object> | No | Not specified in OpenAPI |
schemaVersion | integer | Yes | Not specified in OpenAPI |
status | string | No | Not specified in OpenAPI |
streamInteraction | object | No | AppStreamPolicy. See the referenced schema in the Schemas section. |
AppDataCountLimits
| Field | Type | Required | Description |
|---|
defaultMax | integer | Yes | Not specified in OpenAPI |
max | integer | Yes | Not specified in OpenAPI |
AppDataLimits
| Field | Type | Required | Description |
|---|
concurrency | object | Yes | Not specified in OpenAPI |
count | object | Yes | AppDataCountLimits. See the referenced schema in the Schemas section. |
get | object | Yes | Not specified in OpenAPI |
idempotencyWindowMs | integer | Yes | Not specified in OpenAPI |
queryBatch | object | Yes | Not specified in OpenAPI |
subscribe | object | Yes | Not specified in OpenAPI |
total | object | Yes | AppDataCountLimits. See the referenced schema in the Schemas section. |
transaction | object | Yes | Not specified in OpenAPI |
ttl | object | Yes | Not specified in OpenAPI |
AppDataView
collections[] explicitly grants collectionId, alias and record:read/write/delete or sample:read/write; App N:M Collection; grants cannot exceed issuer permissions; roles never add collection permissions; platformPermissions[] grants explicit platform capabilities independently of Collection grants; omitted or empty means no platform authorization; Platform capabilities must be allowlisted and within issuer resources; effective access intersects current App grants, key resources and user resources; Platform operations recheck the active App and its current grants on every request; removing a grant immediately prevents its use by existing keys; navigation.topicIds are entry points only, not data grants; members[] references platform users; roleIds reference this App's roles, members N:M roles; MCP manages Collection grants/navigation, preserves members/roles; credential APIs are separate; MCP has no consent for platformPermissions
| Field | Type | Required | Description |
|---|
collections | array<object> | Yes | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
entry | object | No | AppEntry. See the referenced schema in the Schemas section. |
members | array<object> | No | Not specified in OpenAPI |
name | string | Yes | Unique display name; no surrounding whitespace |
navigation | object | Yes | Topics associated with the App. This retained field name does not describe a page menu and grants no data permissions. |
platformPermissions | array<string> | No | Explicit platform capabilities; default none; current App grants intersect with key and issuer resources |
roles | array<object> | No | Not specified in OpenAPI |
schemaVersion | integer | Yes | Not specified in OpenAPI |
status | string | No | Not specified in OpenAPI |
streamInteraction | object | No | AppStreamPolicy. See the referenced schema in the Schemas section. |
AppEntry
| Field | Type | Required | Description |
|---|
basePath | string | No | Not specified in OpenAPI |
environment | string | No | Not specified in OpenAPI |
path | string | Yes | Not specified in OpenAPI |
AppKeyCreated
| Field | Type | Required | Description |
|---|
apiKey | string | Yes | Not specified in OpenAPI |
appId | string | Yes | Not specified in OpenAPI |
keyId | string | Yes | Not specified in OpenAPI |
resourceKeys | array<string> | Yes | Not specified in OpenAPI |
AppKeyRevoked
| Field | Type | Required | Description |
|---|
keyId | string | Yes | Not specified in OpenAPI |
revoked | boolean | Yes | Not specified in OpenAPI |
AppRequestGrantView
| 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 |
snapshotToken | string | Yes | Not specified in OpenAPI |
recipientEligible | integer | Yes | Not specified in OpenAPI |
recipientActions | array<string> | Yes | Not specified in OpenAPI |
activationSupported | integer | Yes | Not specified in OpenAPI |
registered | integer | Yes | Not specified in OpenAPI |
revision | integer | Yes | Not specified in OpenAPI |
active | 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 |
AppSessionIdentity
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
roleIds | array<string> | Yes | Not specified in OpenAPI |
roles | array<object> | Yes | Not specified in OpenAPI |
sessionExpireAt | string | Yes | Not specified in OpenAPI |
user | object | Yes | AppSessionUser. See the referenced schema in the Schemas section. |
AppSessionUser
| Field | Type | Required | Description |
|---|
nickName | string | Yes | Not specified in OpenAPI |
userId | string | Yes | Not specified in OpenAPI |
userName | string | Yes | Not specified in OpenAPI |
AppStreamMessageTopicPermission
| 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 |
AppStreamPolicy
| Field | Type | Required | Description |
|---|
messageTopics | array<object> | No | Not specified in OpenAPI |
platformPermissions | array<string> | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
version | string | Yes | Not specified in OpenAPI |
AppStreamPolicyView
| 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 |
platformPermissions | array<string> | Yes | Not specified in OpenAPI |
messageTopics | array<object> | No | Not specified in OpenAPI |
authorityStatus | string | Yes | Not specified in OpenAPI |
appName | string | Yes | Not specified in OpenAPI |
AutoIndexFieldView
| Field | Type | Required | Description |
|---|
direction | string | Yes | Not specified in OpenAPI |
field | string | Yes | Not specified in OpenAPI |
form | string | Yes | Not specified in OpenAPI |
AutoIndexReason
| Field | Type | Required | Description |
|---|
calls | integer | Yes | Not specified in OpenAPI |
p95BeforeMs | number | Yes | Not specified in OpenAPI |
shapeHash | string | Yes | Not specified in OpenAPI |
timeouts | integer | Yes | Not specified in OpenAPI |
AutoIndexSpecView
| Field | Type | Required | Description |
|---|
fields | array<object> | Yes | Not specified in OpenAPI |
paths | array<string> | Yes | Not specified in OpenAPI |
AutoIndexView
| Field | Type | Required | Description |
|---|
createdAt | integer | Yes | Not specified in OpenAPI |
error | string | No | Not specified in OpenAPI |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
lastUsedAt | integer | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
origin | string | Yes | Not specified in OpenAPI |
p95AfterMs | number | Yes | Not specified in OpenAPI |
physicalNames | array<string> | Yes | Not specified in OpenAPI |
pinned | integer | Yes | Not specified in OpenAPI |
reason | object | Yes | AutoIndexReason. See the referenced schema in the Schemas section. |
replaces | array<string> | Yes | Not specified in OpenAPI |
spec | object | Yes | AutoIndexSpecView. See the referenced schema in the Schemas section. |
state | string | Yes | Not specified in OpenAPI |
takenOver | integer | Yes | Not specified in OpenAPI |
CloudAutoIndex
An index automatically maintained by the platform for Record queries.
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID (string), obtained from a discovery or read endpoint; do not use a name as an ID. Automatic index task ID (autoIndexes[].id). |
name | string | Yes | Primary physical index name. Newly created indexes use the qa_ prefix; adopted existing indexes retain their original names. |
physicalNames | array<string> | Yes | All physical index names. An adopted existing regular index may have a pair ending in _j and _v; a newly created index has only one. |
spec | object | Yes | CloudAutoIndexSpec. See the referenced schema in the Schemas section. |
state | string | Yes | replacing means the index is being replaced by a better index and remains usable until replacement completes. |
error | string | No | Error code when state=failed. |
origin | string | Yes | Not specified in OpenAPI |
takenOver | integer | Yes | 1 means adopted from an existing regular declared index; 0 means newly created by the platform. |
pinned | integer | Yes | 1 means pinned: the platform will neither delete nor rebuild the index; 0 means unpinned. |
reason | object | Yes | Reason for creation; null for an adopted existing index. |
p95AfterMs | number | Yes | p95 duration of the same query after the index has been ready for 24 hours, in milliseconds; null if not yet reassessed. |
replaces | array<string> | Yes | ID of the old index replaced by this index. |
createdAt | integer | Yes | Task creation time, in Unix milliseconds. |
lastUsedAt | integer | Yes | Last time the index was observed being used by a query, based on daily snapshots, in Unix milliseconds; null if no observation exists. |
CloudAutoIndexDisabledSpec
An index specification that has been disabled and will no longer be created automatically by the platform.
| Field | Type | Required | Description |
|---|
specKey | string | Yes | Specification key (columns, directions, and notation). Use the same fields when enabling it. |
spec | object | Yes | CloudAutoIndexSpec. See the referenced schema in the Schemas section. |
disabledAt | integer | Yes | Time disabled, in Unix milliseconds. |
CloudAutoIndexDisableReq
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID for the business records and samples. |
fields | array<object> | Yes | Specification to disable or enable, taken from autoIndexes[].spec.fields or disabledAutoIndexSpecs[].spec.fields. |
action | string | Yes | disable deletes existing automatic indexes with the same specification and prevents their automatic recreation; enable restores automatic management. |
CloudAutoIndexDisableResponse
| 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 |
CloudAutoIndexField
A column in an automatic index.
| Field | Type | Required | Description |
|---|
field | string | Yes | Business field path, using the same notation as an indexes declaration, without the data. prefix. |
direction | string | Yes | Not specified in OpenAPI |
form | string | Yes | json: a filter column for equality, $in, or range conditions, compared using original JSON values; scalar: a sort column compared as scalar values, with numbers and booleans compared by type. |
CloudAutoIndexPinReq
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID for the business records and samples. |
indexId | string | Yes | Automatic index task ID (autoIndexes[].id). |
action | string | Yes | pin pins the index: the platform will neither delete nor rebuild it; unpin removes the pin. |
CloudAutoIndexPinResponse
| 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 | CloudAutoIndex. See the referenced schema in the Schemas section. |
CloudAutoIndexReason
Query category for which the index was created. Contains only the query shape and statistics, without query values.
| Field | Type | Required | Description |
|---|
shapeHash | string | Yes | Query shape hash, corresponding to slowShapes[].shapeHash. |
calls | integer | Yes | Number of calls in the statistics window before index creation. |
p95BeforeMs | number | Yes | p95 duration before index creation, in milliseconds. |
timeouts | integer | Yes | Number of QUERY_TIMEOUT errors in the statistics window before index creation. |
CloudAutoIndexSpec
Automatic index specification: at most 3 columns, with equality columns first, then sort columns, and at most one range column last.
| Field | Type | Required | Description |
|---|
paths | array<string> | Yes | Field paths of the columns, in the same order as fields. |
fields | array<object> | Yes | Not specified in OpenAPI |
CloudDataPage
Output documents from the aggregation pipeline, without Record/Sample wrapping. 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. |
total | object | No | Not specified in OpenAPI |
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 |
CloudEdgeSourceStateUpdateReq
| Field | Type | Required | Description |
|---|
dryRun | boolean | Yes | Not specified in OpenAPI |
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Not specified in OpenAPI |
desiredState | string | Yes | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
confirmedImpactRevision | string | No | Not specified in OpenAPI |
CloudNullableRecordDocument
Ordinary business Record. Business fields are in data; system properties are siblings. filter/projection use bare business fields and _id/_meta.*, independently of this response object's paths. lock describes only an active lease and never returns its token.
| 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
A standard sample object, uniquely identified by collectionId, recordId, and time. id and time have a one-to-one correspondence for references using Cloud's {recordId,id,time} triple. Business fields are in data; time, quality, record identity, and available source information are at the same level as data.
| Field | Type | Required | Description |
|---|
id | string | Yes | Sample ID, unique within the same Record; Enterprise derives it from time as a decimal string of Unix milliseconds. |
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 |
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 | Not specified in OpenAPI |
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. |
CloudSlowQueryAdvice
The platform's decision for this query shape.
| Field | Type | Required | Description |
|---|
code | string | Yes | Decision: indexed means covered by an existing index; building means index creation is in progress (see indexId); observing means index creation criteria have not been met and observation continues; notIndexable means the conditions cannot be accelerated with an index and the query must be rewritten; collectionTooSmall means the collection is too small; writeHeavy means writes outweigh reads; quotaFull means the index quota is full; disabled means the specification is disabled; cooldown means this specification was deleted within the last 7 days; adviseOnly means recommendations only, without execution; deferred means size or disk usage limits were exceeded, so only recommendations are provided. New values may be added; treat unknown values as observing. |
indexId | string | No | Related automatic index ID; omitted if none. |
CloudSlowQueryShape
Slow query shape: contains only field paths and statistics, without query values.
| Field | Type | Required | Description |
|---|
shapeHash | string | Yes | Query shape hash. |
op | string | Yes | Query type. findPage and queryBatch are counted as find or count; $lookup joins are counted as lookup. |
eq | array<string> | Yes | Fields with equality conditions. |
in | array<string> | Yes | Fields with $in conditions. |
range | array<string> | Yes | Fields with range conditions ($gt, $gte, $lt, $lte). |
sort | array<object> | Yes | Sort fields and directions. |
noIndexable | array<string> | Yes | Condition operators that cannot be accelerated with an index, such as $regex, $ne, and $or. |
calls | integer | Yes | Number of calls in the last 24 hours. |
p95Ms | number | Yes | p95 duration in the last 24 hours, in milliseconds, estimated from a histogram. |
timeouts | integer | Yes | Number of QUERY_TIMEOUT errors in the last 24 hours. |
advice | object | Yes | CloudSlowQueryAdvice. See the referenced schema in the Schemas section. |
CloudSlowQuerySortField
| Field | Type | Required | Description |
|---|
field | string | Yes | Not specified in OpenAPI |
direction | string | Yes | Not specified in OpenAPI |
CloudSourceDevicesListReq
| Field | Type | Required | Description |
|---|
kind | string | No | Not specified in OpenAPI |
CloudSourceDiscoverReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Not specified in OpenAPI |
CloudSourceDocumentCreateReq
Create or update a single Source document or an atomic items batch. Each item may provide write-only native credentials under Source credential management authority. New credentials require an idempotency key. Connection fields are top-level; existing credentials use document.credentialRef.
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
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 |
CloudSourceDocumentGetReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Positive decimal int64 identifier; always a string on the wire. |
view | string | No | summary requires only read permission and omits scripts and connection settings. full or an omitted value requires management permission. API Keys also require full_access, and MCP requires the corresponding management scope. |
CloudSourceDocumentListReq
| 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 |
CloudSourceDocumentUpdateReq
Update a single Source or atomic items batch using a complete document or patch with CAS. Credential material is not accepted here; use credentials/update.
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
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 |
CloudSourceImpactReq
Inspect Source update, delete, enable, disable or credential-rotation dependencies. Only update accepts exactly one document or patch. Other actions never include document, patch or secrets. Follow offset/size with the same impactRevision snapshot, review dependencies and explicitly confirm the resulting token.
| 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. |
CloudSourceObservationsGetReq
| 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. |
CloudSourceResourceCatalogReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
configRevision | integer | No | Not specified in OpenAPI |
CloudSourceResourceReadReq
| 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 |
CloudSourceResourceScanReq
| 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 |
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 |
CloudStreamDocumentCreateReq
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | Not specified in OpenAPI |
idempotencyKey | string | 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 |
CloudStreamDocumentDisableReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Not specified in OpenAPI |
dryRun | boolean | Yes | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
expectedActiveVersion | string | Yes | Authoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence. |
CloudStreamDocumentGetReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Positive decimal int64 identifier; always a string on the wire. |
view | string | No | summary requires only read permission and omits scripts and connection settings. full or an omitted value requires management permission. API Keys also require full_access, and MCP requires the corresponding management scope. |
CloudStreamDocumentUpdateReq
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
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 |
CloudStreamDocumentValidateReq
| 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 |
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 |
CloudStreamProgramDeleteReq
| Field | Type | Required | Description |
|---|
dryRun | boolean | Yes | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
id | string | Yes | Positive decimal int64 identifier; always a string on the wire. |
expectedRevision | integer | No | Not specified in OpenAPI |
CloudStreamProgramListReq
| 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 |
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 |
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 owning the 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 usable. pending/building/failed cannot support business-key upsert. Mounted Collections have source-managed unique constraints. |
indexes | array<object> | Yes | Unified index declarations, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omit to retain; [] removes declarations. Fields omit data. Unique indexes apply only to Record B-trees, build asynchronously and must be checked through indexStatus. |
metadataNotice | string | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
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. |
sampleSchemaMode | string | No | Not specified in OpenAPI |
autoIndexes | array<object> | No | Not specified in OpenAPI |
slowShapes | array<object> | No | Not specified in OpenAPI |
disabledAutoIndexSpecs | array<object> | No | Not specified in OpenAPI |
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 |
format | string | 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 |
DiscoveryCollection
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID owning the business Records and Samples. |
description | string | Yes | Not specified in OpenAPI |
hasSamples | boolean | No | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
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 | Items per page; the maximum is declared by this operation's maximum constraint 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 |
EdgeCollectionSyncConfig
| Field | Type | Required | Description |
|---|
mode | string | Yes | Not specified in OpenAPI |
collectionIds | array<string> | Yes | Not specified in OpenAPI |
EdgeUploadPolicyConfig
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"mode": {
"type": "string",
"enum": [
"immediate"
]
}
},
"required": [
"mode"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"mode": {
"type": "string",
"enum": [
"periodic"
]
},
"flushIntervalMs": {
"type": "integer",
"minimum": 1000,
"maximum": 3600000
}
},
"required": [
"mode",
"flushIntervalMs"
]
}
]
}Fault
| Field | Type | Required | Description |
|---|
candidates | array<object> | No | Not specified in OpenAPI |
code | string | Yes | Not specified in OpenAPI |
conditionIndex | integer | No | Not specified in OpenAPI |
details | array<object> | No | Not specified in OpenAPI |
execution | string | No | Not specified in OpenAPI |
objectId | string | No | Not specified in OpenAPI |
objectKind | string | No | Not specified in OpenAPI |
opId | string | No | Operation identifier unique within this transaction, used for dependencies and result references. |
path | string | No | Not specified in OpenAPI |
queryId | string | No | Identifier unique within this query batch, used to match results. |
reason | string | No | Not specified in OpenAPI |
repair | string | No | Not specified in OpenAPI |
retryAdvice | object | No | RetryAdvice. See the referenced schema in the Schemas section. |
retryable | boolean | Yes | Not specified in OpenAPI |
rolledBack | boolean | No | Not specified in OpenAPI |
retry | object | 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 |
connectTimeoutMs | integer | No | DNS and TCP connect timeout (ms). |
FleetV2Envelope
| 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 |
error | object | No | Optional failure details. Known Source failures use HTTP 422 and fixed safe stage/message/repair; path/reason are emitted only for known matching validation categories. No upstream body, credential, SQL or automatic retry guarantee is included. |
FleetV2RolloutCancelRequest
| Field | Type | Required | Description |
|---|
jobKey | string | Yes | Not specified in OpenAPI |
FleetV2RolloutCreateRequest
| Field | Type | Required | Description |
|---|
previewId | string | Yes | Not specified in OpenAPI |
previewDigest | string | Yes | Not specified in OpenAPI |
approvedTargets | array<string> | Yes | Not specified in OpenAPI |
impactConfirmations | array<object> | No | Not specified in OpenAPI |
idempotencyKey | string | Yes | Not specified in OpenAPI |
FleetV2RolloutGetRequest
| Field | Type | Required | Description |
|---|
previewId | string | No | Not specified in OpenAPI |
jobKey | string | No | Not specified in OpenAPI |
page | integer | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
evidenceTargetId | string | No | With jobKey, recheck late sample evidence for this expired target without retrying its deployment. |
FleetV2RolloutHistoryRow
| Field | Type | Required | Description |
|---|
jobKey | string | Yes | Not specified in OpenAPI |
jobStatus | string | Yes | Not specified in OpenAPI |
action | string | Yes | Not specified in OpenAPI |
startedTime | integer | Yes | Job start time in Unix milliseconds. Uses creation time while a job has no start time. |
target | object | Yes | FleetV2RolloutHistoryTarget. See the referenced schema in the Schemas section. |
FleetV2RolloutHistoryTarget
| Field | Type | Required | Description |
|---|
targetId | string | Yes | Not specified in OpenAPI |
nodeId | string | Yes | Not specified in OpenAPI |
generation | string | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
deadlineAt | integer | Yes | Not specified in OpenAPI |
attempt | integer | Yes | Not specified in OpenAPI |
result | object | Yes | Not specified in OpenAPI |
FleetV2RolloutJobSummary
| Field | Type | Required | Description |
|---|
id | integer | Yes | Not specified in OpenAPI |
jobKey | string | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
FleetV2RolloutListRequest
| Field | Type | Required | Description |
|---|
page | integer | No | Not specified in OpenAPI |
size | integer | No | Not specified in OpenAPI |
status | string | No | Filter by the job status in either view. |
view | string | No | Omit for job summaries. Use targets for one history row per node in each job, newest job first. |
nodeId | string | No | Filter by node in the targets view. |
onlyIssues | boolean | No | In the targets view, include only failed, expired, unknown, conflict, denied, waitingOffline and reconciling targets. |
jobKey | string | No | Filter by job in the targets view. |
FleetV2RolloutListResult
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | Rows have the same shape throughout a page, as selected by the request view. |
page | integer | Yes | Not specified in OpenAPI |
size | integer | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
FleetV2RolloutPreviewRequest
| Field | Type | Required | Description |
|---|
action | string | Yes | Not specified in OpenAPI |
config | object | No | Not specified in OpenAPI |
targets | array<object> | Yes | Not specified in OpenAPI |
taskExpiresAt | integer | No | Not specified in OpenAPI |
FleetV2RolloutRetryRequest
| Field | Type | Required | Description |
|---|
jobKey | string | Yes | Not specified in OpenAPI |
targetIds | array<string> | Yes | Not specified in OpenAPI |
Grant
| Field | Type | Required | Description |
|---|
alias | string | Yes | Not specified in OpenAPI |
collectionId | object | Yes | UnsV2Identity. See the referenced schema in the Schemas section. |
permissions | array<string> | Yes | 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 |
responseHeaderTimeoutMs | integer | No | Response header timeout (ms). |
IndexSpec
index declaration. Unique is supported only for Record B-tree indexes; GIN takes one path. Unique values retain JSON types, exclude soft-deleted Records, allow missing paths, and treat explicit JSON null as a value. Constraints become effective only when indexStatus.state=ready.
| Field | Type | Required | Description |
|---|
expireAfterSeconds | integer | No | Not specified in OpenAPI |
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 |
IndexState
| Field | Type | Required | Description |
|---|
error | string | No | Not specified in OpenAPI |
managedBy | string | Yes | 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 |
Member
| Field | Type | Required | Description |
|---|
roleIds | array<string> | Yes | Not specified in OpenAPI |
userId | 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. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
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. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
replacement | object | Yes | Not specified in OpenAPI |
upsert | boolean | No | Supported for single-resource updates and replacements. The filter must specify equality on _id, and the new configuration must be complete and valid. A deleted object with the same ID is never restored automatically. |
MetadataBulkRestoreOne
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | No | Optional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
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. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
update | object | Yes | Supports only $set, $unset, and $setOnInsert. Configuration paths omit the data. prefix. System fields are read-only. An array update replaces the whole field. |
upsert | boolean | No | Supported for single-resource updates and replacements. The filter must specify equality on _id, and the new configuration must be complete and valid. A deleted object with the same ID is never restored automatically. |
MetadataCollectionInput
Writable configuration. The server defaults schemaVersion to 1; unknown fields are rejected.
| Field | Type | Required | Description |
|---|
description | string | No | Not specified in OpenAPI |
indexes | array<object> | No | Unified index declarations, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omit to retain; [] removes declarations. Fields omit data. Unique indexes apply only to Record B-trees, build asynchronously and must be checked through indexStatus. |
name | string | Yes | Unique display name; no surrounding whitespace |
recordSchema | object | Yes | Schema. See the referenced schema in the Schemas section. |
sampleSchema | object | No | Schema. See the referenced schema in the Schemas section. |
sampleSchemaMode | string | No | Each Record may declare its Sample schema in data.sampleSchema. Records without a declaration use the Collection sampleSchema. |
schemaVersion | integer | No | Not specified in OpenAPI |
semantics | object | No | CollectionSemantics. See the referenced schema in the Schemas section. |
parentId | object | No | Not specified in OpenAPI |
MetadataDirectoryInput
Writable configuration. The server defaults schemaVersion to 1; unknown fields are rejected.
| Field | Type | Required | Description |
|---|
description | string | No | Not specified in OpenAPI |
name | string | Yes | Unique display name; no surrounding whitespace |
parentId | object | No | Not specified in OpenAPI |
schemaVersion | integer | No | Not specified in OpenAPI |
MetadataDocument
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
id | string | Yes | Not specified in OpenAPI |
originNodeId | string | No | Fleet origin node identity for automatically synchronized Collections. Does not change edit permissions. |
mountId | string | Yes | Source identifier of the mounted resource; configuration is read-only when nonempty. |
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 | Not specified in OpenAPI |
MetadataNullableDocument
| Field | Type | Required | Description |
|---|
kind | string | No | Not specified in OpenAPI |
id | string | No | Not specified in OpenAPI |
originNodeId | string | No | Fleet origin node identity for automatically synchronized Collections. Does not change edit permissions. |
mountId | string | No | Source identifier of the mounted resource; configuration is read-only when nonempty. |
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 | Not specified in OpenAPI |
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. The server defaults schemaVersion to 1; 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 | Unique display name; no surrounding whitespace |
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 | Not specified in OpenAPI |
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, and $setOnInsert. Configuration paths omit the data. prefix. System fields are read-only. An array update replaces the whole field. |
replacement | object | No | Not specified in OpenAPI |
expectedRevision | integer | No | Optional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
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 string obtained from discovery or a read operation. 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. |
publishTopics | array<string> | No | Not specified in OpenAPI |
deviceIdentity | boolean | No | Not specified in OpenAPI |
payloadFormat | string | No | Not specified in OpenAPI |
keepAliveSeconds | integer | No | Keepalive (seconds). Zero disables it. |
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 |
OpcuaAcquisition
| Field | Type | Required | Description |
|---|
streamId | string | Yes | Not specified in OpenAPI |
versionId | string | Yes | Not specified in OpenAPI |
entryId | string | Yes | Not specified in OpenAPI |
sourceId | string | Yes | Not specified in OpenAPI |
configRevision | integer | Yes | Not specified in OpenAPI |
latest | object | No | OpcuaAcquisitionObservation. See the referenced schema in the Schemas section. |
lastFailure | object | No | OpcuaAcquisitionObservation. See the referenced schema in the Schemas section. |
batches | array<object> | No | Not specified in OpenAPI |
OpcuaAcquisitionObservation
| Field | Type | Required | Description |
|---|
sourceId | string | Yes | Not specified in OpenAPI |
configRevision | integer | Yes | Not specified in OpenAPI |
entryId | string | No | Not specified in OpenAPI |
method | string | Yes | Not specified in OpenAPI |
scope | string | Yes | Not specified in OpenAPI |
stage | string | Yes | Not specified in OpenAPI |
observedAt | integer | Yes | Not specified in OpenAPI |
code | string | No | Not specified in OpenAPI |
message | string | No | Not specified in OpenAPI |
readBatch | object | No | OpcuaReadBatch. See the referenced schema in the Schemas section. |
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 |
requestTimeoutMs | integer | No | Client UA service request timeout in milliseconds. Zero or absent uses the 6000 ms default. |
sessionTimeoutMs | integer | No | Requested client session inactivity timeout in milliseconds. Zero or absent requests 600000 ms. The server may revise the timeout. |
readBatchSize | integer | No | Preferred maximum points per client Read. Zero or absent uses the server limit, or 32 if unavailable. The advertised server limit is always respected. |
OpcuaReadBatch
| Field | Type | Required | Description |
|---|
batchNumber | integer | Yes | Not specified in OpenAPI |
total | integer | Yes | Not specified in OpenAPI |
requested | integer | Yes | Not specified in OpenAPI |
returned | integer | Yes | Not specified in OpenAPI |
good | integer | Yes | Not specified in OpenAPI |
bad | integer | Yes | Not specified in OpenAPI |
uncertain | integer | Yes | Not specified in OpenAPI |
unknown | integer | Yes | Not specified in OpenAPI |
unattempted | integer | Yes | Not specified in OpenAPI |
completedGood | integer | Yes | Not specified in OpenAPI |
durationMs | integer | Yes | Not specified in OpenAPI |
cycleDurationMs | integer | Yes | Not specified in OpenAPI |
observedAt | integer | Yes | Not specified in OpenAPI |
method | string | Yes | Not specified in OpenAPI |
statusCode | string | No | Not specified in OpenAPI |
responseHeaderObserved | boolean | 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 string obtained from discovery or a read operation. 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 |
Outcome
| Field | Type | Required | Description |
|---|
jobId | string | No | Not specified in OpenAPI |
nextIndex | integer | No | Not specified in OpenAPI |
replayed | boolean | Yes | Not specified in OpenAPI |
results | array<object> | No | Not specified in OpenAPI |
status | string | Yes | Local execution lifecycle. accepted means durable upload acceptance only; results with pendingUpload are not center commits. |
summary | object | No | OutcomeSummary. See the referenced schema in the Schemas section. |
unknownUntil | 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 |
PlatformV2CapabilitiesDiscoverReq
{
"type": "object",
"additionalProperties": false,
"properties": {},
"required": []
}PlatformV2CapabilitiesDiscoverResponse
OpenAPI 3.0 wire schema. Array contains/cardinality annotations and cross-field proof ordering require the shared JSON Schema plus SDK semantic checks; this projection alone is not full contract acceptance.
| 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 |
PlatformV2CloudAssetUploadReq
| Field | Type | Required | Description |
|---|
fileName | string | Yes | Nonempty original filename. Disallowed extensions include html and php. |
sizeBytes | integer (int64) | Yes | Declared file size in bytes. Direct and multipart uploads each support up to 1 GiB. |
contentType | string | No | Optional file MIME type, such as application/pdf. |
size | integer (int64) | No | Not specified in OpenAPI |
sha256 | string | No | Not specified in OpenAPI |
storageKey | string | No | Not specified in OpenAPI |
isPublic | boolean | No | Not specified in OpenAPI |
business | string | No | Not specified in OpenAPI |
useBy | string | No | Not specified in OpenAPI |
PlatformV2CloudAssetUploadResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CloudFileDeleteReq
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Managed file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding. |
PlatformV2CloudFileDeleteResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CloudFileUploadReq
| Field | Type | Required | Description |
|---|
fileName | string | Yes | Nonempty original filename. Disallowed extensions include html and php. |
contentType | string | No | Optional file MIME type, such as application/pdf. |
size | integer (int64) | Yes | File size in bytes. |
visibility | string | No | With private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use. |
business | string | No | Not specified in OpenAPI |
useBy | string | No | Not specified in OpenAPI |
appInstanceId | string | No | Not specified in OpenAPI |
sessionId | string | No | Optional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace. |
PlatformV2CloudFileUploadResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CloudFileURLResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CloudInfoReq
{
"type": "object",
"additionalProperties": false,
"properties": {},
"required": []
}PlatformV2CloudInfoResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CloudMembersListAppReq
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
roleKeys | array<string> | No | Not specified in OpenAPI |
grantedAtStart | integer (int64) | No | Start of the authorization period in Unix milliseconds. |
grantedAtEnd | integer (int64) | No | End of the authorization period in Unix milliseconds. |
scope | string | No | Not specified in OpenAPI |
page | integer (int64) | No | Page number. Uses page 1 when omitted or set to 0. |
size | integer (int64) | No | Results per page, up to 100. Uses 20 when omitted or set to 0. |
PlatformV2CloudMembersListAppResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CloudMembersListWorkspaceReq
| Field | Type | Required | Description |
|---|
keyword | string | No | Not specified in OpenAPI |
roleKey | string | No | Not specified in OpenAPI |
roles | array<string> | No | Not specified in OpenAPI |
statuses | array<string> | No | Not specified in OpenAPI |
updatedAtStart | string | No | Not specified in OpenAPI |
updatedAtEnd | string | No | Not specified in OpenAPI |
page | integer (int64) | No | Page number. Uses page 1 when omitted or set to 0. |
size | integer (int64) | No | Results per page, up to 100. Uses 20 when omitted or set to 0. |
PlatformV2CloudMembersListWorkspaceResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CloudMQTTAuthCreateReq
| Field | Type | Required | Description |
|---|
name | string | Yes | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
clientIDRandomSuffixEnabled | boolean | No | Not specified in OpenAPI |
PlatformV2CloudMQTTAuthCreateResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CloudMQTTAuthDeleteReq
| Field | Type | Required | Description |
|---|
id | integer (int64) | Yes | Regular MQTT credential ID. |
PlatformV2CloudMQTTAuthDeleteResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CloudMultipartAbortReq
| Field | Type | Required | Description |
|---|
fileKey | string | Yes | File identifier returned by multipart initialization. |
uploadId | string | Yes | Session identifier returned by multipart initialization. Use it together with filePath exactly as returned. |
PlatformV2CloudMultipartAbortResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CloudMultipartCompleteReq
| Field | Type | Required | Description |
|---|
fileKey | string | Yes | File identifier returned by multipart initialization. |
uploadId | string | Yes | Session identifier returned by multipart initialization. Use it together with filePath exactly as returned. |
parts | array<object> | Yes | Not specified in OpenAPI |
PlatformV2CloudMultipartCompleteResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CloudMultipartInitReq
| Field | Type | Required | Description |
|---|
fileName | string | Yes | Nonempty original filename. Disallowed extensions include html and php. |
contentType | string | No | Optional file MIME type, such as application/pdf. |
size | integer (int64) | Yes | File size in bytes. |
visibility | string | No | With private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use. |
business | string | No | Not specified in OpenAPI |
useBy | string | No | Not specified in OpenAPI |
appInstanceId | string | No | Not specified in OpenAPI |
sessionId | string | No | Optional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace. |
partSize | integer (int64) | No | Bytes. |
bizId | string | No | Not specified in OpenAPI |
PlatformV2CloudMultipartInitResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CloudMultipartPartURLsReq
| Field | Type | Required | Description |
|---|
fileKey | string | Yes | File identifier returned by multipart initialization. |
uploadId | string | Yes | Session identifier returned by multipart initialization. Use it together with filePath exactly as returned. |
partNumbers | array<integer (int64)> | Yes | Not specified in OpenAPI |
PlatformV2CloudMultipartPartURLsResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CloudNotificationError
| Field | Type | Required | Description |
|---|
errorCode | string | Yes | Not specified in OpenAPI |
message | string | Yes | Not specified in OpenAPI |
PlatformV2CloudNotificationGetReq
| Field | Type | Required | Description |
|---|
messageId | string | Yes | Not specified in OpenAPI |
PlatformV2CloudNotificationGetResponse
| Field | Type | Required | Description |
|---|
messageId | string | Yes | Not specified in OpenAPI |
type | string | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
createdAt | string (date-time) | Yes | Not specified in OpenAPI |
completedAt | string (date-time) | No | Not specified in OpenAPI |
errorCode | string | No | Not specified in OpenAPI |
message | string | No | Not specified in OpenAPI |
recipientUserId | string | Yes | Not specified in OpenAPI |
recipientName | string | No | Not specified in OpenAPI |
channels | array<object> | Yes | Not specified in OpenAPI |
PlatformV2CloudNotificationListReq
| Field | Type | Required | Description |
|---|
page | integer (int64) | No | Page number. |
size | integer (int64) | No | Results per page. |
messageId | string | No | Not specified in OpenAPI |
recipientUserId | string | No | Not specified in OpenAPI |
status | string | No | Not specified in OpenAPI |
PlatformV2CloudNotificationListResponse
| Field | Type | Required | Description |
|---|
list | array<object> | Yes | Not specified in OpenAPI |
total | integer (int64) | Yes | Not specified in OpenAPI |
page | integer (int64) | Yes | Not specified in OpenAPI |
size | integer (int64) | Yes | Not specified in OpenAPI |
PlatformV2CloudWhoamiReq
{
"type": "object",
"additionalProperties": false,
"properties": {},
"required": []
}PlatformV2CloudWhoamiResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2CompletedPart
| Field | Type | Required | Description |
|---|
partNumber | integer (int64) | Yes | One-based part number. |
etag | string | Yes | Pass the nonempty ETag returned by object storage for this part exactly as received. |
PlatformV2Discovery_capability
Unknown capability codes are ignored; only recognized codes use the frozen assessment contract.
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
PlatformV2Discovery_knownCapability
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 |
PlatformV2Discovery_knownOperation
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 |
PlatformV2Discovery_operation
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 |
PlatformV2DiscoveryError
| Field | Type | Required | Description |
|---|
errorCode | string | Yes | Not specified in OpenAPI |
message | string | Yes | Not specified in OpenAPI |
PlatformV2ErrorResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | Yes | Actual HTTP status code. |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
error | object | Yes | Not specified in OpenAPI |
PlatformV2FileDeleteReq
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Managed file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding. |
PlatformV2FileDeleteResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2FileDownloadCreateReq
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Managed file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding. |
expiresInSeconds | integer (int64) | No | Requested URL lifetime in seconds. Uses the server default when omitted or set to 0, with a maximum of 7 days. |
PlatformV2FileDownloadCreateResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2FileUploadCreateReq
| Field | Type | Required | Description |
|---|
fileName | string | Yes | Nonempty original filename. Disallowed extensions include html and php. |
contentType | string | No | Optional file MIME type, such as application/pdf. |
sizeBytes | integer (int64) | Yes | Declared file size in bytes. Direct and multipart uploads each support up to 1 GiB. |
visibility | string | No | With private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use. |
sessionId | string | No | Optional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace. |
PlatformV2FileUploadCreateResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2IdentityGetReq
{
"type": "object",
"additionalProperties": false,
"properties": {},
"required": []
}PlatformV2IdentityGetResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2InfoGetReq
{
"type": "object",
"additionalProperties": false,
"properties": {},
"required": []
}PlatformV2InfoGetResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2MultipartAbortReq
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Managed file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding. |
uploadId | string | Yes | Session identifier returned by multipart initialization. Use it together with filePath exactly as returned. |
PlatformV2MultipartAbortResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2MultipartCompleteReq
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Managed file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding. |
uploadId | string | Yes | Session identifier returned by multipart initialization. Use it together with filePath exactly as returned. |
parts | array<object> | Yes | Not specified in OpenAPI |
PlatformV2MultipartCompleteResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2MultipartCreateReq
| Field | Type | Required | Description |
|---|
fileName | string | Yes | Nonempty original filename. Disallowed extensions include html and php. |
contentType | string | No | Optional file MIME type, such as application/pdf. |
sizeBytes | integer (int64) | Yes | Declared file size in bytes. Direct and multipart uploads each support up to 1 GiB. |
visibility | string | No | With private, only authorized principals can obtain a signed URL. With public, anyone can access the file. Choose visibility explicitly for the intended use. |
sessionId | string | No | Optional business session identifier. Up to 64 UTF-8 bytes after trimming surrounding whitespace. |
partSizeBytes | integer (int64) | No | Requested part size in bytes. Omit, set to 0, or supply less than 5 MiB to use 10 MiB. Use the actual part size returned in the response. |
PlatformV2MultipartCreateResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2MultipartPartsReq
| Field | Type | Required | Description |
|---|
filePath | string | Yes | Managed file identity returned by an upload operation; not a local filesystem path or arbitrary object-storage key. Permissions follow the creating identity and business binding. |
uploadId | string | Yes | Session identifier returned by multipart initialization. Use it together with filePath exactly as returned. |
partNumbers | array<integer (int64)> | Yes | Not specified in OpenAPI |
PlatformV2MultipartPartsResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2NotificationSendReq
| Field | Type | Required | Description |
|---|
recipientUserId | string | Yes | Recipient user ID as a positive integer string to preserve large integer precision. |
type | string | No | Not specified in OpenAPI |
title | string | Yes | Not specified in OpenAPI |
content | string | Yes | Not specified in OpenAPI |
idempotencyKey | string | Yes | Not specified in OpenAPI |
mode | string | No | Not specified in OpenAPI |
link | string | No | Business link starting with http://, https://, or /. Credentials, protocol-relative URLs, and control characters are forbidden. |
channels | array<string> | No | Omit or pass an empty array to send a silent inbox message. Enterprise accepts web/mobile metadata without sending external push notifications. The get operation returns not_configured for external channels. sent means the message was persisted in the local inbox. |
source | string | No | Not specified in OpenAPI |
wechatEventRef | string | No | Not specified in OpenAPI |
sender | object | No | Not specified in OpenAPI |
PlatformV2NotificationSendResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
messageId | string | Yes | Not specified in OpenAPI |
type | string | No | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
createdAt | string (date-time) | Yes | Not specified in OpenAPI |
completedAt | string (date-time) | No | Not specified in OpenAPI |
errorCode | string | No | Not specified in OpenAPI |
message | string | No | Not specified in OpenAPI |
recipientUserId | string | Yes | Not specified in OpenAPI |
recipientName | string | No | Not specified in OpenAPI |
PlatformV2NotificationStatusGetReq
| Field | Type | Required | Description |
|---|
messageId | string | Yes | Message ID returned by send. |
PlatformV2NotificationStatusGetResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2ProjectMembersListReq
| Field | Type | Required | Description |
|---|
projectId | string | Yes | Target project ID as a positive integer string. |
page | integer (int64) | No | Page number. Uses page 1 when omitted or set to 0. |
size | integer (int64) | No | Results per page, up to 100. Uses 20 when omitted or set to 0. |
PlatformV2ProjectMembersListResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2UsersListReq
| Field | Type | Required | Description |
|---|
search | string | No | Search text for supported fields such as usernames and display names. |
page | integer (int64) | No | Page number. Uses page 1 when omitted or set to 0. |
size | integer (int64) | No | Results per page, up to 100. Uses 20 when omitted or set to 0. |
roleKeys | array<string> | No | Matches any specified platform role. |
statuses | array<string> | No | Not specified in OpenAPI |
updatedAtStart | string (date-time) | No | Start of the last-update time range, in RFC3339 format. |
updatedAtEnd | string (date-time) | No | End of the last-update time range, in RFC3339 format. |
PlatformV2UsersListResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
PlatformV2WhoamiErrorResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | Yes | Actual HTTP status code. |
msg | string | Yes | Not specified in OpenAPI |
requestId | string | Yes | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
error | object | Yes | Not specified in OpenAPI |
PublicStreamRequest
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
description | string | Yes | 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 (int64) | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
RecordDocument
Ordinary business Record. Business fields are in data; system properties are siblings. filter/projection use bare business fields and _id/_meta.*, independently of this response object's paths. lock describes only an active lease and never returns its token.
| 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. |
RecordTTL
| Field | Type | Required | Description |
|---|
expireAfterSeconds | integer | Yes | Not specified in OpenAPI |
path | string | Yes | Not specified in OpenAPI |
Release
Identity is (streamId,release); immutable snapshot created by stream.publish; Query the owning Stream; use expectedRevision and dependsOn before publishing a dependent Stream
| Field | Type | Required | Description |
|---|
definition | object | Yes | StreamDefinition. See the referenced schema in the Schemas section. |
publishedAt | integer | Yes | Not specified in OpenAPI |
Result
| Field | Type | Required | Description |
|---|
action | string | Yes | Not specified in OpenAPI |
collectionId | string | No | Collection ID owning the business Records and Samples. |
data | object | No | Business data payload used by transaction result bindings. Read document for the complete resource object. |
delivery | object | No | WriteDelivery. See the referenced schema in the Schemas section. |
document | object | No | RecordDocument. See the referenced schema in the Schemas section. |
error | object | No | Fault. See the referenced schema in the Schemas section. |
id | string | No | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
kind | string | No | Not specified in OpenAPI |
opId | string | Yes | Operation identifier unique within this transaction, used for dependencies and result references. |
query | object | No | TransactionQueryResult. See the referenced schema in the Schemas section. |
recordId | string | No | Not specified in OpenAPI |
release | integer | No | Not specified in OpenAPI |
revision | integer | No | Not specified in OpenAPI |
sourceId | string | No | Not specified in OpenAPI |
status | string | Yes | pendingUpload means durably accepted for remote delivery, not center storage confirmation. |
time | integer | No | Unix milliseconds. |
transactionTime | integer | No | Not specified in OpenAPI |
RetryAdvice
| Field | Type | Required | Description |
|---|
recommendedAction | string | Yes | Next recovery action; grants no additional business permissions. |
canRetrySameRequest | boolean | Yes | Whether the exact same request can be sent again. Check status first when advised. |
keepIdempotencyKey | boolean | Yes | Retain the original idempotency key when recovering the same intent; do not execute again with a new key. |
Role
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
name | string | Yes | Not specified in OpenAPI |
RuntimeProgramTestInput
Isolated preview envelope; data is passed to the selected entry. sourceSamples maps Source alias to operation key to JSON result. topicSamples maps UNS alias to JSON value. checkpointSample is at most 16 KiB of JSON.
| Field | Type | Required | Description |
|---|
checkpointSample | object | No | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
previewWrites | boolean | No | Compare proposed UNS writes with current data; requires uns.read and does not commit |
sourceSamples | object | No | Not specified in OpenAPI |
topicSamples | object | No | Not specified in OpenAPI |
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 string obtained from discovery or a read operation. 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
A standard sample object, uniquely identified by collectionId, recordId, and time. id and time have a one-to-one correspondence for references using Cloud's {recordId,id,time} triple. Business fields are in data; time, quality, record identity, and available source information are at the same level as data.
| Field | Type | Required | Description |
|---|
id | string | Yes | Sample ID, unique within the same Record; Enterprise derives it from time as a decimal string of Unix milliseconds. |
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 |
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 |
format | string | 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 |
SlowQueryAdvice
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
indexId | string | No | Not specified in OpenAPI |
SlowQueryShapeView
| Field | Type | Required | Description |
|---|
advice | object | Yes | SlowQueryAdvice. See the referenced schema in the Schemas section. |
calls | integer | Yes | Not specified in OpenAPI |
eq | array<string> | Yes | Not specified in OpenAPI |
in | array<string> | Yes | Not specified in OpenAPI |
noIndexable | array<string> | Yes | Not specified in OpenAPI |
op | string | Yes | Not specified in OpenAPI |
p95Ms | number | Yes | Not specified in OpenAPI |
range | array<string> | Yes | Not specified in OpenAPI |
shapeHash | string | Yes | Not specified in OpenAPI |
sort | array<object> | Yes | Not specified in OpenAPI |
timeouts | integer | Yes | Not specified in OpenAPI |
SlowQuerySortField
| Field | Type | Required | Description |
|---|
direction | string | Yes | Not specified in OpenAPI |
field | string | Yes | Not specified in OpenAPI |
SourceCheckResult
| Field | Type | Required | Description |
|---|
mode | string | Yes | Not specified in OpenAPI |
health | string | Yes | Not specified in OpenAPI |
stage | string | Yes | Not specified in OpenAPI |
errorCode | string | Yes | Not specified in OpenAPI |
message | string | Yes | Not specified in OpenAPI |
checkedAt | integer | Yes | Not specified in OpenAPI |
latencyMs | integer | Yes | Not specified in OpenAPI |
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 |
SourceData
Source owns connection, protocol resources and credential references only; Acquisition and processing belong to Stream; storage belongs to an independent Collection policy; Edge Source references an enrolled Edge and exposes its authorized Stream outputs; use an ordinary center Stream to consume them; Credentials remain on their dedicated API
| Field | Type | Required | Description |
|---|
adapter | string | Yes | Select exactly this protocol; http-api is not http |
config | object | Yes | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
name | string | Yes | Unique display name; no surrounding whitespace |
schemaVersion | integer | Yes | Not specified in OpenAPI |
SourceDefinition
Unified Source connection. Choose the matching protocol object. 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. |
kafka | object | No | Not specified in OpenAPI |
industrial | object | No | Not specified in OpenAPI |
snmp | object | No | Not specified in OpenAPI |
fieldbusTimeoutMs | integer | No | Native fieldbus device timeout (ms). |
connectionCheckTimeoutMs | integer | No | Connection check limit (ms). |
SourceDefinitionPatch
Unified Source connection. Choose the matching protocol object; edge-sql uses one of sql.query (preset) or sql.queries (named). Query the target protocol catalog for installed execution, TLS and state capabilities.
| 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. |
fieldbusTimeoutMs | integer | No | Not specified in OpenAPI |
connectionCheckTimeoutMs | integer | No | Not specified in OpenAPI |
SQLConnection
Database connection. A connection-only Source uses Stream acquisition.queries for SQL reads.
| 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 | Optional Source-owned named queries. A Stream may declare its own queries only when the Source has no preset or named queries. |
tlsMode | string | No | Not specified in OpenAPI |
queryTimeoutMs | integer | No | SQL read timeout (ms). |
insertTargets | object | No | Not specified in OpenAPI |
StreamData
Draft defines processor and output schemas, plus optional execution; Saving a draft never executes; publication creates an immutable numbered release; Edge execution references a published Source revision and an output Collection; storage is configured independently on that Collection; A published Edge release executes only on that Edge; changing a draft does not change running configuration; Processor uses bounded JavaScript process(input,params,context); unrelated edits retain hidden code
| Field | Type | Required | Description |
|---|
description | string | No | Not specified in OpenAPI |
draft | object | Yes | StreamDefinition. See the referenced schema in the Schemas section. |
executionMode | string | No | Not specified in OpenAPI |
name | string | Yes | Unique display name; no surrounding whitespace |
schemaVersion | integer | Yes | Not specified in OpenAPI |
StreamDataView
Draft defines processor and output schemas, plus optional execution; Saving a draft never executes; publication creates an immutable numbered release; Edge execution references a published Source revision and an output Collection; storage is configured independently on that Collection; A published Edge release executes only on that Edge; changing a draft does not change running configuration; Processor uses bounded JavaScript process(input,params,context); unrelated edits retain hidden code
| Field | Type | Required | Description |
|---|
description | string | No | Not specified in OpenAPI |
draft | object | Yes | StreamDefinition. See the referenced schema in the Schemas section. |
executionMode | string | No | Not specified in OpenAPI |
name | string | Yes | Unique display name; no surrounding whitespace |
schemaVersion | integer | Yes | Not specified in OpenAPI |
releases | object | No | Not specified in OpenAPI |
StreamDefinition
| 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 |
StreamRequestDescribeReq
{
"type": "object",
"additionalProperties": false,
"properties": {}
}StreamRequestDiscoverReq
| Field | Type | Required | Description |
|---|
page | integer (int64) | No | Uses page 1 when omitted or set to 0. |
size | integer (int64) | No | Uses 20 when omitted or set to 0. |
search | string | No | Up to 256 UTF-8 bytes. |
StreamRequestDiscoverResp
| Field | Type | Required | Description |
|---|
total | integer (int64) | Yes | Not specified in OpenAPI |
list | array<object> | Yes | Not specified in OpenAPI |
StreamRequestError
| Field | Type | Required | Description |
|---|
errorCode | string | Yes | Not specified in OpenAPI |
message | string | Yes | Not specified in OpenAPI |
StreamRequestInvokeReq
| Field | Type | Required | Description |
|---|
input | object | Yes | Required. Accepts any JSON value that conforms to the contract inputSchema. Pass null when there is no business input. |
idempotencyKey | string | No | Up to 128 UTF-8 bytes without surrounding whitespace. A write/required contract requires a nonempty, durable key. Replays must reuse the same key and input. |
StreamRequestInvokeResp
| Field | Type | Required | Description |
|---|
code | string | Yes | Not specified in OpenAPI |
contractVersion | string | Yes | Not specified in OpenAPI |
result | object | Yes | Business result that conforms to the contract outputSchema. May be null. |
runID | string | Yes | Not specified in OpenAPI |
status | string | Yes | Not specified in OpenAPI |
replayed | boolean | Yes | 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 string obtained from discovery or a read operation. 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 |
TransactionStatusResult
| Field | Type | Required | Description |
|---|
committedAt | integer | No | Commit receipt timestamp, Unix milliseconds; not the physical device/WMS execution time. |
deliveries | array<object> | No | Not specified in OpenAPI |
itemCount | integer | No | Not specified in OpenAPI |
jobId | string | No | Not specified in OpenAPI |
retryAdvice | object | Yes | RetryAdvice. See the referenced schema in the Schemas section. |
status | string | Yes | unknown does not prove rollback. Recover using the original request and key according to retryAdvice. succeeded means the asynchronous job succeeded; committed means a local commit receipt exists; accepted means durably received and awaiting upload, not persisted at the center. |
UnsV2AppCollectionAliasReq
| Field | Type | Required | Description |
|---|
alias | string | Yes | Not specified in OpenAPI |
UnsV2AppCollectionsEnsureReq
| Field | Type | Required | Description |
|---|
appId | string | No | Not specified in OpenAPI |
dryRun | boolean | No | Not specified in OpenAPI |
collections | array<object> | Yes | Not specified in OpenAPI |
UnsV2AppCollectionsEnsureResponse
| 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 |
UnsV2AppCollectionsListReq
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
UnsV2AppCollectionsListResponse
| 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 |
UnsV2AppCollectionsSchemaReplaceReq
| Field | Type | Required | Description |
|---|
alias | string | Yes | Not specified in OpenAPI |
recordSchema | object | Yes | Schema. See the referenced schema in the Schemas section. |
indexes | array<object> | Yes | Not specified in OpenAPI |
description | string | No | Not specified in OpenAPI |
expectedRevision | integer | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Not specified in OpenAPI |
UnsV2AppCollectionsSchemaReplaceResponse
| 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 |
UnsV2AppCollectionStateResponse
| 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 |
UnsV2AppContextReq
{
"type": "object",
"additionalProperties": false,
"properties": {}
}UnsV2AppCreateReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
UnsV2AppCreateResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2AppGetReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
UnsV2AppGetResponse
| 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 |
UnsV2AppGrantsUpdateReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
UnsV2AppGrantsUpdateResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2AppKeyCreateReq
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
name | string | Yes | Not specified in OpenAPI |
UnsV2AppKeyRevokeReq
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
keyId | string | Yes | Not specified in OpenAPI |
UnsV2AppListReq
| Field | Type | Required | Description |
|---|
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
archived | boolean | No | true lists archived objects only; false lists active objects only. |
UnsV2AppListResponse
| 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 |
UnsV2AppMembersUpdateReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
UnsV2AppMembersUpdateResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2AppNavigationUpdateReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
UnsV2AppNavigationUpdateResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2AppPlatformPermissionsUpdateReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
UnsV2AppPlatformPermissionsUpdateResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2AppReplaceReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | No | Optional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
replacement | object | Yes | AppData. See the referenced schema in the Schemas section. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
UnsV2AppReplaceResponse
| 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 |
UnsV2AppRolesUpdateReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
UnsV2AppRolesUpdateResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2AppSessionInspectReq
| Field | Type | Required | Description |
|---|
appId | string | Yes | Not specified in OpenAPI |
token | string | Yes | Not specified in OpenAPI |
UnsV2AppSessionInspectResponse
| 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 | AppSessionIdentity. See the referenced schema in the Schemas section. |
UnsV2AppStreamAccessListReq
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
streamId | string | No | Not specified in OpenAPI |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
includeInactive | integer | No | Not specified in OpenAPI |
UnsV2AppStreamAccessListResponse
| 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 |
UnsV2AppStreamPolicyGetReq
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
UnsV2AppStreamPolicyGetResponse
| 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 | AppStreamPolicyView. See the referenced schema in the Schemas section. |
UnsV2AppStreamPolicyUpdateReq
| Field | Type | Required | Description |
|---|
appId | string (uuid) | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Expected revision; provide it after reading the current object. On conflict, reread and decide how to proceed instead of blindly overwriting. Shared App metadata revision; zero only when no metadata exists. Read the current revision before updating. |
status | string | Yes | Not specified in OpenAPI |
platformPermissions | array<string> | Yes | Not specified in OpenAPI |
messageTopics | array<object> | No | Not specified in OpenAPI |
idempotencyKey | string | Yes | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
UnsV2AppStreamPolicyUpdateResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2AppUpdateReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
UnsV2AppUpdateResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2ArrayElementFilter
Use comparison operators for scalar elements, or field conditions relative to each element for object elements; nested logical combinations are supported. pull does not accept $expr.
{
"type": "object",
"minProperties": 1,
"additionalProperties": true,
"description": "Use comparison operators for scalar elements, or field conditions relative to each element for object elements; nested logical combinations are supported. pull does not accept $expr."
}UnsV2CatalogReq
{
"type": "object",
"additionalProperties": false,
"properties": {}
}UnsV2CollectionDescribeReq
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID owning the business Records and Samples. |
UnsV2CollectionDescribeResponse
| 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. |
UnsV2DataDiscoverResponse
| 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. |
UnsV2DataFilter
Unified predicate: use field or customer.name directly for business paths; use _id and _meta.revision/createdAt/updatedAt/sourceId/sourceTime/locked for system paths. Sample uses _meta.recordId/time/receivedAt/quality/streamId/bindingId. A direct value is equivalent to $eq. Supports scalar comparisons, array $elemMatch/$all/$size, logical combinations, and restricted $expr. Paths are dot-separated; write a literal dot as \. and a backslash as \\, and escape backslashes again in JSON. Maximum 512 bytes/10 segments. Arrays require explicit indexes; implicit traversal is not supported. Field types are validated against the Schema; SQL and scripts are not accepted. Record writes must match exactly one record by default. $eq:null matches null or missing; $ne:null matches present, non-null values; $ne with a non-null value includes missing fields. $exists distinguishes present from missing; explicit null counts as present.
| 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. |
UnsV2DiscoverySearchReq
| Field | Type | Required | Description |
|---|
search | string | No | Search by name or supported text fields; not SQL. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. At most 200 items per page. |
UnsV2Distinct
Deduplicates by the combination of fields specified in by and outputs the alias fields. Results use standard offset pagination. To count unique values, use $distinct followed by $count; no countDistinct stage is added.
| Field | Type | Required | Description |
|---|
by | object | Yes | UnsV2DistinctBy. See the referenced schema in the Schemas section. |
UnsV2DistinctBy
Mapping from output aliases to input field references. Aliases must be valid top-level field paths using the same escaping rules; empty names, $ prefixes, control characters, and reserved prototype names are prohibited. An input row is discarded if any referenced field is missing; explicit null is retained. Arrays are compared as whole values; use $unwind first to deduplicate elements.
{
"type": "object",
"minProperties": 1,
"maxProperties": 16,
"additionalProperties": {
"type": "string",
"minLength": 2,
"maxLength": 513,
"pattern": "^\\$[^$].*$",
"description": "A declared field path with a single $ prefix, such as $status; expressions and $$ variables are not accepted."
},
"description": "Mapping from output aliases to input field references. Aliases must be valid top-level field paths using the same escaping rules; empty names, $ prefixes, control characters, and reserved prototype names are prohibited. An input row is discarded if any referenced field is missing; explicit null is retained. Arrays are compared as whole values; use $unwind first to deduplicate elements."
}UnsV2EdgeCollectionSyncValidateReq
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID owning the business Records and Samples. |
UnsV2EdgeCollectionSyncValidateResponse
| 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 |
UnsV2EdgeConfigGetReq
| Field | Type | Required | Description |
|---|
section | string | Yes | Not specified in OpenAPI |
UnsV2EdgeConfigResponse
| 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 |
UnsV2EdgeConfigUpdateReq
| Field | Type | Required | Description |
|---|
section | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | Yes | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
config | object | Yes | Not specified in OpenAPI |
collectionId | string | No | Collection ID owning the business Records and Samples. |
expectedCollectionRevision | integer | No | Not specified in OpenAPI |
UnsV2EdgeNodesListReq
| 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 |
UnsV2EdgeNodesListResponse
| Field | Type | Required | Description |
|---|
code | integer (int64) | 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 |
UnsV2Envelope
| 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 |
UnsV2ErrorResponse
| 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 |
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 is matched by equality of the complete JSON element. |
$size | integer | No | Not specified in OpenAPI |
$elemMatch | object | No | UnsV2ArrayElementFilter. See the referenced schema in the Schemas section. |
$contains | string | No | Not specified in OpenAPI |
$like | string | No | Not specified in OpenAPI |
$ilike | string | No | Not specified in OpenAPI |
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 is matched by equality of the complete JSON element. |
$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 | Not specified in OpenAPI |
$like | string | No | Not specified in OpenAPI |
$ilike | string | No | Not specified in OpenAPI |
UnsV2FilterScalar
{
"oneOf": [
{
"type": "string",
"nullable": true
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}UnsV2Frequencies
Counts frequencies by the combination of fields specified in by, outputting the alias fields and a fixed count field. Counts are based on the current stage's input; results can be sorted or filtered further.
| Field | Type | Required | Description |
|---|
by | object | Yes | Uses the same field combinations and missing/null rules as distinct; an alias cannot be count. |
UnsV2History
| Field | Type | Required | Description |
|---|
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
timeRange | object | No | UnsV2TimeRange. See the referenced schema in the Schemas section. |
UnsV2Identity
{
"oneOf": [
{
"type": "string",
"maxLength": 128
},
{
"type": "object",
"required": [
"ref"
],
"additionalProperties": false,
"properties": {
"ref": {
"type": "string"
}
}
}
]
}UnsV2JobsDocumentedRequest
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
UnsV2JobsQuery
| Field | Type | Required | Description |
|---|
queryId | string | Yes | Identifier unique within this query batch, used to match results. |
jobIds | array<string> | No | Not specified in OpenAPI |
UnsV2ManagedBy
| Field | Type | Required | Description |
|---|
sourceId | object | Yes | UnsV2Identity. See the referenced schema in the Schemas section. |
instanceId | string | Yes | Not specified in OpenAPI |
UnsV2MetadataAggregateReq
| Field | Type | Required | Description |
|---|
kind | string | No | Not specified in OpenAPI |
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. The $distinct stage sorts by JSONB value and uses outer pagination. |
page | object | No | Not specified in OpenAPI |
limit | integer | No | Not specified in OpenAPI |
UnsV2MetadataAggregateResponse
| 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 |
UnsV2MetadataBulkWriteReq
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
operations | array<object> | Yes | Not specified in OpenAPI |
atomic | boolean | No | The entire batch commits atomically by default. Set false to commit items independently. Full authorization and domain validation still apply to each object. |
ordered | boolean | No | With atomic=false, controls whether to stop or continue after a failure. Atomic batches reject ordered=false. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
UnsV2MetadataBulkWriteResponse
| 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 |
UnsV2MetadataCountReq
| Field | Type | Required | Description |
|---|
kind | string | No | Not specified in OpenAPI |
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. |
UnsV2MetadataCountResponse
| 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 |
UnsV2MetadataDeleteManyReq
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
atomic | boolean | No | The entire batch commits atomically. Use bulkWrite to commit individual items. |
maxDocs | integer | No | Rejects the entire operation if the match limit is exceeded. The write set is never truncated. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
UnsV2MetadataDeleteManyResponse
| 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 |
UnsV2MetadataDeleteOneReq
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
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. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
returnDocument | string | No | none returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
UnsV2MetadataDeleteOneResponse
| 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 |
UnsV2MetadataFindReq
| Field | Type | Required | Description |
|---|
kind | string | No | Not specified in OpenAPI |
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 |
UnsV2MetadataFindResponse
| 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. |
UnsV2MetadataInsertOneReq
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
id | string | No | Not specified in OpenAPI |
data | object | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
UnsV2MetadataInsertOneResponse
| 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 |
UnsV2MetadataPurgeReq
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
ids | array<string> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
UnsV2MetadataPurgeResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2MetadataReplaceOneReq
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
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. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
replacement | object | Yes | Not specified in OpenAPI |
upsert | boolean | No | Supported for single-resource updates and replacements. The filter must specify equality on _id, and the new configuration must be complete and valid. A deleted object with the same ID is never restored automatically. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
returnDocument | string | No | none returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
UnsV2MetadataReplaceOneResponse
| 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 |
UnsV2MetadataRestoreReq
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
UnsV2MetadataRestoreResponse
| 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 |
UnsV2MetadataTransactReq
| Field | Type | Required | Description |
|---|
operations | array<object> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
UnsV2MetadataTransactResponse
| 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 |
UnsV2MetadataUpdateManyReq
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
filter | object | Yes | UnsV2DataFilter. See the referenced schema in the Schemas section. |
update | object | Yes | Supports only $set, $unset, and $setOnInsert. Configuration paths omit the data. prefix. System fields are read-only. An array update replaces the whole field. |
atomic | boolean | No | The entire batch commits atomically. Use bulkWrite to commit individual items. |
maxDocs | integer | No | Rejects the entire operation if the match limit is exceeded. The write set is never truncated. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
UnsV2MetadataUpdateManyResponse
| 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 |
UnsV2MetadataUpdateOneReq
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
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. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
update | object | Yes | Supports only $set, $unset, and $setOnInsert. Configuration paths omit the data. prefix. System fields are read-only. An array update replaces the whole field. |
upsert | boolean | No | Supported for single-resource updates and replacements. The filter must specify equality on _id, and the new configuration must be complete and valid. A deleted object with the same ID is never restored automatically. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
returnDocument | string | No | none returns the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
UnsV2MetadataUpdateOneResponse
| 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 |
UnsV2NamespaceCopyReq
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | No | Optional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
data | object | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
UnsV2NamespaceCopyResponse
| 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 |
UnsV2NamespaceDocumentedRequest
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
UnsV2NamespaceQuery
| Field | Type | Required | Description |
|---|
queryId | string | Yes | Identifier unique within this query batch, used to match results. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
kinds | array<string> | No | Not specified in OpenAPI |
ids | array<string> | No | Not specified in OpenAPI |
parentId | object | No | Not specified in OpenAPI |
includeAncestors | boolean | No | Not specified in OpenAPI |
includeArchived | boolean | No | Not specified in OpenAPI |
UnsV2Page
| Field | Type | Required | Description |
|---|
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
UnsV2PipelineAccumulator
$stdDevPop/$stdDevSamp compute the population/sample standard deviation of numeric values. $first/$last return the expression value from the first/last row of each group in pipeline order before grouping. When grouping Sample directly, rows are ordered by sample time, Record ID, and Sample ID. Use $sort first to specify a business order. Missing or null values return null.
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"$sum": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$sum"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$avg": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$avg"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$min": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$min"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$max": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$max"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$stdDevPop": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$stdDevPop"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$stdDevSamp": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$stdDevSamp"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$first": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$first"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$last": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$last"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$count": {
"type": "object",
"maxProperties": 0
}
},
"required": [
"$count"
]
}
],
"description": "$stdDevPop/$stdDevSamp compute the population/sample standard deviation of numeric values. $first/$last return the expression value from the first/last row of each group in pipeline order before grouping. When grouping Sample directly, rows are ordered by sample time, Record ID, and Sample ID. Use $sort first to specify a business order. Missing or null values return null."
}UnsV2PipelineExpression
A $field path reference or scalar constant; $literal forces a constant. Arithmetic accepts only numbers; $divide returns null when the denominator is 0; $ifNull explicitly provides a default for missing/null values. $expr must produce a boolean; the $cond condition must be boolean and both branches must have compatible types. Conversion failures are errors; missing/null values propagate. $trim input/chars must both be string expressions; omitting chars trims whitespace. $dateTrunc input and output are Unix milliseconds; timezone is an IANA time zone; startOfWeek applies only to week. Maximum expression depth is 8 and maximum node count is 512. Each $concat intermediate result is limited to 1 MiB of UTF-8 bytes; exceeding this limit returns EXPRESSION_BUDGET_EXCEEDED. Arbitrary functions are not supported.
{
"oneOf": [
{
"$ref": "#/components/schemas/UnsV2FilterScalar"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$ifNull": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$ifNull"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$add": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$add"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$subtract": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$subtract"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$multiply": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$multiply"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$divide": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$divide"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$literal": {
"$ref": "#/components/schemas/UnsV2FilterScalar"
}
},
"required": [
"$literal"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$eq": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$eq"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$ne": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$ne"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$gt": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$gt"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$gte": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$gte"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$lt": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$lt"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$lte": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 2,
"maxItems": 2
}
},
"required": [
"$lte"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$and": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 1,
"maxItems": 64
}
},
"required": [
"$and"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$or": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 1,
"maxItems": 64
}
},
"required": [
"$or"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$not": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 1,
"maxItems": 1
}
},
"required": [
"$not"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$cond": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 3,
"maxItems": 3
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"if": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"then": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"else": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"if",
"then",
"else"
]
}
]
}
},
"required": [
"$cond"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$concat": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"minItems": 1,
"maxItems": 64
}
},
"required": [
"$concat"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toLower": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toLower"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toUpper": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toUpper"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$strLenCP": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$strLenCP"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toString": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toString"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toDecimal": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toDecimal"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toLong": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toLong"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$toBool": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"$toBool"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$trim": {
"type": "object",
"additionalProperties": false,
"properties": {
"input": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"chars": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
},
"required": [
"input"
]
}
},
"required": [
"$trim"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$convert": {
"type": "object",
"additionalProperties": false,
"properties": {
"input": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"to": {
"type": "string",
"enum": [
"string",
"decimal",
"long",
"bool"
]
}
},
"required": [
"input",
"to"
]
}
},
"required": [
"$convert"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$dateTrunc": {
"type": "object",
"additionalProperties": false,
"properties": {
"date": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"unit": {
"type": "string",
"enum": [
"millisecond",
"second",
"minute",
"hour",
"day",
"week",
"month",
"quarter",
"year"
]
},
"timezone": {
"type": "string",
"default": "UTC"
},
"binSize": {
"type": "integer",
"minimum": 1,
"maximum": 1000000,
"default": 1,
"description": "Values greater than 1 support only fixed-duration UTC millisecond/second/minute/hour/day buckets aligned to the Unix epoch; 1 supports calendar units and time zones."
},
"startOfWeek": {
"type": "string",
"enum": [
"sunday",
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday"
],
"default": "sunday"
}
},
"required": [
"date",
"unit"
]
}
},
"required": [
"$dateTrunc"
]
}
],
"description": "A $field path reference or scalar constant; $literal forces a constant. Arithmetic accepts only numbers; $divide returns null when the denominator is 0; $ifNull explicitly provides a default for missing/null values. $expr must produce a boolean; the $cond condition must be boolean and both branches must have compatible types. Conversion failures are errors; missing/null values propagate. $trim input/chars must both be string expressions; omitting chars trims whitespace. $dateTrunc input and output are Unix milliseconds; timezone is an IANA time zone; startOfWeek applies only to week. Maximum expression depth is 8 and maximum node count is 512. Each $concat intermediate result is limited to 1 MiB of UTF-8 bytes; exceeding this limit returns EXPRESSION_BUDGET_EXCEEDED. Arbitrary functions are not supported."
}UnsV2PipelinePage
| Field | Type | Required | Description |
|---|
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
mode | string | No | Pipelines containing only $match/$sort default to cursor (keyset) pagination. Other pipelines default to offset and do not support cursor. |
page | integer | No | Page number, starting at 1. |
cursor | string | No | Signed keyset token preserving complete sort values and unique identity. Bound to the query, Collection, Schema/revisions and caller, valid for 7 days. Restart after changing identity, Schema or signing key. Does not freeze a snapshot across requests. |
UnsV2PipelineSort
ordered sort pairs: [[field, 1|-1], ...]. Server appends _id as a stable tie breaker.
{
"type": "array",
"items": {
"type": "array",
"items": {
"oneOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "integer",
"enum": [
1,
-1
]
}
]
},
"minItems": 2,
"maxItems": 2
},
"minItems": 1,
"maxItems": 4,
"description": "ordered sort pairs: [[field, 1|-1], ...]. Server appends _id as a stable tie breaker."
}UnsV2PipelineStage
Each stage must contain exactly one operator; stages execute in order. $lookup performs an equality join first, then runs its pipeline, returning an array. Each target collection is authorized separately.
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"$match": {
"$ref": "#/components/schemas/UnsV2DataFilter"
}
},
"required": [
"$match"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$project": {
"type": "object",
"minProperties": 1,
"maxProperties": 64,
"additionalProperties": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"description": "Field inclusion/exclusion (1/0) or expressions. Supports nested output paths such as field, with references written as $field. Inclusion and exclusion cannot be mixed, except for _id."
}
},
"required": [
"$project"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$set": {
"type": "object",
"minProperties": 1,
"maxProperties": 64,
"additionalProperties": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
"description": "Adds or replaces computed fields, supports nested paths, and accepts only allowlisted expressions."
}
},
"required": [
"$set"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$sort": {
"$ref": "#/components/schemas/UnsV2PipelineSort"
}
},
"required": [
"$sort"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$group": {
"type": "object",
"required": [
"_id"
],
"properties": {
"_id": {
"anyOf": [
{
"$ref": "#/components/schemas/UnsV2PipelineExpression"
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/UnsV2PipelineExpression"
}
}
]
}
},
"additionalProperties": {
"$ref": "#/components/schemas/UnsV2PipelineAccumulator"
},
"description": "_id specifies a single value, null, or an object as the grouping key. Supports $sum/$avg/$min/$max/$count/$stdDevPop/$stdDevSamp/$first/$last, which can be combined in one grouping stage."
}
},
"required": [
"$group"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$distinct": {
"$ref": "#/components/schemas/UnsV2Distinct"
}
},
"required": [
"$distinct"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$frequencies": {
"$ref": "#/components/schemas/UnsV2Frequencies"
}
},
"required": [
"$frequencies"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$lookup": {
"type": "object",
"additionalProperties": false,
"properties": {
"collectionId": {
"type": "string"
},
"recordId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"kind": {
"type": "string",
"enum": [
"records",
"samples"
],
"default": "records"
},
"localField": {
"type": "string"
},
"foreignField": {
"type": "string"
},
"as": {
"type": "string"
},
"pipeline": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UnsV2PipelineStage"
}
}
},
"required": [
"collectionId",
"localField",
"foreignField",
"as"
],
"oneOf": [
{
"properties": {
"kind": {
"enum": [
"samples"
]
}
},
"required": [
"kind",
"recordId"
]
},
{
"properties": {
"kind": {
"enum": [
"records"
]
}
},
"not": {
"required": [
"recordId"
]
}
}
],
"description": "kind=samples requires a fixed recordId, with the join scope restricted to that Record; records prohibits recordId. foreignField requires a ready B-tree index with that field as its leading field, or an applicable built-in identity index. The primary input is limited to 1000 rows, raw joined rows to 10000 per input row, stage intermediate results to 8 MiB, and each final joined array to 200 items. Exceeding a limit causes an explicit failure, without silent truncation; the subpipeline can filter or aggregate."
}
},
"required": [
"$lookup"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$unwind": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
},
"preserveNullAndEmptyArrays": {
"type": "boolean"
}
},
"required": [
"path"
]
}
]
}
},
"required": [
"$unwind"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$skip": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
}
},
"required": [
"$skip"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$limit": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
}
},
"required": [
"$limit"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$count": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"description": "A valid top-level output field name, following the unified path escaping and reserved-name rules. Outputs one row containing a count; empty input returns 0. Explicit page is prohibited when this is the last stage; if more stages follow, normal pagination applies to the final result."
}
},
"required": [
"$count"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$exists": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"description": "A valid top-level output field name, following the unified path escaping and reserved-name rules. Outputs one row containing a boolean indicating whether the current stage has any input rows; empty input returns false. Explicit page is prohibited when this is the last stage; if more stages follow, normal pagination applies to the final result."
}
},
"required": [
"$exists"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"$unionWith": {
"type": "object",
"additionalProperties": false,
"properties": {
"collectionId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"pipeline": {
"type": "array",
"maxItems": 32,
"items": {
"$ref": "#/components/schemas/UnsV2PipelineStage"
}
}
},
"required": [
"collectionId"
],
"description": "Appends the target collection's records subpipeline results to the current results, retaining duplicates, with PostgreSQL UNION ALL semantics. A subsequent $group can deduplicate; $sort/$skip/$limit/$count apply to the entire combined result. Each target collection is checked independently against existing read permissions. Branches share the current read-only snapshot and the limits of 32 stages per branch, 64 stages in total, 4 nesting levels, and query/response budgets. Fields with the same name must have compatible types; project and convert them first if needed. Targets support only records, do not accept kind/recordId, and do not promise full MongoDB compatibility."
}
},
"required": [
"$unionWith"
]
}
],
"description": "Each stage must contain exactly one operator; stages execute in order. $lookup performs an equality join first, then runs its pipeline, returning an array. Each target collection is authorized separately."
}UnsV2QueryCountExpectation
| Field | Type | Required | Description |
|---|
min | integer | No | Not specified in OpenAPI |
max | integer | No | Not specified in OpenAPI |
UnsV2RecordAggregatePipelineReqBody
| 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 | Not specified in OpenAPI |
UnsV2RecordAggregatePipelineResponse
| 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. |
UnsV2RecordBulkWriteReqBody
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
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 up to 200 items for document actions. false commits each document separately. |
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 |
UnsV2RecordBulkWriteResponse
| 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 |
UnsV2RecordChange
| Field | Type | Required | Description |
|---|
update | object | No | update document, mutually exclusive with legacy operations. |
arrayFilters | array<object> | No | Not specified in OpenAPI |
upsert | boolean | No | When true, filter must contain an _id equality condition or equality conditions covering all fields of a ready unique index; otherwise, returns UPSERT_REQUIRES_UNIQUE_INDEX. Inserts if no record matches; a uniqueness conflict returns 409 DUPLICATE_KEY. |
opId | string | Yes | Operation identifier unique within this transaction, used for dependencies and result references. |
action | string | Yes | Not specified in OpenAPI |
kind | string | No | Not specified in OpenAPI |
id | object | No | Object ID (string), obtained from a discovery or read endpoint; do not use a name as an ID. Existing record actions select exactly one record using filter, an explicit id, or an id result binding. Static id and id binding cannot coexist. When id and filter are both supplied they must match the same record. record.query has no id. Creation may omit id for server allocation. |
collectionId | object | No | UnsV2Identity. See the referenced schema in the Schemas section. |
recordId | object | No | UnsV2Identity. See the referenced schema in the Schemas section. |
streamId | object | No | UnsV2Identity. See the referenced schema in the Schemas section. |
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
data | object | No | Not specified in OpenAPI |
dependsOn | array<string> | No | opId values that must complete first; the server checks for dependency cycles. |
managedBy | object | No | UnsV2ManagedBy. See the referenced schema in the Schemas section. |
time | integer | No | Business sample time, in Unix milliseconds; this is not the server receipt time. |
quality | string | No | Not specified in OpenAPI |
exists | boolean | No | Not specified in OpenAPI |
filter | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
selection | string | No | Only for record.update/modify/replace. first selects the first record according to sort and rechecks it under the transaction lock. By default, matching multiple records is an error. |
sort | object | No | Only for selection=first. The server appends ascending _id order to ensure stable ordering when values are equal. |
returnDocument | string | No | Only for record.update/modify/replace; returns results[].document. If omitted, preserves the original receipt without returning a document. |
operations | array<object> | No | Not specified in OpenAPI |
bindings | array<object> | No | Binds a previous operation's result to a specified field of this operation; does not evaluate 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 |
UnsV2RecordCountReqBody
| Field | Type | Required | Description |
|---|
filter | object | No | UnsV2DataFilter. See the referenced schema in the Schemas section. |
maxCount | integer | No | Not specified in OpenAPI |
UnsV2RecordCountResponse
| 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 |
UnsV2RecordDeleteManyReqBody
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
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. Document actions are limited to 200 items, maxDocs must be at most 200, and the complete match set must fit the limit. false commits each document separately. |
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 |
UnsV2RecordDeleteManyResponse
| 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 |
UnsV2RecordDeleteOneReqBody
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
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 the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
UnsV2RecordDeleteOneResponse
| 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 |
UnsV2RecordExplainReqBody
| 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 | For scope evaluation, the default is 1000 and the maximum is 10000. For aggregate, the default is 20 and the maximum is 200. |
pipeline | array<object> | No | Not specified in OpenAPI |
page | object | No | UnsV2PipelinePage. See the referenced schema in the Schemas section. |
UnsV2RecordExplainResponse
| 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 |
UnsV2RecordFindReqBody
| 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 | Not specified in OpenAPI |
UnsV2RecordFindResponse
| 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. |
UnsV2RecordGetReqBody
Provide at least one unique ID. items follows the request order. missing covers nonexistent, deleted, and inaccessible records. The projected response is limited to 8 MiB. If it exceeds the limit, the server returns 413 RESPONSE_TOO_LARGE. Reduce ids or the number of projection fields.
| 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. |
UnsV2RecordGetResponse
| 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 |
UnsV2RecordInsertOneReqBody
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
id | string | No | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
data | object | Yes | Not specified in OpenAPI |
returnDocument | string | No | none returns the original insertedId response. after includes the created value in the same write transaction and requires the corresponding read permission. Idempotent replays return the original creation snapshot. dryRun returns an uncommitted preview. |
lockToken | string | No | Not specified in OpenAPI |
release | boolean | No | Not specified in OpenAPI |
assertLocks | array<object> | No | Not specified in OpenAPI |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
UnsV2RecordInsertOneResponse
| 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 |
UnsV2RecordLockReqBody
In ids mode, the operation succeeds or fails for all IDs together. In filter mode, it claims available Records in sort order. Expired leases are invalid, and reads are unaffected.
| 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 |
UnsV2RecordLockResponse
| 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 |
UnsV2RecordQueryBatchReq
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
UnsV2RecordQueryBatchResponse
| 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 |
UnsV2RecordRenewReqBody
| Field | Type | Required | Description |
|---|
locks | array<object> | Yes | Not specified in OpenAPI |
ttlMs | integer | No | Not specified in OpenAPI |
UnsV2RecordRenewResponse
| 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 |
UnsV2RecordReplaceOneReqBody
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
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 | Inserts if no record matches. The filter must specify equality on _id or equality for all fields of a ready unique index. Concurrent conflicts do not create duplicate records. |
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 the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
UnsV2RecordReplaceOneResponse
| 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 |
UnsV2RecordRestoreReqBody
Atomically restores up to 100 IDs. The operation revalidates the current Schema and unique indexes for active Records. A conflict rolls back the entire batch. Restoration increments the Record revision without rewriting Sample history.
| Field | Type | Required | Description |
|---|
ids | array<string> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Not specified in OpenAPI |
idempotencyKey | string | No | Not specified in OpenAPI |
UnsV2RecordRestoreResponse
| 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 |
UnsV2RecordSubscribeResponse
SSE change frames contain RecordChangeEvent identity and revision only. heartbeat frames carry the safe cursor as id and {at}; reset frames carry {reason,message} without an id. Resume with Last-Event-ID. Re-read Records after change notifications.
{
"type": "string",
"description": "SSE change frames contain RecordChangeEvent identity and revision only. heartbeat frames carry the safe cursor as id and {at}; reset frames carry {reason,message} without an id. Resume with Last-Event-ID. Re-read Records after change notifications."
}UnsV2RecordTransactionExecuteResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2RecordTransactionReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Not specified in OpenAPI |
assertLocks | array<object> | No | Not specified in OpenAPI |
UnsV2RecordUnlockReqBody
Regular release requires a matching holder and token. Setting force=true to force a release requires additional management permission.
| 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 |
UnsV2RecordUnlockResponse
| 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 |
UnsV2RecordUpdateManyAtomicReq
| Field | Type | Required | Description |
|---|
collectionId | string | Yes | Collection ID owning the business Records and Samples. |
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 |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
UnsV2RecordUpdateManyAtomicResponse
| 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 |
UnsV2RecordUpdateManyReqBody
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
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. Document actions are limited to 200 items, maxDocs must be at most 200, and the complete match set must fit the limit. false commits each document separately. |
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 |
UnsV2RecordUpdateManyResponse
| 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 |
UnsV2RecordUpdateOneReqBody
| Field | Type | Required | Description |
|---|
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
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 | Inserts if no record matches. The filter must specify equality on _id or equality for all fields of a ready unique index. Concurrent conflicts do not create duplicate records. |
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 the original counts. before and after include value in the same write transaction and require the corresponding read permission. If no item matches, value is null. On insert, the before value is null. |
projection | object | No | Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained. |
UnsV2RecordUpdateOneResponse
| 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 |
UnsV2ReferencesDocumentedRequest
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
UnsV2ReferencesQuery
| Field | Type | Required | Description |
|---|
queryId | string | Yes | Identifier unique within this query batch, used to match results. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
targets | array<object> | No | Not specified in OpenAPI |
relationKinds | array<string> | No | Not specified in OpenAPI |
UnsV2ReferenceTarget
| Field | Type | Required | Description |
|---|
kind | string | Yes | Not specified in OpenAPI |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
UnsV2ResultBinding
| Field | Type | Required | Description |
|---|
path | string | Yes | A data.field DTO path, operations.N.value, or a JSON Pointer beginning with filter/ (for example filter/available/$gte or filter/_id/$eq). Filter pointers may replace only existing scalar/null placeholders, never predicate structure. id may bind a Record identity returned by a query in the same Collection. |
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. |
format | string | No | Format a transactionTime result as an ISO 8601 timestamp. |
jsonPath | string | No | JSON Pointer to an existing scalar inside a JSON object stored as a string. |
UnsV2SampleAggregateReqBody
recordIds accepts multiple Record IDs. If omitted, queries the authorized scope in the current Collection. filter and pipeline cannot expand the requested time range or Record scope. Results share one pagination sequence. series accepts one $group stage with _id.recordId:"$_meta.recordId", plus optional $match and $sort stages. limit or page.size counts Record IDs. The 8 MiB per-response budget still applies.
| Field | Type | Required | Description |
|---|
recordIds | array<string> | No | In rows mode, accepts up to 20 IDs. Omission uses the authorized scope. In series mode, IDs are required and are paginated in request order. |
from | integer | Yes | Inclusive start time in Unix milliseconds. |
to | integer | Yes | Exclusive end time in Unix milliseconds. Must be 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. |
resultFormat | string | No | rows returns a list of aggregation documents. series paginates the supplied Record IDs. Each outer item is {recordId, items}, with an empty items array if no Samples match. |
UnsV2SampleAggregateResponse
| 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. |
UnsV2SampleAppendReqBody
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
UnsV2SampleAppendResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2SampleDeleteExactReqBody
| Field | Type | Required | Description |
|---|
samples | array<object> | Yes | Not specified in OpenAPI |
dryRun | boolean | No | Not specified in OpenAPI |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
UnsV2SampleDeleteExactResponse
| 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 |
UnsV2SampleDeleteRangeReqBody
Permanently deletes Samples for the specified recordIds within [from, to). Requires delete permission. dryRun returns the expected deletion count. Parent Records are retained.
| Field | Type | Required | Description |
|---|
recordIds | array<string> | Yes | List of Record IDs, with no Collection IDs. |
from | integer | Yes | Time range start, Unix milliseconds. |
to | integer | Yes | Time range end, Unix milliseconds. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
UnsV2SampleDeleteRangeResponse
| 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 |
UnsV2SampleFindReqBody
recordIds accepts multiple Record IDs. If omitted, queries the authorized scope in the current Collection. filter and pipeline cannot expand the requested time range or Record scope. Results share one pagination sequence.
| 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. Must be 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. |
UnsV2SampleFindResponse
| 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. |
UnsV2SampleLatestValuesReqBody
recordIds is required and must contain at least one ID with no duplicates. Returns the latest stored Sample for each Record in request order, or null when a Record has no Sample.
| Field | Type | Required | Description |
|---|
recordIds | array<string> | Yes | Not specified in OpenAPI |
UnsV2SampleLatestValuesResponse
| 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 |
UnsV2SelectedRecord
| Field | Type | Required | Description |
|---|
recordId | string | Yes | Business Record ID owning the Sample. |
history | object | No | UnsV2History. See the referenced schema in the Schemas section. |
UnsV2SourceCredentialsListReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
UnsV2SourceCredentialsListResponse
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
UnsV2SourceDevicesListResponse
| 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 |
UnsV2SourceDiscoverResponse
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
UnsV2SourceDocumentCreateResponse
| 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 |
UnsV2SourceDocumentDeleteReq
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
expectedRevision | integer | Yes | Expected revision read from the current object. On conflict, read again and decide; never 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. |
UnsV2SourceDocumentDeleteResponse
| 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 |
UnsV2SourceDocumentGetResponse
| 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 |
UnsV2SourceDocumentListResponse
| 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 |
UnsV2SourceDocumentStateUpdateResponse
| 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 |
UnsV2SourceDocumentUpdateResponse
| 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 |
UnsV2SourceHistoryReq
| 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 |
UnsV2SourceHistoryResponse
| 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 |
UnsV2SourceImpactResponse
| 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 |
UnsV2SourceNativeCredentialsUpdateReq
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
idempotencyKey | string | Yes | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
expectedRevision | integer | Yes | Expected revision read from the current object. On conflict, read again and decide; never 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. |
UnsV2SourceNativeCredentialsUpdateResponse
| 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 |
UnsV2SourceNativeOAuthCompleteReq
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only, without committing. Validation does not reserve resources; execution checks them again. OAuth state creation and token exchange require execution. A preview is rejected. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
state | string | Yes | Not specified in OpenAPI |
code | string | Yes | Not specified in OpenAPI |
UnsV2SourceNativeOAuthCompleteResponse
| 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 |
UnsV2SourceNativeOAuthStartReq
| Field | Type | Required | Description |
|---|
dryRun | boolean | No | true validates only, without committing. Validation does not reserve resources; execution checks them again. OAuth state creation and token exchange require execution. A preview is rejected. |
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
redirectUri | string | Yes | Not specified in OpenAPI |
UnsV2SourceNativeOAuthStartResponse
| 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 |
UnsV2SourceObservationsGetResponse
| 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 |
UnsV2SourceOpcuaEndpointsReq
| Field | Type | Required | Description |
|---|
endpoint | string | Yes | Not specified in OpenAPI |
UnsV2SourceOpcuaEndpointsResponse
| 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 |
UnsV2SourceOpcuaPointsDiscoverReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
expectedRevision | integer | Yes | Expected revision read from the current object. On conflict, read again and decide; never overwrite blindly. |
parentResourceRef | string | No | Not specified in OpenAPI |
resourceRefs | array<string> | No | Not specified in OpenAPI |
UnsV2SourceOpcuaPointsDiscoverResponse
| 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 |
UnsV2SourceProbeReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
timeoutMs | integer | Yes | Not specified in OpenAPI |
mode | string | No | connection performs a bounded lightweight check; data explicitly validates a configured readable resource without writing business data. Only enabled Sources are periodically checked every 10 minutes on their owning runtime. Cloud never schedules checks for Edge references. Data checks never replace connection health. |
UnsV2SourceProbeResponse
| 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 | Executed checks return SourceCheckResult fields; dryRun returns validated:true and sideEffects:false without performing a check. |
UnsV2SourceProtocolsListReq
{
"type": "object",
"additionalProperties": false,
"properties": {},
"required": []
}UnsV2SourceProtocolsListResponse
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
UnsV2SourceReplaceReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | No | Optional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
replacement | object | Yes | SourceData. See the referenced schema in the Schemas section. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
UnsV2SourceReplaceResponse
| 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 |
UnsV2SourceResourceCatalogResponse
| 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 |
UnsV2SourceResourceReadResponse
| 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 |
UnsV2SourceResourceScanResponse
| 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 |
UnsV2SourceRuntimeGetReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
UnsV2SourceRuntimeGetResponse
| 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 |
UnsV2SourceRuntimeReadReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
configRevision | integer | Yes | Not specified in OpenAPI |
range | object | Yes | Not specified in OpenAPI |
timeoutMs | integer | Yes | Not specified in OpenAPI |
UnsV2SourceRuntimeReadResponse
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
UnsV2SourceValidateReq
| Field | Type | Required | Description |
|---|
document | object | Yes | SourceDefinition. See the referenced schema in the Schemas section. |
UnsV2SourceValidateResponse
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
UnsV2StreamCreateReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
UnsV2StreamCreateResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2StreamDocumentCreateResponse
| 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 |
UnsV2StreamDocumentDisableResponse
| 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 |
UnsV2StreamDocumentGetResponse
| 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 |
UnsV2StreamDocumentUpdateResponse
| 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 |
UnsV2StreamDocumentValidateResponse
| 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 |
UnsV2StreamDraftUpdateReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
UnsV2StreamDraftUpdateResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2StreamGetReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
UnsV2StreamGetResponse
| 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 |
UnsV2StreamListReq
| Field | Type | Required | Description |
|---|
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
archived | boolean | No | true lists archived objects only; false lists active objects only. |
UnsV2StreamListResponse
| 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 |
UnsV2StreamObservationGetReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
UnsV2StreamObservationGetResponse
| 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 |
UnsV2StreamProgramDeleteResponse
| 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 |
UnsV2StreamProgramDeployReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never 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. |
UnsV2StreamProgramDeployResponse
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
UnsV2StreamProgramInvokeReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
expectedActiveVersion | string | Yes | Not specified in OpenAPI |
entryId | string | No | Not specified in OpenAPI |
input | object | Yes | Not specified in OpenAPI |
timeoutMs | integer | Yes | Not specified in OpenAPI |
UnsV2StreamProgramInvokeResponse
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
UnsV2StreamProgramListResponse
| 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 |
UnsV2StreamProgramRollbackReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
expectedRevision | integer | No | Expected revision read from the current object. On conflict, read again and decide; never 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. |
UnsV2StreamProgramRollbackResponse
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
UnsV2StreamProgramRunsGetReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
runId | string | Yes | Not specified in OpenAPI |
UnsV2StreamProgramRunsGetResponse
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
UnsV2StreamProgramRunsListReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
status | string | No | Not specified in OpenAPI |
UnsV2StreamProgramRunsListResponse
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
UnsV2StreamProgramTestReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | No | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
document | object | Yes | RuntimeStreamDefinition. See the referenced schema in the Schemas section. |
input | object | Yes | RuntimeProgramTestInput. See the referenced schema in the Schemas section. |
phase | string | Yes | Not specified in OpenAPI |
entryId | string | No | Not specified in OpenAPI |
expectedSourceRevision | integer | No | Not specified in OpenAPI |
UnsV2StreamProgramTestResponse
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
UnsV2StreamProgramVersionsListReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
UnsV2StreamProgramVersionsListResponse
| 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 | Existing Source/Stream runtime domain result. Program create/get/deploy return id, revision, activeVersion, executionState and redacted document; versions/runs return list and total; probe returns health; validation returns valid and sideEffects. |
UnsV2StreamPublishReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
UnsV2StreamPublishResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2StreamReleasesGetReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
release | integer | Yes | Not specified in OpenAPI |
UnsV2StreamReleasesGetResponse
| 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 |
UnsV2StreamReleasesListReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
UnsV2StreamReleasesListResponse
| 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 |
UnsV2StreamReleasesRestoreReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
UnsV2StreamReleasesRestoreResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2StreamReplaceReq
| Field | Type | Required | Description |
|---|
id | string | Yes | Not specified in OpenAPI |
expectedRevision | integer | No | Optional optimistic lock. When saving a management form, send the revision returned by the read. Read the resource again if a conflict occurs. |
replacement | object | Yes | StreamData. See the referenced schema in the Schemas section. |
dryRun | boolean | No | Validates the operation and rolls it back without reserving resources. |
idempotencyKey | string | No | Reuse this key when retrying the same intended write. Use a new key if the request content changes. |
UnsV2StreamReplaceResponse
| 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 |
UnsV2StreamRequestGrantGetReq
| 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 |
UnsV2StreamRequestGrantGetResponse
| 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 | AppRequestGrantView. See the referenced schema in the Schemas section. |
UnsV2StreamRequestGrantSetReq
| 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 |
actions | array<string> | No | Not specified in OpenAPI |
expectedSnapshotToken | string | No | Not specified in OpenAPI |
expectedCodeRevision | integer | No | Not specified in OpenAPI |
expectedBindingDigest | string | No | Not specified in OpenAPI |
targetRevisions | array<object> | No | Not specified in OpenAPI |
UnsV2StreamRequestGrantSetResponse
| 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 | AppRequestGrantView. See the referenced schema in the Schemas section. |
UnsV2StreamRunGetReq
| Field | Type | Required | Description |
|---|
runId | string | Yes | Not specified in OpenAPI |
UnsV2StreamRunGetResponse
| 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 |
UnsV2StreamRunsListReq
| Field | Type | Required | Description |
|---|
id | string | No | Object ID string obtained from discovery or a read operation. Do not use a name as an ID. |
page | integer | No | Page number, starting at 1. |
size | integer | No | Items per page; the maximum is declared by this operation's maximum constraint or the capability catalog. |
search | string | No | Search by name or supported text fields; not SQL. |
cursor | string | No | Opaque creation-time/id continuation bound; retain the same id and native filters. Mutually exclusive with page when nonempty. |
status | string | No | Not specified in OpenAPI |
sourceId | string | No | Not specified in OpenAPI |
topicId | string | No | Not specified in OpenAPI |
model | string | No | Not specified in OpenAPI |
UnsV2StreamRunsListResponse
| 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 |
UnsV2StreamSampleTestReq
| 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 |
UnsV2StreamSampleTestResponse
| 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 |
UnsV2StreamUpdateReq
| Field | Type | Required | Description |
|---|
idempotencyKey | string | No | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. Optional durable intent key, shared across ordinary UNS resource routes for the same user/API Key/MCP grant. Use a different key for each new write intent; retry the original identity, route, body and key. Not isolated per route. |
dryRun | boolean | Yes | true validates only, without committing or reserving resources. Execution rechecks all conditions. |
allowPartial | boolean | No | Supported only by ordinary array writes; defaults to false. true commits each item independently. Check summary and results[].error; submit corrected failures as a new request. Transaction operations reject this field. Partial writes retain a jobId for recovery. |
mode | string | No | Not specified in OpenAPI |
items | array<object> | Yes | Not specified in OpenAPI |
UnsV2StreamUpdateResponse
| 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 | Outcome. See the referenced schema in the Schemas section. |
UnsV2TimeRange
| Field | Type | Required | Description |
|---|
from | integer | Yes | Time range start, Unix milliseconds. |
to | integer | Yes | Time range end, Unix milliseconds. |
UnsV2TopicsDocumentedRequest
| Field | Type | Required | Description |
|---|
queries | array<object> | Yes | Not specified in OpenAPI |
UnsV2TopicsQuery
| Field | Type | Required | Description |
|---|
queryId | string | Yes | Identifier unique within this query batch, used to match results. |
topicId | string | No | Not specified in OpenAPI |
include | array<string> | No | Not specified in OpenAPI |
records | object | No | UnsV2Page. See the referenced schema in the Schemas section. |
selectedRecord | object | No | UnsV2SelectedRecord. See the referenced schema in the Schemas section. |
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. |
UnsV2TransactionStatusReq
| Field | Type | Required | Description |
|---|
scope | string | No | Not specified in OpenAPI |
idempotencyKey | string | Yes | Unique key for this business intent. Reuse it for identical retries; never reuse it for a different request. |
UnsV2TransactionStatusResponse
| 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 | TransactionStatusResult. 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 |
WriteDelivery
| Field | Type | Required | Description |
|---|
centerCommitted | boolean | Yes | Not specified in OpenAPI |
eventIds | array<string> | No | Not specified in OpenAPI |
failed | integer | Yes | Not specified in OpenAPI |
localCommitted | boolean | Yes | Not specified in OpenAPI |
pending | integer | Yes | Not specified in OpenAPI |
state | string | Yes | Not specified in OpenAPI |