Update documentation for api