fishbowlAPI API

Update Tag

Updates an existing tag by UUID.

OpenAPI definition

{
  "openapi": "3.1.0",
  "info": {
    "title": "Fishbowl Public API",
    "version": "1.0",
    "description": "The Fishbowl Public API provides programmatic access to manage guests, loyalty programs, subscriptions, tags, and more within the Fishbowl GRM platform."
  },
  "servers": [
    {
      "url": "https://api.fishbowl.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Your Fishbowl API key for authentication and rate limiting."
      }
    },
    "parameters": {
      "ClientUuid": {
        "name": "X-Delightable-Client-Uuid",
        "in": "header",
        "required": true,
        "description": "Identifies the client context.",
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      "UuidPath": {
        "name": "uuid",
        "in": "path",
        "required": true,
        "description": "Resource UUID.",
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    "schemas": {
      "ApiResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          },
          "data": {},
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "error_code": {
            "type": "integer",
            "nullable": true
          },
          "total": {
            "type": "integer",
            "nullable": true
          },
          "cache_hit": {
            "type": "boolean"
          }
        }
      },
      "TagUpdate": {
        "type": "object",
        "required": [
          "tagName",
          "tagDescription",
          "tagCategoryUuid",
          "tagGroupUuid",
          "showOnGuestProfile"
        ],
        "properties": {
          "tagName": {
            "type": "string"
          },
          "tagDescription": {
            "type": "string"
          },
          "tagCategoryUuid": {
            "type": "string",
            "format": "uuid"
          },
          "tagGroupUuid": {
            "type": "string",
            "format": "uuid"
          },
          "showOnGuestProfile": {
            "type": "boolean"
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Tag API",
      "description": "Manage tags, tag categories, and tag groups."
    }
  ],
  "paths": {
    "/api/public/tag/{uuid}": {
      "put": {
        "summary": "Update Tag",
        "description": "Updates an existing tag by UUID.",
        "operationId": "updateTag",
        "tags": [
          "Tag API"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/UuidPath"
          },
          {
            "$ref": "#/components/parameters/ClientUuid"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated tag.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "description": "Tag not found."
          }
        }
      }
    }
  }
}