patchEntityType method

Future<ClientResponse<EntityTypeResponse, Errors>> patchEntityType(
  1. String entityTypeId,
  2. EntityTypeRequest request
)

Updates, via PATCH, the Entity Type with the given Id.

@param {String} entityTypeId The Id of the Entity Type to update. @param {EntityTypeRequest} request The request that contains just the new Entity Type information. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<EntityTypeResponse, Errors>> patchEntityType(
    String entityTypeId, EntityTypeRequest request) {
  return _start<EntityTypeResponse, Errors>()
      .withUri('/api/entity/type')
      .withUriSegment(entityTypeId)
      .withJSONBody(request)
      .withMethod('PATCH')
      .withResponseHandler(defaultResponseHandlerBuilder(
          (d) => EntityTypeResponse.fromJson(d)))
      .go();
}