contenttype should be string instead of enum