responds 201 with the new middleware record