Re-creating predefined data classes

If any predefined data classes are deleted, you can re-create them. Only the missing predefined data classes are re-created. Any existing predefined data classes are unaffected.

  1. Create an API key for authentication and export it to an environment variable as described in Generating an API authorization token in the IBM Software Hub documentation.

  2. Run this curl command:

    curl -k -X POST \
    'https://{cpd_cluster_host}/v3/glossary_terms/admin/initialize_content' \
      -H "accept: application/json" \
      -H "Authorization: ZenApiKey {$MY_TOKEN} " \
      -H "Content-Type: application/json" \
      -d "{}"
    

    Replace the variable {cpd_cluster_host}with your Cloud Pak for Data cluster host name.

Parent topic: Troubleshooting IBM Knowledge Catalog