updateApplicationRoleConnectionMetadata method

Future<List<ApplicationRoleConnectionMetadata>> updateApplicationRoleConnectionMetadata(
  1. Snowflake id
)

Update and fetch an application's role connection metadata.

Implementation

Future<List<ApplicationRoleConnectionMetadata>> updateApplicationRoleConnectionMetadata(Snowflake id) async {
  final route = HttpRoute()
    ..applications(id: id.toString())
    ..roleConnections()
    ..metadata();
  final request = BasicRequest(route, method: 'PUT');

  final response = await client.httpHandler.executeSafe(request);
  return parseMany(response.jsonBody as List<Object?>, parseApplicationRoleConnectionMetadata);
}