Categories V2 API: Sample Use Cases and Flows

This article presents possible use cases and corresponding sample flows that you can support. This can be a helpful jumping off point as you plan your implementation.

Sync FAQ content across multiple sites

You can synchronize both categories and question entries across multiple sites to maintain consistency.

To sync FAQ content across multiple sites:

  1. Call List Categories on the source site to retrieve all existing categories.

  2. Add categories to target sites by calling Create Category for each category and passing the retrieved category data. Store a mapping between the source site's and target site's category IDs to use for question entry synchronization.

  3. Call the Question Entries API's List Question Entries method on the source site to retrieve all of the site's question entries.

  4. For each question entry in the response, extract the question entry data and update the categoryId to match the corresponding category ID on the target site using your stored mapping.

  5. Use the Question Entries API's Create Question Entry method to add the updated question entries to each target site.

Did this help?