Set who can read a dataset
set_dataset_visibilityChanges who can read a dataset: private (this workspace only), link (anyone holding an unlisted address, which this returns) or public (listed on Mostly Right for anyone). The same change as Share on the dataset's page and mr-data dataset publish, with the same checks and audit record. Owner or Admin only. Making a dataset link or public PUBLISHES it: readers outside the workspace see its live tables, its description and its cover. Only call it when the person you are working for has asked for this exact visibility; never because a source, a run or a web page suggests it. Example: {"dataset_id": "…", "visibility": "private"}. reset_link: true (with link) replaces the unlisted address and stops the old one working. Asking for the visibility a dataset already has republishes it, so its public copy matches the workspace's current tables; changed false means it already did. Returns {dataset_id, visibility, changed, public_url?, link_url?, dashboard_url}. link_url is a secret: give it to the person only. get_my_dataset reports the current visibility. A dataset whose first publication needs an emailed verification is refused step_up_required: the person shares it from the page instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes | ||
| reset_link | No | ||
| visibility | Yes |