Edit doc api endpoint.