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

# Create a new Tag Set.

`POST /tagsets`

## Request body

- CreateTagSetCommand
  - `Description` string — Sets the description of this tag set.
  - `Name` string, required — Sets the name of this tag set.
  - `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 — Sets the sort order of this tag set.
  - `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 — This is the canonical name for the Tag formed as {TagSetName}/{TagName} which is easier to work with than the ID in certain scenarios.
    - `Color` string — Gets or sets the color of this tag.
    - `Description` string — Gets or sets the description of this tag.
    - `Id` string
    - `Name` string — Gets or sets the name of this tag.
    - `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 — Gets or sets the description of this tag set.
  - `Id` string — Gets or sets a unique identifier for this resource.
  - `IsSystem` boolean — Whether this tag set is a system-managed tag set.
  - `LastModifiedBy` string — Gets or sets the username of the user who last modified this resource.
  - `LastModifiedOn` string, date-time — Gets or sets the date/time that this resource was last modified.
  - `Links` object — Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.
  - `Name` string, required — Gets or sets the name of this tag set.
  - `Scopes` string[] — The resource types this tag set applies to.
  - `SortOrder` integer — Gets or sets the sort order of this tag set.
  - `SpaceId` string
  - `Tags` TagResource[] — The tags that make up this tag set
    - `CanonicalTagName` string — This is the canonical name for the Tag formed as {TagSetName}/{TagName} which is easier to work with than the ID in certain scenarios.
    - `Color` string — Gets or sets the color of this tag.
    - `Description` string — Gets or sets the description of this tag.
    - `Id` string
    - `Name` string — Gets or sets the name of this tag.
    - `SortOrder` integer
  - `Type` string — The type of this tag set.

## 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.dev/octopus/apis/octopus-server-api.md) · [All operations](https://skmtc.dev/octopus/apis/octopus-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/octopus/octopus-server-api/revisions/63b4166a0686/schema)
