Files
superset2/docs/developer_docs_versioned_docs/version-6.1.0/api/update-security-groups-by-pk.api.mdx
Superset Dev 5a5a0e70fc fix(docs): regenerate 6.1.0 snapshots with depth-aware import rewriter
The previous import-path fixer only matched two-level relative paths
(`../../src/` and `../../data/`), missing files at deeper nesting in the
section tree. After the 6.1.0 cut for developer_docs, ~50 component MDX
files at depth 3 still referenced `../../../src/components/StorybookWrapper`
(should have been `../../../../src/...`), and the components Button page
referenced `../../../superset-frontend/...` (should have been
`../../../../superset-frontend/...`). The Docusaurus production build
failed with module-not-found errors as a result.

Replace the pattern-specific regex with a depth-aware walker that
- counts the file's nesting depth within the snapshot,
- bumps any relative import whose `../` count exceeds that depth (i.e.
  the import escapes the section root and so must compensate for the
  extra `version-X.X.X/` directory the snapshot lives under),
- skips fenced code blocks so documented sample imports (e.g. Playwright
  page-object examples in developer_docs/testing/e2e-testing.md) are not
  rewritten.

Re-cut all four sections under the new fixer. yarn build now passes
locally.
2026-05-04 08:53:25 -07:00

69 lines
3.3 KiB
Plaintext

---
id: update-security-groups-by-pk
title: "Update security groups by pk"
description: "Update security groups by pk"
sidebar_label: "Update security groups by pk"
hide_title: true
hide_table_of_contents: true
api: eJztWG1v2zYQ/ivEYUATTIntYAUKFf2QBu2armuN2tkGRIZLSxdbDUWqJOVEE/TfhyMlWX4JirYD8mH7ZJM8Hvk89/B4VAU51zxDi9pAeF1BKiGEnNsVBCB5htS6hQA0filSjQmEVhcYgIlXmHEIK7BlTlaptLhEDXU989Zo7EuVlGQSK2lRWvrL81ykMbepkoPPRknq2/jKtcpR2xQNtRI0sU5zst1rwq9aFTnr9wWQ8ft3KJd2BeHT0VkAWSrb9jAAWQjBFwJbCM3GjdWpXEIdgOALFA+t5Ae31hg9HX7zGp7Tw0u4se0VhtsrjA541EocoKtx6QcDSC1m5lC0Oodca15SuzBOC4f9+cFv8LfpUIvPGFsIwKaWCPIex4Wd+PDXAeA9z3JxgJ8GbReiTUej0a7dsHE9mnVIrkezmvax7fJ3laBg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bwkn2tdIZJ39v/5xC87ans+ZHobuGHOg6oMlzjTcazep7nZAXo+THzYeCV//e42/Yq4CHszqAVN6ofceTIkdtsF+z97pIpt5uPfLsG5txd5U3637lfOw87xr4Fu/tIBc8le4xop3M/Nm5Bp6ntPIIepdvAN4vBBDmt6Q1L6ZrqKoFN3ilRV1T95cCdenL/1bP7pglqSt3EghvuDC4t7GuboGjj015esw28drecPv6kaU7NqKgFgSU+f2nopr49vnSre4H+pmvN3GvTqLT7GecxzG6zP+w7ayXg8ZXJLpF88EpUwlN0fyOVMHv/B6Vg+yf5NTnr5/C11DeJemSqvBewDr9Nn8I1EEWqspb+Lxfd6S4m5J4qet/AKsSrb4=
sidebar_class_name: "put api-method"
info_path: developer-docs/api/superset
custom_edit_url: null
hide_send_button: true
show_extensions: true
---
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";
import Translate from "@docusaurus/Translate";
<Heading
as={"h1"}
className={"openapi__heading"}
children={"Update security groups by pk"}
>
</Heading>
<MethodEndpoint
method={"put"}
path={"/api/v1/security/groups/{pk}"}
context={"endpoint"}
>
</MethodEndpoint>
Update security groups by pk
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
>
<Translate id="theme.openapi.request.title">Request</Translate>
</Heading>
<ParamsDetails
{...require("./update-security-groups-by-pk.ParamsDetails.json")}
>
</ParamsDetails>
<RequestSchema
{...require("./update-security-groups-by-pk.RequestSchema.json")}
>
</RequestSchema>
<StatusCodes
{...require("./update-security-groups-by-pk.StatusCodes.json")}
>
</StatusCodes>