跳至主要内容

Patch bridge

PATCH 

/api/v1/orgs/{orgId}/data-bridges/{bridgeId}

Partially update a bridge using the same object shape and field names as update bridge. Include only the fields that should change.

Supported sections:

  • name
  • mqtt.mqttBrokerConfigId
  • mqtt.outputTopic
  • mqtt.qos
  • assemblyPolicy.queueLimit
  • assemblyPolicy.timeoutSeconds
  • assemblyPolicy.onTimeout
  • bindings

When bindings is included, it replaces the full bindings array.

Defaults and finite values are the same as create/update bridge:

  • mqtt.qos: 0, 1, 2
  • assemblyPolicy.onTimeout: PublishPartial, DropPartial
  • bindings[].sourceFieldName: default valueObject
  • bindings[].dataType: omit to use source payload valueType
  • bindings[].requiredForAssembly: true, false; default false

Example:

{
"mqtt": {
"outputTopic": "factory/site1/new-topic"
},
"assemblyPolicy": {
"timeoutSeconds": 30
}
}

Request

Responses

OK