{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/accompany/main/json-schema/accompany-put-api-v2-user-profiles-request-schema.json",
  "title": "PutApiV2UserProfilesRequest",
  "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/PutApiV2UserProfilesRequest",
  "type": "object",
  "properties": {
    "profile": {
      "type": "object",
      "description": "Profile object containing source, type, identifiers and optional attributes"
    },
    "profile.source": {
      "type": "string",
      "description": "Source of the profile (e.g., \"acme\")"
    },
    "profile.type": {
      "type": "string",
      "description": "Type of the profile (e.g., \"customer\")"
    },
    "profile.identifiers": {
      "type": "array",
      "description": "Array of identifier objects"
    },
    "profile.identifiers[].type": {
      "type": "string",
      "description": "Identifier type such as \"email\" or \"phone_number\""
    },
    "profile.identifiers[].value": {
      "type": "string",
      "description": "Identifier value (must be a string)"
    },
    "profile.attributes": {
      "type": "object",
      "description": "Optional key‑value pairs with additional profile attributes"
    }
  },
  "required": [
    "profile",
    "profile.source",
    "profile.type",
    "profile.identifiers",
    "profile.identifiers[].type",
    "profile.identifiers[].value"
  ]
}