{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-entity-profile-application-schema-schema.json",
  "title": "EntityProfileApplicationSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eightfold-ai-entity-profile-application-api-openapi.yml#/components/schemas/EntityProfileApplicationSchema",
  "type": "object",
  "properties": {
    "stage": {
      "type": [
        "string",
        "null"
      ],
      "description": ""
    },
    "lastModifiedTime": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "last modified timestamp of profile application"
    },
    "applicationAnswers": {
      "readOnly": true,
      "description": "application answers of candidate application",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ApplicationQuestionAnswers"
      }
    },
    "profileId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "profile id of candidate"
    },
    "groupId": {
      "type": [
        "string",
        "null"
      ],
      "description": ""
    },
    "customInfo": {
      "type": [
        "object",
        "null"
      ],
      "readOnly": true,
      "description": "custom info for the application"
    },
    "candidateId": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "candidate id of profile application"
    },
    "comment": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "comment added during stage advance"
    },
    "id": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "object id of the profile application"
    },
    "namespace": {
      "type": [
        "string",
        "null"
      ],
      "description": "namespace of profile application"
    },
    "applicationTime": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "application timestamp of profile application"
    },
    "currentStage": {
      "type": [
        "string",
        "null"
      ],
      "description": "current stage of profile application"
    },
    "status": {
      "type": [
        "string",
        "null"
      ],
      "description": "status of the application"
    },
    "entityId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "entity id of profile application"
    },
    "actionUser": {
      "readOnly": true,
      "description": "user who advanced the stage",
      "allOf": [
        {
          "$ref": "#/$defs/Person"
        }
      ]
    },
    "applicationId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "application id of profile application"
    }
  },
  "$defs": {
    "ApplicationQuestionAnswers": {
      "type": "object",
      "properties": {
        "answer": {
          "type": [
            "string",
            "null"
          ],
          "description": "Answer of candidate Application question answers"
        },
        "questionId": {
          "type": [
            "string",
            "null"
          ],
          "description": "question ID of candidate Application question answers"
        },
        "displayOrder": {
          "type": [
            "string",
            "null"
          ],
          "writeOnly": true,
          "description": "Display order of the question on the ATS questionnaire; required by Workday to match the answer"
        },
        "question": {
          "type": [
            "string",
            "null"
          ],
          "description": "question of candidate Application question answers"
        }
      },
      "required": [
        "question",
        "questionId"
      ]
    },
    "Person": {
      "type": "object",
      "properties": {
        "email": {
          "type": [
            "string",
            "null"
          ],
          "description": "email"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name"
        }
      },
      "required": [
        "name"
      ]
    }
  }
}