save codesnippet endpoint created