post https://api.moogsoft.ai/v1/catalog-files
Creates a new catalog with schema and documents based on the given CSV file. For an example of the expected format, search for "enrichment CSV" in the Moogsoft documentation.
Note — You need to add the catalog file to the form data in the POST command. Suppose you want to upload the file using cURL.
To do this, append a line to the auto-generated command that specifies the path and filename of the CSV you want to upload.
For example:
curl --request POST \
--url https://api.moogsoft.ai/v1/catalog-files \
--header 'Accept: application/json' \
--header 'Content-Type: multipart/form-data; boundary=---011000010111000001101001' \
--header 'apiKey: my-api-key' \
--form name=data-center-enrichment \
--form description="Enrichment catalog for Data Center nodes" \
# append this line....
--form [email protected]/users/jane.smith/moogsoft-catalogs/data-center.csv