add snippet api for other user