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

# Add or remove conversation tags

> Adds and removes tags on a conversation, and returns the resulting tags. Adding a tag the conversation already has,
or removing one it doesn't, is a no-op. If the result would exceed 5 tags, the request fails with 409 and the tags
are unchanged.

### About tags

Tags are labels for finding conversations. You can use the list endpoint to filter conversations by tags. Tags may be
high cardinality, and can follow a key-value pattern where the value is an identifier from your own system, such as
`user_id:50696cf7ec5356ee07df17e5`. A conversation may have at most 5 unique tags, and each tag must be 1-50
characters of lowercase letters, digits, `.`, `_`, `:`, and `-`.



## OpenAPI

````yaml https://app.goguava.ai/openapi.json patch /v1/conversations/{call_id}/tags
openapi: 3.1.0
info:
  title: Guava API Server
  version: guava-release-0.52.0
servers:
  - url: https://app.goguava.ai
security: []
paths:
  /v1/conversations/{call_id}/tags:
    patch:
      tags:
        - Calls
      summary: Add or remove conversation tags
      description: >-
        Adds and removes tags on a conversation, and returns the resulting tags.
        Adding a tag the conversation already has,

        or removing one it doesn't, is a no-op. If the result would exceed 5
        tags, the request fails with 409 and the tags

        are unchanged.


        ### About tags


        Tags are labels for finding conversations. You can use the list endpoint
        to filter conversations by tags. Tags may be

        high cardinality, and can follow a key-value pattern where the value is
        an identifier from your own system, such as

        `user_id:50696cf7ec5356ee07df17e5`. A conversation may have at most 5
        unique tags, and each tag must be 1-50

        characters of lowercase letters, digits, `.`, `_`, `:`, and `-`.
      operationId: api_patch_conversation_tags_v1_conversations__call_id__tags_patch
      parameters:
        - name: call_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the call whose tags to update.
            title: Call Id
          description: ID of the call whose tags to update.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagsPatch'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagsResponse'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Conversation not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: The result would exceed 5 tags.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKey: []
components:
  schemas:
    TagsPatch:
      properties:
        add:
          items:
            type: string
            pattern: ^[a-z0-9._:-]{1,50}$
          type: array
          maxItems: 5
          title: Add
          description: Tags to add. Tags the conversation already has are ignored.
          default: []
        remove:
          items:
            type: string
            pattern: ^[a-z0-9._:-]{1,50}$
          type: array
          maxItems: 5
          title: Remove
          description: Tags to remove. Tags the conversation doesn't have are ignored.
          default: []
      additionalProperties: false
      type: object
      title: TagsPatch
    TagsResponse:
      properties:
        tags:
          items:
            type: string
          type: array
          title: Tags
      type: object
      required:
        - tags
      title: TagsResponse
    ErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
      type: object
      required:
        - detail
      title: ErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKey:
      type: http
      description: 'A Guava API key, sent as `Authorization: Bearer <key>`.'
      scheme: bearer

````

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