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

TopicID generation for JSON Topics file for Text iQ

  • Jul 11, 2023 6:42 PM UTC
  • 2 replies
  • 324 views

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

Forum|alt.badge.img+15
  • QPN Level 5 ●●●●●
  • Answer
  • Jul 11, 2023 7:41 PM UTC

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 ●●
  • Jul 12, 2023 1:33 PM UTC

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