---
title: "Set the scope the Variable Studio."
method: POST
path: "/variables/d/{did}/w/{wid}/e/{eid}/variablestudioscope"
tags: ["Variables"]
---

# Set the scope the Variable Studio.

`POST /variables/d/{did}/w/{wid}/e/{eid}/variablestudioscope`

## Request

- Base URL: `https://api.onshape.com/api/v17`
- URL: `https://api.onshape.com/api/v17/variables/d/{did}/w/{wid}/e/{eid}/variablestudioscope`
- Auth: OAuth 2 and HTTP basic
  - Authorization code: `/oauth/authorize`
  - Token URL: `/oauth/token` scopes: `OAuth2Write`

## Path parameters

- `did` string, required
- `wid` string, required
- `eid` string, required

## Query parameters

- `linkDocumentId` string

## Request body

- BTVariableStudioScopeInfo
  - `isAutomaticallyInserted` boolean, required: Whether variable studio is automatically inserted into part studios and assemblies in the workspace

## Response `default`

default response

---

[API](https://skmtc.dev/onshape/apis/onshape-rest-api.md) - [All operations](https://skmtc.dev/onshape/apis/onshape-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/onshape/apis/onshape-rest-api/revisions/c5c4c780f831?raw)
