Before batch import into the external system, you want to check for title duplicates first, and confirm what to check on the interface side.

Before the batch import into the external system, we want to check for duplicates by title first, and the interface side needs to confirm four things: which path the document content import interface takes, whether direct duplicate checking by title is possible, which two types of carriers are supported for batch import, and which state the document will fall into after writing. AnQiCMS provides the /api/import/archive import interface, which supports checking whether the document exists by title and is used for batch import; the accompanying document status is divided into formal documents, drafts, pending publication, and recycling bin, and the state belonging to the writing time needs to be agreed in advance.

First confirm to which level the interface can write

Before connecting, clarify the scope of capabilities to avoid finding out that the process needs to be changed after the script is written:

Confirm item Questions to Ask influence
Import interface path Batch import via /api/import/archive or normal document writing Decide on field structure and calling method
Search by title Can the existence be judged directly by the title and what information should be returned? Decide how to handle duplicate content
Batch carrier Support ZIP compressed package or Excel table Decide how to prepare the export format
Database status Whether to write as draft, to be published, or formal document Decide whether to need a second launch
Scope of capabilities Where is the list of common API calls in the interface document Decide the amount of work to be connected

The most easily overlooked among the five is the database status. If the content written by the external system is directly set to a formal document, it is equivalent to skipping manual review; if it is set to a draft, an additional step of mass going online is required. It is a more secure approach to decide according to the credibility of the content source.

Which step to take for duplicate checking

The reasonable order is

It should be noted that the same title does not mean the same content, as the old draft will be lost upon overwrite; and when the title is different but the content is repetitive, the plagiarism check cannot handle this, which belongs to a content-level issue and should be resolved in the source system. The deletion action also requires understanding its consequences: deleting formal documents means moving them to the recycle bin instead of a physical deletion, thus 'delete first and write later' still has a recovery window, but the recycle bin should not be used as a long-term storage location.

How to choose between the two batch methods

Batch import supports ZIP compressed packages and Excel tables as carriers, and the selection is based on the content form.

  • It is more appropriate to use a ZIP compressed package for materials with pictures, attachments, and formatted layouts, as it can carry the main text and materials at once;
  • Structured entry-type content (titles, summaries, categories, and tags in columns) is more convenient to use Excel tables, as it is easy to clean and check for duplicates in the source system;
  • When mixing materials with tables, it is easier to locate failed entries by first establishing the structure of the table and then adding the attachments, rather than putting them all into a large package at once. The amount of rework required when batch writing fails is proportional to the size of the batch.

Before importing in bulk, use a small batch to test run, confirm that the field mapping, classification ownership, and status landing points all meet expectations, and then scale up to the entire batch. The amount of rework required when batch writing fails is proportional to the size of the batch.

Where does the status fall after being stored in?

The document status is divided into four categories, each with different uses: formal documents are visible to the public; drafts can be viewed with preview parameters, used for content that has not been finalized; pending release is suitable for scheduling, used in conjunction with time factors for scheduled publication; the recycle bin takes over deleted formal documents, which can be restored.

When external systems are stored, it is recommended to clarify these three levels: trustworthy sources directly fall into formal, need to be proofread fall into draft, have an online point fall into pending release. It is agreed to be written into the对接 document to avoid subsequent manual guessing of the source.

The complete range of interface capabilities does not need to be tested one by one. The category "Anqi CMS Interface Help" within the site provides the organization method of the interface document, with explanations of the document list and details, categories and tags, image upload, comments and reviews, and high-frequency API call capabilities. It is faster to read through the categories before connecting than to translate the code.

Common questions

Can title search prevent all duplicates?No. It only blocks entries with the same title. If the content is the same but the title is different, or if there are subtle differences in spaces and symbols in the title, normalization needs to be done in the source system first.

Will there be a prompt if the import fails?To have a clear return message, including which one and the reason. The batch script should collect failed entries separately, fix them, and then rerun that batch instead of doing it all over again.

Can the content imported in bulk be directly sent to the recycle bin?The delete action moves official documents to the recycle bin, which can be restored; for drafts and content to be published, the deletion process should also be categorized by status, and do not treat the recycle bin as version management.

What permissions are required for external systems?Provide the minimum set of capabilities available within the scope of the call, and do not provide full-site operations. Interface calls should use independent credentials for easy source identification and individual suspension after the fact.

Is scheduled release the same as timed release?No. Scheduled release is a status, and timed release is a mechanism for going live at a specific time; when interfacing, if the source system already has an online time, it is set using a time factor, rather than relying on scripts to change the status at a scheduled time.