Add API for creating a doc
Add API for updating docs