TopicID generation for JSON Topics file for Text iQ | XM Community
Skip to main content

I inherited a JSON Topics file for Text iQ that I’m currently editing. I’m not sure how it was originally generated but it does mostly match the file output that you get when you export your topics from the dashboard as a JSON. If I wanted to edit the JSON directly and add new topics, what do I need to do to generate the topicID variable so that it works correctly when it’s uploaded to Text iQ?

Hi @AnnaHar ,

 

I think you can try to create the topic without topic ID when the operation as insert/insert_topic.

Can you try it once?

    {
      "operation": "insert_topic",

    "topic": {
        "label": “food",
        "query": “burger OR pizza OR sandwich”
      }
    }

 If the above does not work, try adding topic id keeping it empty. I think provide the topic id is required while updating/deleting the topic.

 

   


It looks like removing the topicID still allows me to upload my JSON topics. Thanks!


Leave a Reply