{
    "swagger": "2.0",
    "host": "api.dcX.pageuppeople.com",
    "basePath": "/v3/{tenantId}/recruitment",
    "info": {
        "version": "1",
        "title": "PageUp Recruitment Applications API"
    },
    "schemes": [
        "https"
    ],
    "paths": {
        "/applications/{id}": {
            "get": {
                "tags": [
                    "Developer Portal: Recruitment > Applications"
                ],
                "summary": "Returns a single Application using the received application id",
                "description": "Required OAuth scopes for authentication: <b>Public.Application.Read</b>",
                "operationId": "ApplicationAPI_Get",
                "consumes": [],
                "produces": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Application Id",
                        "required": true,
                        "type": "integer",
                        "format": "int32"
                    },
                    {
                        "name": "historyLength",
                        "in": "query",
                        "description": "the number of application status historical items to include (ordered by date descending) - optional",
                        "required": false,
                        "type": "integer",
                        "format": "int32",
                        "default": 0
                    },
                    {
                        "name": "includeApplicationFlag",
                        "in": "query",
                        "description": "set to true if the response includes application flags - optional",
                        "required": false,
                        "type": "boolean",
                        "default": false
                    },
                    {
                        "name": "includeApplicationDocuments",
                        "in": "query",
                        "description": "set to true if the response includes the application documents - optional",
                        "required": false,
                        "type": "boolean",
                        "default": false
                    },
                    {
                        "name": "includeApplicationScore",
                        "in": "query",
                        "description": "set to true if the response includes the application score - optional",
                        "required": false,
                        "type": "boolean",
                        "default": false
                    }
                ],
                "responses": {
                    "200": {
                        "description": "A JSON representation of the application after the changes were applied.",
                        "schema": {
                            "$ref": "#/definitions/Application"
                        }
                    },
                    "404": {
                        "description": "Not Found - The requested resource (i.e. Application specified) could not be found"
                    },
                    "500": {
                        "description": "Internal Server error"
                    }
                }
            },
            "patch": {
                "tags": [
                    "Developer Portal: Recruitment > Applications"
                ],
                "summary": "Allows the update of an application's sFlagX string values, which are often used to store additional application data and shown in the Manage Applications page.",
                "description": "Allows the update of an application's flags via JSONPatch requests (http://jsonpatch.com/).\r\nSupported operations include:\r\n\r\n* `replace`\r\n* `add` (synonymous with `replace` if referring to an existing field path; otherwise will raise an invalid field exception) \r\n* `remove`\r\n* `copy`\r\n* `move`\r\n\r\nSupported fields for PATCHing include FlagX (where X is 1 - 8).. Required OAuth scopes for authentication: <b>Public.Application.Write</b>",
                "operationId": "ApplicationAPI_Patch",
                "consumes": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml",
                    "application/x-www-form-urlencoded"
                ],
                "produces": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID of the application to update.",
                        "required": true,
                        "type": "integer",
                        "format": "int32"
                    },
                    {
                        "name": "applicationPatchDocument",
                        "in": "body",
                        "description": "A list of JSONPatch changes to apply to the object.",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/JsonPatchDocument[ApplicationPatch]"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "A JSON representation of the application after the changes were applied.",
                        "schema": {
                            "$ref": "#/definitions/Application"
                        }
                    },
                    "400": {
                        "description": "Bad Request - Cannot process request (e.g. the JSON Patch sent through is invalid)"
                    },
                    "404": {
                        "description": "Not Found - The requested resource (i.e. Application specified) could not be found"
                    },
                    "500": {
                        "description": "Internal Server error"
                    }
                }
            }
        },
        "/applications/{id}/changeapplicationstatus": {
            "post": {
                "tags": [
                    "Developer Portal: Recruitment > Applications"
                ],
                "summary": "Change an Application's ApplicationStatus (by the Status ID).",
                "description": "Allows the changing of an Application's ApplicationStatus (by the Status ID) and optionally a reason for that change.\r\nThis endpoint supports/takes the following actions (where relevant)\r\n* Reason for the status change\r\n* Create RecruitmentStep\r\n* Create ApplicationStatusHistory\r\n* Create ApplicationNote\r\n* Send ApplicationStatus Communication\r\n\r\nCurrently this endpoint does not support System Status functionality and will not do any additional processing with regards to workflows, integrations, etc; other than listed above. Required OAuth scopes for authentication: <b>Public.Application.Write</b>",
                "operationId": "ApplicationAPI_ChangeApplicationStatus",
                "consumes": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml",
                    "application/x-www-form-urlencoded"
                ],
                "produces": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Application Id",
                        "required": true,
                        "type": "integer",
                        "format": "int32"
                    },
                    {
                        "name": "applicationStatusChange",
                        "in": "body",
                        "description": "An object describing which status to move to and the reason for the change.",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/ApplicationStatusChange"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ok",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "Bad Request - The server cannot or will not process the request"
                    },
                    "404": {
                        "description": "Not Found - The requested resource could not be found"
                    },
                    "421": {
                        "description": "Misdirected Request - The request was directed at a server that is not able to produce a response"
                    },
                    "500": {
                        "description": "Internal Server error"
                    }
                }
            }
        },
        "/applications/{id}/changeapplicationstatusbycode": {
            "post": {
                "tags": [
                    "Developer Portal: Recruitment > Applications"
                ],
                "summary": "Change an Application's ApplicationStatus (by the Status Code).",
                "description": "If configured correctly, the ApplicationStatusCode allows you to identify a common Application Status **across** recruitment processes.\r\nThis allows external systems to move applications into a status without needing to know the exact status or recruitment process details.\r\nAllows the changing of an Application's ApplicationStatus (by the Status Code) and optionally a reason for that change.\r\nThis endpoint supports/takes the following actions (where relevant).\r\nReason for the status change\r\n* Create RecruitmentStep\r\n* Create ApplicationStatusHistory\r\n* Create ApplicationNote\r\n* Send ApplicationStatus Communication\r\n\r\nCurrently this endpoint does not support System Status functionality and will not do any additional processing with regards to workflows, integrations, etc; other than listed above. Required OAuth scopes for authentication: <b>Public.Application.Write</b>",
                "operationId": "ApplicationAPI_ChangeApplicationStatusByCode",
                "consumes": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml",
                    "application/x-www-form-urlencoded"
                ],
                "produces": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Application Id",
                        "required": true,
                        "type": "integer",
                        "format": "int32"
                    },
                    {
                        "name": "applicationStatusChangeByCode",
                        "in": "body",
                        "description": "An object describing which status to move to (by the Status Code) and the reason for the change.",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/ApplicationStatusChangeByCode"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ok",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "Bad Request - The server cannot or will not process the request"
                    },
                    "404": {
                        "description": "Not Found - The requested resource could not be found"
                    },
                    "421": {
                        "description": "Misdirected Request - The request was directed at a server that is not able to produce a response"
                    },
                    "500": {
                        "description": "Internal Server error"
                    }
                }
            }
        },
        "/applications/changeorderofmerit": {
            "post": {
                "tags": [
                    "Developer Portal: Recruitment > Applications"
                ],
                "summary": "Allows the changing of an application's order of merit (rank).",
                "description": "<para>Allows the changing of an application's order of merit via Post requests, will reject requests with duplicate Ids or Order of Merits and invalid Ids.\r\n            The order or merit value is optional and no value indicates an intended clearing action for the corresponding application.\r\n            Will reorder the Order of Merit values that are currently against other Applications for the same Job, to keep them unique. The final states of each of the \r\n            application order of merits in the payload after this logic will be in their respective position in all applications for the same job\r\n            <pre>\r\n            Ex.\r\n                        Payload                         Existing                            Result\r\n            [                                   [                                   [\r\n                {                                   {                                   {\r\n                    \"ApplicationId\" : 1                 \"ApplicationId\" : 2                 \"ApplicationId\" : 1\r\n                    \"OrderOfMerit\" : 1                  \"OrderOfMerit\" : 1                  \"OrderOfMerit\" : 1  \r\n                },                                  },                                  },\r\n                {                                   {                                   { \r\n                    \"ApplicationId\" : 3                 \"ApplicationId\" : 3                 \"ApplicationId\" : 2\r\n                    \"OrderOfMerit\" :                    \"OrderOfMerit\" :  2                 \"OrderOfMerit\" :  2 \r\n                },                                  },                                  },\r\n                {                                   {                                   { \r\n                    \"ApplicationId\" : 5                 \"ApplicationId\" : 4                 \"ApplicationId\" : 4                 \r\n                    \"OrderOfMerit\" : 10                 \"OrderOfMerit\" :  3                 \"OrderOfMerit\" :  3  \r\n                }                                   }                                   },\r\n            ]                                   ]                                       {\r\n                                                                                            \"ApplicationId\" : 5\r\n                                                                                            \"OrderOfMerit\" :  4\r\n                                                                                        },\r\n                                                                                        {\r\n                                                                                            \"ApplicationId\" : 3\r\n                                                                                            \"OrderOfMerit\" :  \r\n                                                                                        }\r\n                                                                                    ]\r\n            </pre></para>. Required OAuth scopes for authentication: <b>Private.Application.Write, Public.Application.Write</b>",
                "operationId": "ApplicationAPI_ChangeOrderOfMerit",
                "consumes": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml",
                    "application/x-www-form-urlencoded"
                ],
                "produces": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml"
                ],
                "parameters": [
                    {
                        "name": "applicationOrderOfMeritList",
                        "in": "body",
                        "description": "A list of application IDs and the respective order of merit to set them to.",
                        "required": true,
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/ApplicationChangeOrderOfMerit"
                            }
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "Bad Request - Cannot process request (e.g. the List of Application Change Order Of Merit sent through has invalid data - duplicate Order of Merits/ApplicationIds or invalid ApplicationIds)"
                    },
                    "500": {
                        "description": "Internal Server error"
                    }
                }
            }
        },
        "/applications": {
            "get": {
                "tags": [
                    "Developer Portal: Recruitment > Applications"
                ],
                "summary": "Returns a list of applications associated with the specified Job Id",
                "description": "Required OAuth scopes for authentication: <b>Public.Application.Read</b>",
                "operationId": "ApplicationAPI_SearchApplications",
                "consumes": [],
                "produces": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml"
                ],
                "parameters": [
                    {
                        "name": "jobId",
                        "in": "query",
                        "description": "Job Id",
                        "required": true,
                        "type": "integer",
                        "format": "int32"
                    },
                    {
                        "name": "pageNumber",
                        "in": "query",
                        "description": "Page number - optional",
                        "required": false,
                        "type": "integer",
                        "format": "int32",
                        "default": 1
                    },
                    {
                        "name": "pageSize",
                        "in": "query",
                        "description": "Page size - optional",
                        "required": false,
                        "type": "integer",
                        "format": "int32",
                        "default": 100
                    },
                    {
                        "name": "historyLength",
                        "in": "query",
                        "description": "the number of application status historical items to include (ordered by date descending) - optional",
                        "required": false,
                        "type": "integer",
                        "format": "int32",
                        "default": 0
                    },
                    {
                        "name": "includeApplicationFlag",
                        "in": "query",
                        "description": "set to true if the response includes application flags - optional",
                        "required": false,
                        "type": "boolean",
                        "default": false
                    },
                    {
                        "name": "applicationStatusId",
                        "in": "query",
                        "description": "Application Status Id - optional",
                        "required": false,
                        "type": "integer",
                        "format": "int32",
                        "default": -1
                    },
                    {
                        "name": "includeApplicationScore",
                        "in": "query",
                        "description": "set to true if the response includes application score - optional",
                        "required": false,
                        "type": "boolean",
                        "default": false
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "sort order for applications - optional",
                        "required": false,
                        "type": "string",
                        "default": "newestActivity"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "A JSON representation of the list of applications associated with the specified Job Id.",
                        "schema": {
                            "$ref": "#/definitions/ApplicationsPage"
                        }
                    },
                    "404": {
                        "description": "Not Found - The requested resource (i.e. Job specified) could not be found"
                    },
                    "500": {
                        "description": "Internal Server error"
                    }
                }
            },
            "post": {
                "tags": [
                    "Developer Portal: Recruitment > Applications"
                ],
                "summary": "Creates and returns a single Application using the received application json",
                "description": "Required OAuth scopes for authentication: <b>Public.Application.Write</b>",
                "operationId": "ApplicationAPI_Create",
                "consumes": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml",
                    "application/x-www-form-urlencoded"
                ],
                "produces": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml"
                ],
                "parameters": [
                    {
                        "name": "application",
                        "in": "body",
                        "description": "Application",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/Application"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "A JSON representation of the application after it is created.",
                        "schema": {
                            "$ref": "#/definitions/Application"
                        }
                    },
                    "404": {
                        "description": "Not Found - The requested resource could not be created."
                    },
                    "500": {
                        "description": "Internal Server error."
                    }
                }
            }
        },
        "/applications/{id}/submit": {
            "post": {
                "tags": [
                    "Developer Portal: Recruitment > Applications"
                ],
                "summary": "Submits a single Application using the received application id",
                "description": "Required OAuth scopes for authentication: <b>Public.Application.Write</b>",
                "operationId": "ApplicationAPI_Submit",
                "consumes": [],
                "produces": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Application Id",
                        "required": true,
                        "type": "integer",
                        "format": "int32"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "An application is successfully submitted.",
                        "schema": {
                            "$ref": "#/definitions/Application"
                        }
                    },
                    "404": {
                        "description": "Not Found - The requested resource could not be submitted."
                    },
                    "500": {
                        "description": "Internal Server error."
                    }
                }
            }
        },
        "/applications/byapplicantid/{applicantId}": {
            "get": {
                "tags": [
                    "Developer Portal: Recruitment > Applications"
                ],
                "summary": "Returns a list of applications associated with the specified applicant id",
                "description": "Required OAuth scopes for authentication: <b>Public.Application.Read</b>",
                "operationId": "ApplicationAPI_SearchApplicationsByApplicantID",
                "consumes": [],
                "produces": [
                    "application/json",
                    "text/json",
                    "text/plain",
                    "application/xml",
                    "text/xml"
                ],
                "parameters": [
                    {
                        "name": "applicantId",
                        "in": "path",
                        "description": "Applicant Id",
                        "required": true,
                        "type": "integer",
                        "format": "int32"
                    },
                    {
                        "name": "pageNumber",
                        "in": "query",
                        "description": "Page number - optional",
                        "required": false,
                        "type": "integer",
                        "format": "int32",
                        "default": 1
                    },
                    {
                        "name": "pageSize",
                        "in": "query",
                        "description": "Page size - optional",
                        "required": false,
                        "type": "integer",
                        "format": "int32",
                        "default": 100
                    },
                    {
                        "name": "historyLength",
                        "in": "query",
                        "description": "the number of application status historical items to include (ordered by date descending) - optional",
                        "required": false,
                        "type": "integer",
                        "format": "int32",
                        "default": 0
                    },
                    {
                        "name": "includeApplicationFlag",
                        "in": "query",
                        "description": "set to true if the response includes application flags - optional",
                        "required": false,
                        "type": "boolean",
                        "default": false
                    },
                    {
                        "name": "applicationStatusId",
                        "in": "query",
                        "description": "Application Status Id - optional",
                        "required": false,
                        "type": "integer",
                        "format": "int32",
                        "default": -1
                    },
                    {
                        "name": "includeApplicationScore",
                        "in": "query",
                        "description": "set to true if the response includes application score - optional",
                        "required": false,
                        "type": "boolean",
                        "default": false
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "required": false,
                        "type": "string",
                        "default": "newestActivity"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "A JSON representation of the list of applications associated with the specified Job Id.",
                        "schema": {
                            "$ref": "#/definitions/ApplicationsPage"
                        }
                    },
                    "404": {
                        "description": "Not Found - The requested resource (i.e. Job specified) could not be found"
                    },
                    "500": {
                        "description": "Internal Server error"
                    }
                }
            }
        }
    },
    "definitions": {
        "Application": {
            "type": "object",
            "properties": {
                "id": {
                    "format": "int32",
                    "type": "integer"
                },
                "jobId": {
                    "format": "int32",
                    "type": "integer"
                },
                "applicantId": {
                    "format": "int32",
                    "type": "integer"
                },
                "formId": {
                    "format": "int32",
                    "type": "integer"
                },
                "formInstanceGuid": {
                    "format": "uuid",
                    "type": "string",
                    "example": "00000000-0000-0000-0000-000000000000"
                },
                "flag1": {
                    "type": "string"
                },
                "flag2": {
                    "type": "string"
                },
                "flag3": {
                    "type": "string"
                },
                "flag4": {
                    "type": "string"
                },
                "flag5": {
                    "type": "string"
                },
                "flag6": {
                    "type": "string"
                },
                "flag7": {
                    "type": "string"
                },
                "flag8": {
                    "type": "string"
                },
                "flag9": {
                    "type": "string"
                },
                "flag10": {
                    "type": "string"
                },
                "flag11": {
                    "type": "string"
                },
                "flag12": {
                    "type": "string"
                },
                "orderOfMerit": {
                    "format": "int32",
                    "type": "integer"
                },
                "applicationStatusDescription": {
                    "type": "string"
                },
                "applicationStatusCode": {
                    "type": "string"
                },
                "applicationPublicStatusDescription": {
                    "type": "string"
                },
                "applicationScore": {
                    "format": "int32",
                    "type": "integer"
                },
                "applicationDocuments": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/ApplicationDocument"
                    }
                },
                "applicationStatusHistory": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/ApplicationStatusHistoryEvent"
                    }
                },
                "applicationStatusFlags": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/ApplicationStatusApplicationFlag"
                    }
                },
                "jobSourceType": {
                    "type": "string"
                },
                "applicationSource": {
                    "type": "string"
                },
                "applicationSubSource": {
                    "type": "string"
                },
                "created": {
                    "format": "date-time",
                    "type": "string"
                },
                "audit": {
                    "format": "date-time",
                    "type": "string"
                },
                "applicantPrivacyAcceptance": {
                    "$ref": "#/definitions/ApplicantPrivacyAcceptance"
                }
            }
        },
        "ApplicationDocument": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                },
                "category": {
                    "type": "string"
                },
                "systemDocumentCategory": {
                    "type": "string"
                },
                "uploadDate": {
                    "format": "date-time",
                    "type": "string"
                }
            }
        },
        "ApplicationStatusHistoryEvent": {
            "type": "object",
            "properties": {
                "applicationStatusTo": {
                    "type": "string"
                },
                "applicationStatusPublicDescriptionTo": {
                    "type": "string"
                },
                "applicationStatusFrom": {
                    "type": "string"
                },
                "applicationStatusPublicDescriptionFrom": {
                    "type": "string"
                },
                "dateFrom": {
                    "format": "date-time",
                    "type": "string"
                },
                "dateTo": {
                    "format": "date-time",
                    "type": "string"
                }
            }
        },
        "ApplicationStatusApplicationFlag": {
            "type": "object",
            "properties": {
                "description": {
                    "type": "string"
                },
                "order": {
                    "format": "int32",
                    "type": "integer"
                },
                "image": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                }
            }
        },
        "ApplicantPrivacyAcceptance": {
            "type": "object",
            "properties": {
                "keyGuid": {
                    "type": "string"
                },
                "acceptedUtc": {
                    "format": "date-time",
                    "type": "string"
                },
                "privacyStatementId": {
                    "format": "int32",
                    "type": "integer"
                },
                "languageCode": {
                    "type": "string"
                },
                "ipAddress": {
                    "type": "string"
                }
            }
        },
        "JsonPatchDocument[ApplicationPatch]": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/Operation[ApplicationPatch]"
            },
            "properties": {
                "operations": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/Operation[ApplicationPatch]"
                    },
                    "readOnly": true
                }
            },
            "example": [
                {
                    "op": "replace",
                    "path": "/Flag1",
                    "value": "Flag1Value"
                },
                {
                    "op": "remove",
                    "path": "/Flag2"
                }
            ]
        },
        "Operation[ApplicationPatch]": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "object"
                },
                "path": {
                    "type": "string"
                },
                "op": {
                    "type": "string"
                },
                "from": {
                    "type": "string"
                }
            }
        },
        "ApplicationStatusChange": {
            "description": "Details of an Application Status Change by Id",
            "required": [
                "applicationStatusId"
            ],
            "type": "object",
            "properties": {
                "applicationStatusId": {
                    "format": "int32",
                    "description": "Application Status Id",
                    "type": "integer"
                },
                "statusChangeReasonId": {
                    "format": "int32",
                    "description": "The reason for the Application Status Change\r\nValue exposed via the Status Change Reason management page, available in system settings",
                    "type": "integer"
                }
            }
        },
        "ApplicationStatusChangeByCode": {
            "description": "Details of an Application Status Change by Code",
            "required": [
                "applicationStatusCode"
            ],
            "type": "object",
            "properties": {
                "applicationStatusCode": {
                    "description": "Application Status Code\r\nValue exposed and editable via the Application status management UI, available within system settings",
                    "type": "string"
                },
                "statusChangeReasonId": {
                    "format": "int32",
                    "description": "The reason for the Application Status Change\r\nValue exposed via the Status Change Reason management page, available in system settings.",
                    "type": "integer"
                }
            }
        },
        "ApplicationChangeOrderOfMerit": {
            "required": [
                "applicationId"
            ],
            "type": "object",
            "properties": {
                "applicationId": {
                    "format": "int32",
                    "type": "integer"
                },
                "orderOfMerit": {
                    "format": "int32",
                    "type": "integer"
                }
            }
        },
        "ApplicationsPage": {
            "type": "object",
            "properties": {
                "pageNumber": {
                    "format": "int32",
                    "type": "integer"
                },
                "pageSize": {
                    "format": "int32",
                    "type": "integer"
                },
                "totalCount": {
                    "format": "int32",
                    "type": "integer"
                },
                "applications": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/Application"
                    }
                }
            }
        }
    }
}
