{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/accompany/main/json-schema/accompany-post-api-v2-user-profiles-events-request-schema.json",
  "title": "PostApiV2UserProfilesEventsRequest",
  "x-generated": "2026-10-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/accompany-openapi-generated.yml#/components/schemas/PostApiV2UserProfilesEventsRequest",
  "type": "object",
  "properties": {
    "profile": {
      "type": "object",
      "description": "Identifies the person who triggered the event and links the event to a Zendesk user via identifiers."
    },
    "profile.source": {
      "type": "string",
      "description": "The source system of the profile (e.g., \"acme\")."
    },
    "profile.type": {
      "type": "string",
      "description": "The type of the profile (e.g., \"customer\")."
    },
    "profile.identifiers": {
      "type": "array",
      "description": "Array of identifier objects used to match a Zendesk user."
    },
    "profile.identifiers[].type": {
      "type": "string",
      "description": "Type of identifier (e.g., \"email\")."
    },
    "profile.identifiers[].value": {
      "type": "string",
      "description": "Value of the identifier (e.g., an email address)."
    },
    "event": {
      "type": "object",
      "description": "The event data to be recorded."
    },
    "event.source": {
      "type": "string",
      "description": "The source system of the event (e.g., \"acme\")."
    },
    "event.type": {
      "type": "string",
      "description": "The type/name of the event (e.g., \"2fa_enabled\")."
    },
    "event.description": {
      "type": "string",
      "description": "Human‑readable description of the event."
    },
    "event.properties": {
      "type": "object",
      "description": "Custom key‑value pairs with additional event data."
    },
    "event.properties.passcode_preference": {
      "type": "string",
      "description": "Example property shown in the documentation (e.g., \"SMS\")."
    }
  },
  "required": [
    "profile",
    "profile.source",
    "profile.type",
    "profile.identifiers",
    "profile.identifiers[].type",
    "profile.identifiers[].value",
    "event",
    "event.source",
    "event.type",
    "event.description"
  ]
}