editBridgeOfRoom method
Future<DynamiteResponse<MatterbridgeEditBridgeOfRoomResponseApplicationJson, void> >
editBridgeOfRoom({
- required int enabled,
- required String token,
- ContentString<
BuiltList< ? parts,BuiltMap< >String, JsonObject> > - MatterbridgeEditBridgeOfRoomApiVersion? apiVersion,
- bool? oCSAPIRequest,
Edit bridge information of one room.
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
Parameters:
enabled
If the bridge should be enabled.parts
New parts.apiVersion
Defaults tov1
.token
oCSAPIRequest
Required to be true for the API request to pass. Defaults totrue
.
Status codes:
- 200: Bridge edited successfully
- 406: Editing bridge is not possible
See:
- editBridgeOfRoomRaw for an experimental operation that returns a DynamiteRawResponse that can be serialized.
Implementation
Future<DynamiteResponse<MatterbridgeEditBridgeOfRoomResponseApplicationJson, void>> editBridgeOfRoom({
required int enabled,
required String token,
ContentString<BuiltList<BuiltMap<String, JsonObject>>>? parts,
MatterbridgeEditBridgeOfRoomApiVersion? apiVersion,
bool? oCSAPIRequest,
}) async {
final rawResponse = editBridgeOfRoomRaw(
enabled: enabled,
token: token,
parts: parts,
apiVersion: apiVersion,
oCSAPIRequest: oCSAPIRequest,
);
return rawResponse.future;
}