---
updatedAt: 2026-05-27T00:16:27.000Z
agentTools:
  projectIndex: https://360learning.readme.io/llms.txt
---

# Create a tag

> 🔑
>
> Required OAuth scope: `tags:write`.

Creates a tag with the given properties.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/api/v2/tags": {
      "post": {
        "description": "> 🔑\n>\n> Required OAuth scope: `tags:write`.\n\nCreates a tag with the given properties.",
        "operationId": "v2.tags.CreateTagController_createTag",
        "parameters": [
          {
            "name": "360-api-version",
            "in": "header",
            "description": "The version of the API.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "v2.0"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagUpdatableFields"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns the created tag.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagDTO"
                }
              }
            }
          },
          "400": {
            "description": "The given tag name belongs to another tag.",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Tag Name Not Available",
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "tagNameNotAvailable"
                          ]
                        },
                        "message": {
                          "type": "string",
                          "example": "A human-readable message to help with debugging."
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The given access token is either missing, invalid, has expired, or has been revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The given access token does not have the required OAuth scope to execute the request.",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Invalid Scope",
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "invalid_scope"
                          ]
                        },
                        "message": {
                          "type": "string",
                          "example": "A human-readable message to help with debugging."
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "The client has sent too many requests in a short amount of time. ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "enum": [
                        "tooManyRequests"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ],
        "summary": "Create a tag",
        "tags": [
          "Tags"
        ]
      }
    }
  },
  "info": {
    "title": "Core API",
    "description": "",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://app.360learning.com",
      "description": "Production EU"
    },
    {
      "url": "https://app.us.360learning.com",
      "description": "Production US"
    }
  ],
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/api/v2/oauth2/token",
            "scopes": {}
          }
        },
        "description": "Use the token from the authentication endpoint in the Authorization header.\n\nExample: `Authorization: Bearer <token>`"
      }
    },
    "schemas": {
      "TagUpdatableFields": {
        "title": "Tag Updatable Fields",
        "type": "object",
        "properties": {
          "isMain": {
            "type": "boolean",
            "description": "True if the tag is to be set as a main tag; false otherwise."
          },
          "name": {
            "type": "string",
            "description": "The name of the tag.",
            "example": "Onboarding",
            "minLength": 1
          },
          "externalId": {
            "type": "string",
            "description": "The external identifier of the tag if it is being synced from outer resources.",
            "example": "1743_ab",
            "minLength": 1
          }
        },
        "required": [
          "isMain",
          "name"
        ]
      },
      "TagDTO": {
        "title": "Tag",
        "type": "object",
        "properties": {
          "isMain": {
            "type": "boolean",
            "description": "True if the tag is to be set as a main tag; false otherwise."
          },
          "_id": {
            "type": "string",
            "description": "The unique ID of the tag.",
            "format": "ObjectId",
            "example": "507f1f77bcf86cd799439011",
            "pattern": "^[a-fA-F0-9]{24}$"
          },
          "name": {
            "type": "string",
            "description": "The name of the tag.",
            "example": "Onboarding"
          },
          "externalId": {
            "type": "string",
            "description": "The external identifier of the tag if it is being synced from outer resources.",
            "example": "1743_ab"
          }
        },
        "required": [
          "isMain",
          "_id",
          "name"
        ]
      }
    }
  },
  "x-readme": {
    "apply-tag-changes": true
  }
}
```