add /diaries/upsert