Update API in documentation