added a document on collection api