{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-audience-input-schema.json",
  "title": "AudienceInput",
  "description": "Input for creating or updating an audience",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-audiences-api-openapi.yml#/components/schemas/AudienceInput",
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "format": "int64",
      "description": "The project this audience belongs to"
    },
    "name": {
      "type": "string",
      "description": "Human-readable name of the audience"
    },
    "description": {
      "type": "string",
      "description": "Description of the audience"
    },
    "conditions": {
      "type": "string",
      "description": "JSON-encoded audience conditions"
    }
  }
}