---
title: "Create a variable set"
method: POST
path: "/var-sets"
tags: ["var-sets"]
---

# Create a variable set

`POST /var-sets`

Creates a new variable set.

## Query parameters

- `include` string[]
- `fields` object
  - `accounts` string — The comma-separated list of fields to return in response for Account resource.
  - `environments` string — The comma-separated list of fields to return in response for Environment resource.
  - `teams` string — The comma-separated list of fields to return in response for Team resource.
  - `var-sets` string — The comma-separated list of fields to return in response for VariableSet resource.

## Response `201`

Created.

## Other responses

- `403` — User unauthorized to perform action.
- `404` — Relationship resource not found, or user unauthorized to perform action.
- `422` — Malformed request body or validation error.
- `4XX` — Client error.
- `5XX` — Server error.

---

[API](https://skmtc.net/scalr/apis/scalr-iacp-api.md) · [All operations](https://skmtc.net/scalr/apis/scalr-iacp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalr/scalr-iacp-api/revisions/fc927526ad12/schema)
