updateThingType method

Future<void> updateThingType({
  1. required String thingTypeName,
  2. ThingTypeProperties? thingTypeProperties,
})

Updates a thing type.

May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ServiceUnavailableException. May throw ThrottlingException. May throw UnauthorizedException.

Parameter thingTypeName : The name of a thing type.

Implementation

Future<void> updateThingType({
  required String thingTypeName,
  ThingTypeProperties? thingTypeProperties,
}) async {
  final $payload = <String, dynamic>{
    if (thingTypeProperties != null)
      'thingTypeProperties': thingTypeProperties,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri: '/thing-types/${Uri.encodeComponent(thingTypeName)}',
    exceptionFnMap: _exceptionFns,
  );
}