Visibility Check Endpoint
const url = 'https://example.com/maps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/visibility-check/';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/maps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/visibility-check/ \ --header 'Authorization: Bearer <token>'Check which layers a map’s audience can’t see. Informational only.
Owner-or-admin, since the answer names datasets that read access alone must not reveal. Unreadable maps answer 404; readable non-owners get 403.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Responses
Section titled “ Responses ”Successful Response
object
Titles of datasets not publicly visible
True if any layer references a non-public dataset
On a restricted map, the layers some of its groups can’t read, among those the caller reads. Empty on other maps, and when the permission authority can’t say who reads a dataset.
object
The map’s groups that have a member who can’t read it.
Whether confirm: share_datasets would share the dataset with those groups.
Example generated
{ "non_public_datasets": [ "example" ], "has_non_public": true, "hidden_from_groups": [ { "layer_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "layer_title": "example", "dataset_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "dataset_title": "example", "group_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "can_share": true } ]}Bad request — invalid payload
Unauthorized — missing or invalid credentials
Forbidden — caller lacks write access
Not found
Conflict — resource state prevents the operation
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “ Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request