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

# Update a tag

> Update a tag by ID for the authenticated team.



## OpenAPI

````yaml patch /tags/{id}
openapi: 3.1.0
info:
  version: 0.0.1
  title: Abacus API
  description: Abacus is the operating system for Merchant Cash Advance businesses.
  contact:
    name: Abacus Support
    email: support@abacuslabs.co
    url: https://abacuslabs.co
  license:
    name: AGPL-3.0 license
    url: https://github.com/Suphian/abacus/blob/main/LICENSE
servers:
  - url: https://api.abacuslabs.co
    description: Production API
security:
  - oauth2: []
  - token: []
paths:
  /tags/{id}:
    patch:
      tags:
        - Tags
      summary: Update a tag
      description: Update a tag by ID for the authenticated team.
      operationId: updateTag
      parameters:
        - schema:
            type: string
            format: uuid
            description: The ID of the tag to update.
            example: b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f
          required: true
          description: The ID of the tag to update.
          in: path
          name: id
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The new name of the tag.
                  example: Urgent
              required:
                - name
      responses:
        '200':
          description: Tag updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagResponse'
components:
  schemas:
    TagResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: The UUID of the tag.
          example: b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f
        name:
          type: string
          description: The name of the tag.
          example: Important
        color:
          type: string
          nullable: true
          description: Color key for the tag.
          example: blue
      required:
        - id
        - name
        - color
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: Default authentication mechanism
      x-speakeasy-example: ABACUS_API_KEY

````

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