update docs for api