latestOpenAPI 3.0.32026-08-19299284712.8 KB

67d9f45bb99b

Planning Table

Table-anchored nested resource for a Planning Table's datasets.

A dataset is never addressed by its own id here: the route is keyed on the parent table (table_pk) and a dataset is identified by (table, scenario_id from the request). Hence get_queryset/get_object return the parent PlanningTable (access control -- sharing scheme and created_by -- lives on the table), while the actions query PlanningTableDataset rows directly.

Consequence for permission_classes: model-derived primitives (ModelPermissions, UserHasModelShared) resolve model_name from the queryset, so they check *_planningtable perms, NOT *_planningtabledataset. Only the hardcoded SpecificModelPermissions / EditSharedPermissions target the dataset model. That is why the expression below mixes table-level and dataset-level permissions.

put/tables/{table_pk}/datasets

Path parameters

table_pkinteger required

Headers

X-Company-IDstring required

Associates request with company

Response

No response body