past-dev · Schema

PutAudienceRequest

Artificial IntelligenceMemoryPlatformDevelopers

Properties

Name Type Description
kind string
name string Defaults to the slug on create.
identities array Required for a fixed audience. An empty list reaches nobody. An id with no record is created.
rule object
View JSON Schema on GitHub

JSON Schema

past-dev-put-audience-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/past-dev/json-schema/past-dev-put-audience-request-schema.json",
  "title": "PutAudienceRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/past-dev-audiences-api-openapi.yml#/components/schemas/PutAudienceRequest",
  "type": "object",
  "required": [
    "kind"
  ],
  "additionalProperties": false,
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "fixed",
        "rule"
      ]
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Defaults to the slug on create."
    },
    "identities": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 200
      },
      "description": "Required for a fixed audience. An empty list reaches nobody. An id with no record is created."
    },
    "rule": {
      "$ref": "#/$defs/AudienceRule"
    }
  },
  "$defs": {
    "AudienceCondition": {
      "type": "object",
      "required": [
        "trait",
        "operator"
      ],
      "additionalProperties": false,
      "properties": {
        "trait": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "operator": {
          "type": "string",
          "enum": [
            "is",
            "is_not",
            "is_one_of",
            "is_not_one_of",
            "exists",
            "does_not_exist"
          ]
        },
        "values": {
          "type": "array",
          "maxItems": 50,
          "items": {
            "type": "string"
          },
          "description": "One value for is and is_not, 1 to 50 for is_one_of and is_not_one_of, none for exists and does_not_exist."
        }
      }
    },
    "AudienceRule": {
      "type": "object",
      "required": [
        "match",
        "conditions"
      ],
      "additionalProperties": false,
      "properties": {
        "match": {
          "type": "string",
          "enum": [
            "all",
            "any"
          ]
        },
        "conditions": {
          "type": "array",
          "minItems": 1,
          "maxItems": 20,
          "items": {
            "$ref": "#/$defs/AudienceCondition"
          }
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/past-dev-put-audience-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.