Model metadata and calendars
Inspect dimensions, members, attributes and relationships from an authorized application scope. Resolve stable IDs and retain the metadata revision. To make a change, verify that the catalog grants the specific metadata or calendar write you intend to perform.
Read the model before preparing changes
- Inspect a dimension with
read_v2_program. Resolve the dimension, then page its members and active relationships at the same metadata revision. In the sample, Account memberInputAhas BehaviorInput. - Prepare a hierarchy change by verifying both stable member IDs and checking for an existing edge or a cycle. The sample drafts a
MetricstoCalculatededge and stops before submission. - To create a member list, save an immutable definition through
execute_v2_metadata_program. Read back the exact version and digest.Savedis the expected stop point in the sample. Publication is separate. - Configure a calendar period using active Year and Period IDs, a period ordinal and an inclusive start with exclusive end. For
Y2027andP01, the sample reads back[2027-01-01, 2027-02-01)and the new change ID.
If the metadata revision changes during paging or review, reread the affected scope and rebuild the change from the current state. A stale calendar change ID, overlap or ordinal conflict requires a fresh read before another write.