change document api