Make scans field read-only in document API