PostHog · Schema

BulkUpdateTagsRequest

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
ids array List of object IDs to update tags on.
action object 'add' merges with existing tags, 'remove' deletes specific tags, 'set' replaces all tags. * `add` - add * `remove` - remove * `set` - set
tags array Tag names to add, remove, or set.
View JSON Schema on GitHub

JSON Schema

posthog-bulkupdatetagsrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/BulkUpdateTagsRequest",
  "title": "BulkUpdateTagsRequest",
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "description": "List of object IDs to update tags on.",
      "maxItems": 500
    },
    "action": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ActionEnum"
        }
      ],
      "description": "'add' merges with existing tags, 'remove' deletes specific tags, 'set' replaces all tags.\n\n* `add` - add\n* `remove` - remove\n* `set` - set"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Tag names to add, remove, or set."
    }
  },
  "required": [
    "action",
    "ids",
    "tags"
  ]
}