updateTenant method

Future<ClientResponse<TenantResponse, Errors>> updateTenant(
  1. String tenantId,
  2. TenantRequest request
)

Updates the tenant with the given Id.

@param {String} tenantId The Id of the tenant to update. @param {TenantRequest} request The request that contains all the new tenant information. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<TenantResponse, Errors>> updateTenant(
    String tenantId, TenantRequest request) {
  return _start<TenantResponse, Errors>()
      .withUri('/api/tenant')
      .withUriSegment(tenantId)
      .withJSONBody(request)
      .withMethod('PUT')
      .withResponseHandler(
          defaultResponseHandlerBuilder((d) => TenantResponse.fromJson(d)))
      .go();
}