{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeliner/json-schema/pipeliner-ghost-lead-oppty-contact-relation-schema.json",
  "title": "GhostLeadOpptyContactRelation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeliner-contact-api-openapi.yml#/components/schemas/GhostLeadOpptyContactRelation",
  "properties": {
    "is_delete_protected": {
      "type": "boolean",
      "description": "Tells if the entity instance is protected against delete (Entities that need to be present in the system at any time). Delete action still may fail if entity is deletable, due some other additional validations.",
      "readOnly": true
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier of entity.",
      "readOnly": true
    },
    "is_deleted": {
      "type": "boolean",
      "description": "Specifies if the entity is considered deleted.",
      "readOnly": true
    },
    "modified": {
      "type": "string",
      "format": "date-time",
      "description": "Last modification time.",
      "readOnly": true
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Creation time.",
      "readOnly": true
    },
    "ghost_contact": {
      "type": "string",
      "format": "uri",
      "description": "Placeholder ghost contact placed on the lead/opportunity org chart.\n\nRelation to GhostContact. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'GhostContact' object for properties."
    },
    "lead_oppty_contact_group_relation": {
      "type": "string",
      "format": "uri",
      "description": "Org-chart group the ghost contact belongs to, when grouped.\n\nRelation to LeadOpptyContactGroupRelation. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'LeadOpptyContactGroupRelation' object for properties."
    },
    "lead": {
      "type": "string",
      "format": "uri",
      "description": "Lead whose org chart includes the ghost contact. Set when lead_oppty_id resolves to a Lead.\n\nRelation to Lead. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Lead' object for properties."
    },
    "oppty": {
      "type": "string",
      "format": "uri",
      "description": "Opportunity whose org chart includes the ghost contact. Set when lead_oppty_id resolves to an Opportunity.\n\nRelation to Opportunity. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Opportunity' object for properties."
    },
    "comment": {
      "type": "string",
      "description": "Free-text comment shown on the org-chart node."
    },
    "ghost_contact_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the ghost contact."
    },
    "lead_oppty_contact_group_relation_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the parent org-chart group."
    },
    "lead_oppty_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked lead or opportunity."
    },
    "position_in_group": {
      "type": "object",
      "description": "Org-chart layout position of the ghost contact within its group, as a JSON object {\"x\": <int>, \"y\": <int>}."
    },
    "revision": {
      "type": "integer",
      "format": "int32",
      "description": "Revision when entity was lastly changed."
    },
    "sales_roles": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to GhostLeadOpptyContactSalesRoleRelation. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'GhostLeadOpptyContactSalesRoleRelation' object for properties."
      },
      "description": "Sales roles assigned to the ghost contact on this lead/opportunity."
    }
  },
  "required": [
    "is_delete_protected",
    "id",
    "ghost_contact",
    "ghost_contact_id",
    "lead_oppty_id"
  ]
}