{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-succession-plan-schema-schema.json",
  "title": "SuccessionPlanSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eightfold-ai-succession-plan-api-openapi.yml#/components/schemas/SuccessionPlanSchema",
  "type": "object",
  "properties": {
    "createdAt": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "Timestamp representing creation date and time of the succession plan"
    },
    "associatedRoleId": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Eightfold role ID associated with the succession plan"
    },
    "jobCode": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "External job code of the incumbent(s)"
    },
    "caretakers": {
      "readOnly": true,
      "description": "Caretaker profile IDs of the succession plan",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/SuccessionPlanCaretaker"
      }
    },
    "entityId": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "ATS/HRIS position ID associated with the plan"
    },
    "positionCriticalityTags": {
      "type": [
        "array",
        "null"
      ],
      "readOnly": true,
      "description": "Criticality tags of the succession plan that is associated with the position held by the incumbent",
      "items": {
        "type": "string"
      }
    },
    "incumbents": {
      "description": "Incumbents of the succession plan",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/SuccessionPlanIncumbent"
      }
    },
    "planType": {
      "type": [
        "string",
        "null"
      ],
      "description": "Type of the succession plan Ex. either \"position\" or \"role\" (only honored for POST)"
    },
    "planName": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 200,
      "description": "Name of the succession plan"
    },
    "successors": {
      "readOnly": true,
      "description": "Successors of the succession plan",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/SuccessionPlanSuccessor"
      }
    },
    "updatedAt": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "Timestamp representing the updation date and time of the succession plan"
    },
    "metricFields": {
      "readOnly": true,
      "description": "Metric fields highlighting key aspects of the succession plan",
      "allOf": [
        {
          "$ref": "#/$defs/SuccessionPlanMetricFields"
        }
      ]
    },
    "roleCriticalityTags": {
      "type": [
        "array",
        "null"
      ],
      "readOnly": true,
      "description": "Criticality tags of the role that is associated with the position held by the incumbent",
      "items": {
        "type": "string"
      }
    },
    "positionId": {
      "type": "integer",
      "format": "int32",
      "readOnly": true,
      "description": "Eightfold position ID associated with the succession plan"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Description of the succession plan"
    }
  },
  "required": [
    "positionId"
  ],
  "$defs": {
    "EmployeeMatchScoreSchema": {
      "type": "object",
      "properties": {
        "matchType": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Match score criteria"
        },
        "rawScore": {
          "type": [
            "number",
            "null"
          ],
          "format": "float",
          "readOnly": true,
          "description": "Raw match score in float"
        },
        "topMatches": {
          "type": [
            "array",
            "null"
          ],
          "readOnly": true,
          "description": "Top items matched based on the match type",
          "items": {
            "type": "string"
          }
        },
        "score": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Rounded match score in integer"
        }
      }
    },
    "SuccessionPlanCaretaker": {
      "type": "object",
      "properties": {
        "createdAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Timestamp when the caretaker was first added to the plan"
        },
        "employeeId": {
          "type": [
            "string",
            "null"
          ],
          "description": "ATS/HRIS employee ID of the caretaker"
        },
        "updatedAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Timestamp when the caretaker data was last updated"
        },
        "profileId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Eightfold decoded profile ID (numeric) of the caretaker"
        }
      }
    },
    "SuccessionPlanIncumbent": {
      "type": "object",
      "properties": {
        "externalJobId": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Position ID associated with the incumbent in ATS/HRIS"
        },
        "employeeId": {
          "type": [
            "string",
            "null"
          ],
          "description": "ATS/HRIS employee ID of the incumbent"
        },
        "profileId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Eightfold decoded profile ID (numeric) of the incumbent"
        }
      }
    },
    "SuccessionPlanMetricFields": {
      "type": "object",
      "properties": {
        "insightTag": {
          "type": [
            "array",
            "null"
          ],
          "readOnly": true,
          "description": "Tags to highlight key aspects of the plan",
          "items": {
            "type": "string"
          }
        },
        "pipelineStrength": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Strength of the plan’s successor pipeline"
        },
        "femalePercentage": {
          "type": [
            "number",
            "null"
          ],
          "format": "float",
          "readOnly": true,
          "description": "Percentage of female successors in the plan"
        },
        "diverseEthnicityPercentage": {
          "type": [
            "number",
            "null"
          ],
          "format": "float",
          "readOnly": true,
          "description": "Percentage of diverse-ethnicity successor in the plan"
        }
      }
    },
    "SuccessionPlanSuccessor": {
      "type": "object",
      "properties": {
        "createdAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Timestamp when the successor was first added to the plan"
        },
        "order": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Order of the successor within its succession state group"
        },
        "profileId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Eightfold decoded profile ID (numeric)"
        },
        "employeeId": {
          "type": [
            "string",
            "null"
          ],
          "description": "ATS/HRIS employee ID of the successor"
        },
        "matchScores": {
          "readOnly": true,
          "description": "Match score details",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/EmployeeMatchScoreSchema"
          }
        },
        "updatedAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Timestamp when the successor data was last updated"
        },
        "state": {
          "type": "string",
          "description": "Succession state of the successor"
        }
      },
      "required": [
        "state"
      ]
    }
  }
}