> ## Documentation Index
> Fetch the complete documentation index at: https://docs.herondata.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Add tags to an end user

> Add the given tags to the end user, leaving any tags already applied in place. Re-sending a tag that is already applied is a no-op, so retries are safe. Every tag heron_id must exist, otherwise none are applied.




## OpenAPI

````yaml https://app.herondata.io/swagger post /api/end_users/{end_user_id_or_heron_id}/tags
openapi: 3.0.0
info:
  contact:
    email: support@herondata.io
    name: Support
  title: Heron Data API
  version: '2021-07-19'
servers:
  - description: Production
    url: https://app.herondata.io
security:
  - ApiKeyAuth:
      - key_XXX
externalDocs:
  description: Read Tutorial
  url: https://docs.herondata.io/
paths:
  /api/end_users/{end_user_id_or_heron_id}/tags:
    post:
      tags:
        - Tags
      summary: Add tags to an end user
      description: >
        Add the given tags to the end user, leaving any tags already applied in
        place. Re-sending a tag that is already applied is a no-op, so retries
        are safe. Every tag heron_id must exist, otherwise none are applied.
      parameters:
        - in: path
          name: end_user_id_or_heron_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndUserTagsSchema'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  tags:
                    items:
                      $ref: '#/components/schemas/TagSchema'
                    type: array
                type: object
          description: OK
        '404':
          description: End user not found
        '422':
          description: Unknown tag heron_id
      security:
        - ApiKeyAuth: []
components:
  schemas:
    EndUserTagsSchema:
      properties:
        tags:
          description: Heron IDs of the tags to apply to this end user.
          items:
            type: string
          type: array
      required:
        - tags
      type: object
    TagSchema:
      properties:
        color:
          description: >-
            Optional display color as a six-digit hex code such as #1a2b3c,
            normalized to lowercase.
          nullable: true
          type: string
        description:
          description: Optional human-readable description of the tag.
          nullable: true
          type: string
        heron_id:
          description: Unique identifier for the tag
          readOnly: true
          type: string
        name:
          description: >-
            Identifier normalized to lowercase: alphanumeric plus '_', '-', ':',
            up to 140 chars. Unique to your account (case-insensitive).
          type: string
      required:
        - name
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````