Adapt documentation to change in API