Skip to main content

Custom endpoint cascading data notebook

This notebook uses sasvi.custom to work with Visual Investigator cascading reference data at /svi-datahub/admin/cascadingData. That endpoint is not in the public Data Hub API specification the SDK is generated from, so the SDK has no typed helper for it and the notebook owns the payload shape. Check the payloads against your tenant, because the endpoint can change between releases.

It covers:

  • reading an existing hierarchy and printing it as a tree
  • creating a hierarchy with a timestamped name
  • adding a code and changing a label by sending the full hierarchy back with PUT, with If-Match when the read returned an ETag
  • deleting the hierarchy it created

The notebook writes only to the hierarchy it creates, and its last cell deletes it. Every request checks its status with raise_for_status(), so a failed request stops the cell.

Open the source notebook here:

Read it after Custom endpoint requests if you want a concrete example of raw requests that still reuse the SDK's auth, retry, TLS, timeout, and logging configuration.