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

# Update a tag

> Update the name or color of a tag.



## OpenAPI

````yaml openapi.json PATCH /api/v1/tags/{id}
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/tags/{id}:
    patch:
      tags:
        - Tags
      summary: Update a tag
      parameters:
        - schema:
            type: string
            description: Tag ID to delete
            example: tag_abc123
          required: true
          description: Tag ID to delete
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTag'
      responses:
        '200':
          description: Updated tag
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagUpdateResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UpdateTag:
      type: object
      properties:
        id:
          type: string
          description: Tag ID
          example: tag_abc123
        name:
          type: string
          description: Updated tag name
          example: Urgent
        color:
          type: string
          description: Hex color code
          example: '#FF0000'
      required:
        - id
    TagUpdateResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: string
              description: Tag ID
            name:
              type: string
              description: Updated tag name
            color:
              type: string
              description: Updated hex color
            updatedAt:
              type: string
              format: date-time
              description: Update timestamp
          required:
            - id
            - name
            - color
            - updatedAt
        success:
          type: boolean
          description: Success status
        error:
          type: string
          description: Error message
      required:
        - data
        - success
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

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