change endpoint option from 'type' to 'contentType'