updateEntityType method
Future<ClientResponse<EntityTypeResponse, Errors> >
updateEntityType(
- String entityTypeId,
- EntityTypeRequest request
Updates 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 all the new Entity Type information. @returns {Promise<ClientResponse
Implementation
Future<ClientResponse<EntityTypeResponse, Errors>> updateEntityType(
String entityTypeId, EntityTypeRequest request) {
return _start<EntityTypeResponse, Errors>()
.withUri('/api/entity/type')
.withUriSegment(entityTypeId)
.withJSONBody(request)
.withMethod('PUT')
.withResponseHandler(defaultResponseHandlerBuilder(
(d) => EntityTypeResponse.fromJson(d)))
.go();
}