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

TopicID generation for JSON Topics file for Text iQ


Forum|alt.badge.img+6

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?

Best answer by Sowrabh1993

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.

 

   

View original

2 replies

Sowrabh1993
QPN Level 5 ●●●●●
Forum|alt.badge.img+15
  • QPN Level 5 ●●●●●
  • 112 replies
  • Answer
  • July 11, 2023

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.

 

   


Forum|alt.badge.img+6
  • Author
  • Level 2 ●●
  • 13 replies
  • July 12, 2023

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