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

# Edit a tag

> Rename a tag, change its colour, or set whether the app hides rows carrying it by default. The change applies everywhere the tag is used. Send only the fields you change. A name another tag already has is a 409 `tag_name_taken`; an unknown tag is a 404 `tag_not_found`. Answers 400 `tags_unavailable` while tags are off for the organization.



## OpenAPI

````yaml /api-reference/openapi.json patch /api/v1/initiatives/tags/{tag}
openapi: 3.1.0
info:
  title: Boom API
  version: 1.0.0
  description: >-
    Boom's public REST API — one uniform surface over every platform capability.
    CDP: upsert people and custom objects, define object and relationship types,
    link and unlink relationships, and record behavioral events — one record per
    request or up to 1000 per request via the `/batch` endpoints. Segments: read
    (list, read, membership) and full authoring — discover the filterable
    catalog, validate a filter, create and update segments, preview match
    counts, and trigger evaluation. Initiatives: create and configure outreach
    initiatives, link WhatsApp templates, drive the lifecycle (launch, cancel,
    archive), and read collected-data summaries. Participants: enroll people
    into an active initiative, track their status, read conversation
    transcripts, and stop outreach. Journeys: read-only access to always-on
    message flows and their metrics. WhatsApp templates: list your WhatsApp
    numbers and list, read, and create message templates. The same capabilities
    are exposed as MCP tools with identical schemas.
servers:
  - url: https://www.useboom.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /api/v1/initiatives/tags/{tag}:
    patch:
      tags:
        - Initiatives
      summary: Edit a tag
      description: >-
        Rename a tag, change its colour, or set whether the app hides rows
        carrying it by default. The change applies everywhere the tag is used.
        Send only the fields you change. A name another tag already has is a 409
        `tag_name_taken`; an unknown tag is a 404 `tag_not_found`. Answers 400
        `tags_unavailable` while tags are off for the organization.
      operationId: initiatives_tags_update
      parameters:
        - name: tag
          in: path
          required: true
          schema:
            $schema: https://json-schema.org/draft/2020-12/schema
            type: string
            minLength: 1
            maxLength: 80
            description: >-
              The tag: its `id` from initiatives_tags_list, or its name (matched
              ignoring case and spacing).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                name:
                  description: New name. Every row carrying the tag shows the new name.
                  type: string
                  minLength: 1
                  maxLength: 40
                color:
                  description: New colour.
                  type: string
                  enum:
                    - gray
                    - blue
                    - purple
                    - green
                    - orange
                    - red
                    - yellow
                    - pink
                hiddenByDefault:
                  description: >-
                    True hides finished or draft rows carrying this tag from the
                    app list by default (running ones always show). The API is
                    unaffected.
                  type: boolean
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  color:
                    type: string
                    enum:
                      - gray
                      - blue
                      - purple
                      - green
                      - orange
                      - red
                      - yellow
                      - pink
                  hiddenByDefault:
                    type: boolean
                    description: >-
                      True for a tag like "Test": the app list hides finished or
                      draft rows carrying it by default.
                  initiativeCount:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                    description: How many non-archived campaigns and initiatives carry it.
                required:
                  - id
                  - name
                  - color
                  - hiddenByDefault
                  - initiativeCount
                additionalProperties: false
        '400':
          description: Validation failed or the request cannot proceed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '401':
          description: Missing, malformed, or revoked API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '403':
          description: >-
            The key belongs to a partner workspace (`partner_workspace`); use a
            key from the brand.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '404':
          description: The resource does not exist in this organization.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '409':
          description: >-
            Conflicts with the current state (duplicates, wrong lifecycle
            state).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '422':
          description: The request is well-formed but semantically invalid.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '429':
          description: Rate limit exceeded — retry after `Retry-After`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '503':
          description: Transient error — retry with a narrower request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Organization API key, sent as `Authorization: Bearer boom_org_...`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.