---
title: "Creates a new Tag Set."
method: POST
path: "/tagsets"
tags: ["TagSets"]
---

# Creates a new Tag Set.

`POST /tagsets`

## Request body

- CreateTagSetCommand
  - `Description` string
  - `Name` string, required
  - `Scopes` string[] — The resource types the tag set applies to. Valid values: 'Tenant', 'Environment', 'Project', 'Target', 'Runbook', 'Feature Toggle'. Defaults to ['Tenant'] when omitted.
  - `SortOrder` integer
  - `SpaceId` string, required
  - `Tags` TagResource[] — The tags that make up the tag set. Each tag is an object with a 'Name', an optional 'Description', a 'Color' hex code (e.g. '#3156B3'), and a 'SortOrder'. Leave empty for a 'FreeText' tag set, which does not allow predefined tags.
    - `CanonicalTagName` string
    - `Color` string
    - `Description` string
    - `Id` string
    - `Name` string
    - `SortOrder` integer
  - `Type` string — How tags from the set are applied to a resource: 'MultiSelect' (any number of tags), 'SingleSelect' (one tag at a time), or 'FreeText' (arbitrary values, no predefined tags). Defaults to 'MultiSelect' when omitted.

## Response `201`

Created

- TagSetResource
  - `Description` string
  - `Id` string
  - `IsSystem` boolean
  - `LastModifiedBy` string
  - `LastModifiedOn` string, date-time
  - `Links` object
  - `Name` string, required
  - `Scopes` string[]
  - `SortOrder` integer
  - `SpaceId` string
  - `Tags` TagResource[]
    - `CanonicalTagName` string
    - `Color` string
    - `Description` string
    - `Id` string
    - `Name` string
    - `SortOrder` integer
  - `Type` string

## 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)
