---
updatedAt: 2026-10-31T08:03:05.000Z
agentTools:
  projectIndex: https://developer.accelevents.com/llms.txt
---

# Create tag/tracks

Using tags and tracks you can label sessions and group them according to your convenience. It helps to filter out sessions based on tags and tracks.

To create tags or tracks for an event same API endpoints are used. They are differentiated by `type` field. For tags and tracks `type` fields' values should be `TAGS` and `TRACKS` respectively. 

`type` and `name`  are required fields, apart from them you can also pass additional fields like `color`, `position`, `description`.

This API can be used by authenticated users only and it will require super admin/admin/staff level access.

Here is the description of response attributes, which returns to the form of JSON.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Attributes
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        ID
      </td>

      <td style={{ textAlign: "left" }}>
        Unique tag or tracks ID.
      </td>
    </tr>
  </tbody>
</Table>

Here is the possible error messages, which return if any condition gets failed or required data is missing for processing.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Error Code
      </th>

      <th>
        Error Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        400
      </td>

      <td>
        The request could not be understood by the server due to malformed syntax.
      </td>
    </tr>

    <tr>
      <td>
        401
      </td>

      <td>
        You are not authorized to view the resource.
      </td>
    </tr>

    <tr>
      <td>
        403
      </td>

      <td>
        Accessing the resource you were trying to reach is forbidden.
      </td>
    </tr>

    <tr>
      <td>
        404
      </td>

      <td>
        The resource you were trying to reach is not found.
      </td>
    </tr>
  </tbody>
</Table>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "accelevents",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.accelevents.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/rest/host/event/{eventUrl}/key-value": {
      "post": {
        "summary": "Create tag/tracks",
        "description": "Using tags and tracks you can label sessions and group them according to your convenience. It helps to filter out sessions based on tags and tracks.\n\nTo create tags or tracks for an event same API endpoints are used. They are differentiated by `type` field. For tags and tracks `type` fields' values should be `TAGS` and `TRACKS` respectively. \n\n`type` and `name`  are required fields, apart from them you can also pass additional fields like `color`, `position`, `description`.\n\nThis API can be used by authenticated users only and it will require super admin/admin/staff level access.",
        "operationId": "create-tag-and-tracks",
        "parameters": [
          {
            "name": "eventUrl",
            "in": "path",
            "description": "Event url is unique identifier for your event. E.g https://www.accelevents.com/events/demo. Here demo is the event url.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "RAW_BODY": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "id": {
                        "type": "integer",
                        "format": "int64"
                      },
                      "name": {
                        "type": "string"
                      },
                      "position": {
                        "type": "number",
                        "format": "double"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "TAG",
                          "TRACK"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "102"
                  }
                },
                "schema": {
                  "type": "integer",
                  "example": 102,
                  "default": 0
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```