---
title: "Lists all the variable set names (projects and library variable sets) that have variables that are scoped to only the given environment"
method: GET
path: "/environments/{environmentId}/singlyScopedVariableDetails"
tags: ["Environments"]
---

# Lists all the variable set names (projects and library variable sets) that have variables that are scoped to only the given environment

`GET /environments/{environmentId}/singlyScopedVariableDetails`

## Path parameters

- `environmentId` string, required

## Response `200`

The names of LibraryVariableSets and VariableSets which contain one or more variables scoped to the requested environment. Along with boolean indication to show that there are unviewable/editable projects/libraries which also contain scoped variables.

- VariablesScopedToDocumentResource
  - `HasUnauthorizedLibraryVariableSetVariables` boolean, required
  - `HasUnauthorizedProjectVariables` boolean, required
  - `VariableMap` object, required

## Other responses

- `400` — Bad request. Either the payload was not structurally valid or business rules did not permit the operation.
- `404` — Not found. One or more of the entities involved in the operation was not found.

---

[API](https://skmtc.net/octopus/apis/octopus-server-api.md) · [All operations](https://skmtc.net/octopus/apis/octopus-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/octopus/octopus-server-api/versions/bc9158facfc7/schema)
