{
    "openapi": "3.0.0",
    "info": {
        "title": "Weworkbook API",
        "description": "Weworkbook's RESTful API helps users integrate Weworkbook with other applications easily and securely.",
        "contact": {
            "email": "developer@worksorted.com"
        },
        "license": {
            "name": "Apache 2.0",
            "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
        },
        "version": "1.1.0"
    },
    "servers": [
        {
            "url": "https://api.weworkbook.com",
            "description": "Weworkbook API Server"
        }
    ],
    "paths": {
        "https://api.weworkbook.com/api/v1/enrolment/{enrolmentId}/module/{moduleId}": {
            "put": {
                "tags": [
                    "Enrolment Outcomes"
                ],
                "summary": "Update enrolment outcome(s)",
                "description": "Update enrolment outcome individually or in bulk. Only the enrolled units/modules with outcome as 'Continuing enrolment' or 'Not yet started' can be bulk updated. For bulk update, you must also provide the unitType parameter as 'Core' or 'Elective'.",
                "operationId": "updatemodules",
                "parameters": [
                    {
                        "name": "enrolmentId",
                        "in": "path",
                        "description": "Student's enrolment ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        },
                        "example": 123456
                    },
                    {
                        "name": "moduleId",
                        "in": "path",
                        "description": "Enrolled unit/module ID. This is the enrolmentModuleId which you can get from the Enrolments API endpoint.",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        },
                        "example": 123456
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "outcomeId": {
                                        "description": "Unique outcome ID which you can get from the outcomes API GET endpoint",
                                        "type": "integer"
                                    },
                                    "unitType": {
                                        "description": "Enrolled unit/module type is Core|Elective",
                                        "type": "string"
                                    },
                                    "bulkUpdate": {
                                        "description": "Apply bulk outcomes update for the enrolled units/modules. Value is 1|0. Only the enrolled units/modules with outcome as 'Continuing enrolment' or 'Not yet started' can be bulk updated. For bulk update, you must also provide the unitType parameter as 'Core' or 'Elective'.",
                                        "type": "boolean"
                                    },
                                    "stateOutcomeId": {
                                        "description": "(Optional) Outcome ID for Western Australia only",
                                        "type": "integer"
                                    },
                                    "unitEnrolDate": {
                                        "description": "(Optional) Unit enrolment date in format yyyy-mm-dd, timezone is GMT",
                                        "type": "string"
                                    },
                                    "activityStartDate": {
                                        "description": "(Optional) Activity start date in format yyyy-mm-dd, timezone is GMT",
                                        "type": "string"
                                    },
                                    "unitCompetentDate": {
                                        "description": "(Optional) Unit competency date in format yyyy-mm-dd, timezone is GMT",
                                        "type": "string"
                                    },
                                    "hoursAttended": {
                                        "description": "(Optional) Unit hours attened, 4 digits integer.",
                                        "type": "integer"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Updated successfully",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/courses": {
            "get": {
                "tags": [
                    "Courses"
                ],
                "summary": "Get a list of courses.",
                "description": "Get a list of courses.",
                "operationId": "index",
                "responses": {
                    "200": {
                        "description": "Retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "courseId": {
                                            "description": "Unique course ID in Weworkbook system",
                                            "type": "integer",
                                            "example": 123456
                                        },
                                        "courseCode": {
                                            "description": "Course code",
                                            "type": "string",
                                            "example": "BSB10000"
                                        },
                                        "courseName": {
                                            "description": "Course name",
                                            "type": "string",
                                            "example": "Certificate IV in Training and Assessment"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/courses/{courseId}": {
            "get": {
                "tags": [
                    "Courses Units"
                ],
                "summary": "Get a list of course units for a course id.",
                "description": "Get a list of course units for a course id.",
                "operationId": "index",
                "responses": {
                    "200": {
                        "description": "Retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "unitIdentifier": {
                                            "description": "Unique course unit identifier",
                                            "type": "string",
                                            "example": "TAEASS401"
                                        },
                                        "isUnitType": {
                                            "description": "Unit type. C-Core, E-Elective",
                                            "type": "string",
                                            "example": "C"
                                        },
                                        "unitName": {
                                            "description": "Unit Name",
                                            "type": "string",
                                            "example": "Plan assessment activities and processes"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/student/{studentId}/enrolments": {
            "get": {
                "tags": [
                    "Enrolments"
                ],
                "summary": "Get a list of student current enrolments.",
                "description": "Get a list of student current enrolments, also includes outcome of each unit/module.",
                "operationId": "enrolments",
                "parameters": [
                    {
                        "name": "studentId",
                        "in": "path",
                        "description": "Student ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        },
                        "example": 123456
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "enrolmentId": {
                                            "description": "Unique student enrolment ID in Weworkbook system",
                                            "type": "integer",
                                            "example": 123456
                                        },
                                        "courseId": {
                                            "description": "Enrolled course ID.",
                                            "type": "integer",
                                            "example": 110
                                        },
                                        "courseCode": {
                                            "description": "Enrolled course code",
                                            "type": "string",
                                            "example": "TAF123"
                                        },
                                        "courseName": {
                                            "description": "Enrolled course name",
                                            "type": "string",
                                            "example": "Certificate IV in Training and Assessment"
                                        },
                                        "courseMethodInitials": {
                                            "description": "Course delivery method initials",
                                            "type": "string",
                                            "example": "BD"
                                        },
                                        "courseMethodName": {
                                            "description": "Course delivery method name",
                                            "type": "string",
                                            "example": "Blended Delivery"
                                        },
                                        "startDate": {
                                            "description": "Course start date in format yyyy-mm-dd.",
                                            "type": "string",
                                            "example": "2020-10-01"
                                        },
                                        "endDate": {
                                            "description": "Course end date in format yyyy-mm-dd.",
                                            "type": "integer",
                                            "example": "2020-10-10"
                                        },
                                        "quota": {
                                            "description": "Quota",
                                            "type": "integer",
                                            "example": 10
                                        },
                                        "confirmationSent": {
                                            "description": "Confirmation is sent or not",
                                            "type": "boolean",
                                            "example": true
                                        },
                                        "qualificationStatus": {
                                            "description": "Qualification status",
                                            "type": "string",
                                            "example": "Not Completed"
                                        },
                                        "city": {
                                            "description": "Course location",
                                            "type": "string",
                                            "example": "Adelaide"
                                        },
                                        "reportingState": {
                                            "description": "Enrolment reporting state",
                                            "type": "string",
                                            "example": "New South Wales"
                                        },
                                        "anticipatedCourseCompletionDate": {
                                            "description": "Anticipated Course Completion date in format yyyy-mm-dd.",
                                            "type": "date",
                                            "example": "2020-10-10"
                                        },
                                        "units": {
                                            "description": "Enrolled units/modules",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "enrolmentModuleId": {
                                                        "description": "Unique enrolled unit/module ID",
                                                        "type": "integer",
                                                        "example": 123456
                                                    },
                                                    "avetCourseUnitId": {
                                                        "description": "Avetmiss course unit ID",
                                                        "type": "integer",
                                                        "example": 123456
                                                    },
                                                    "unitIdentifier": {
                                                        "description": "Unit identifier",
                                                        "type": "string",
                                                        "example": "TAFEASSS01"
                                                    },
                                                    "competencyFlag": {
                                                        "description": "Competency flag",
                                                        "type": "string",
                                                        "example": "Competency"
                                                    },
                                                    "unitType": {
                                                        "description": "Unit type. Core or Elective",
                                                        "type": "string",
                                                        "example": "Core"
                                                    },
                                                    "unitName": {
                                                        "description": "Unit name",
                                                        "type": "string",
                                                        "example": ""
                                                    },
                                                    "unitEnrolDate": {
                                                        "description": "Unit enrolled date in format yyyy-mm-dd",
                                                        "type": "string",
                                                        "example": "2020-10-01"
                                                    },
                                                    "setDateTime": {
                                                        "description": "Outcome updated date time in format yyyy-mm-dd hh:ii:ss, timezone is GMT",
                                                        "type": "string",
                                                        "example": "2020-10-01 11:30:05"
                                                    },
                                                    "userId": {
                                                        "description": "User ID, who set the outcome for this unit/module",
                                                        "type": "integer",
                                                        "example": 123
                                                    },
                                                    "userFirstName": {
                                                        "description": "User's first name",
                                                        "type": "string",
                                                        "example": "John"
                                                    },
                                                    "userLastName": {
                                                        "description": "User's last name",
                                                        "type": "string",
                                                        "example": "Wick"
                                                    },
                                                    "nationalOutcomeId": {
                                                        "description": "National outcome identifier ID",
                                                        "type": "integer",
                                                        "example": 60
                                                    },
                                                    "nationalOutcomeIdentifier": {
                                                        "description": "National outcome identifier description",
                                                        "type": "string",
                                                        "example": "Credit transfer/national recognition"
                                                    },
                                                    "stateOutcomeId": {
                                                        "description": "State outcome identifier ID, Western Australia only",
                                                        "type": "string",
                                                        "example": ""
                                                    },
                                                    "unitCompetentDate": {
                                                        "description": "Unit competency date in format yyyy-mm-dd, timezone is GMT",
                                                        "type": "string",
                                                        "example": "2020-10-01"
                                                    },
                                                    "activityStartDate": {
                                                        "description": "Unit activity start date in format yyyy-mm-dd, timezone is GMT",
                                                        "type": "string",
                                                        "example": "2020-10-01"
                                                    },
                                                    "hoursAttended": {
                                                        "description": "Hours attended, 4 digits number",
                                                        "type": "string",
                                                        "example": "0010"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            },
            "post": {
                "tags": [
                    "Enrolments"
                ],
                "summary": "Create an enrolment for a student.",
                "description": "Create an enrolment for a student.",
                "operationId": "store",
                "parameters": [
                    {
                        "name": "studentId",
                        "in": "path",
                        "description": "Student ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        },
                        "example": 123456
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "properties": {
                                    "scheduleId": {
                                        "description": "(Required) Course schedule ID.",
                                        "type": "integer"
                                    },
                                    "paymentStatus": {
                                        "description": "(Required) Payment status. Available options are 'NOT PAID', 'NOT PAID', 'PAYMENT PLAN', 'DEPOSIT PAID', 'COMPLIMENTARY', 'EXEMPT', 'PURCHASE ORDER'",
                                        "type": "string"
                                    },
                                    "isTrainee": {
                                        "description": "(Required) 1: This student is a trainee. 0: This student is not a trainee.",
                                        "type": "boolean"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Created successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "enrolmentId": {
                                            "description": "Unique enrolment ID in Weworkbook system for this newly created enrolment",
                                            "type": "integer",
                                            "example": 123456
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/enrolment/{enrolmentId}/enrollunit/{unitIdentifier}": {
            "post": {
                "tags": [
                    "Enroll Units"
                ],
                "summary": "Enroll units to an enrolment",
                "description": "Enroll units to an enrolment",
                "operationId": "addmodules",
                "parameters": [
                    {
                        "name": "enrolmentId",
                        "in": "path",
                        "description": "Student's enrolment ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        },
                        "example": 123456
                    },
                    {
                        "name": "unitIdentifier",
                        "in": "path",
                        "description": "Valid unit code for the course unit to get enrolled. This is the unitIdentifier which you can get from the Courses Units API endpoint.",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "string"
                        },
                        "example": "TAEASS401"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Enrolled successfully",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/notecategories": {
            "get": {
                "tags": [
                    "Note Categories"
                ],
                "summary": "Get a list of note categories.",
                "description": "Get a list of note categories.",
                "operationId": "notecategories",
                "responses": {
                    "200": {
                        "description": "Retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "categoryId": {
                                            "description": "Unique note category ID in Weworkbook system",
                                            "type": "integer",
                                            "example": 123456
                                        },
                                        "categoryName": {
                                            "description": "Note category name.",
                                            "type": "string",
                                            "example": "Category A"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/outcomes": {
            "get": {
                "tags": [
                    "Unit Outcomes"
                ],
                "summary": "Get a list of unit/module outcomes.",
                "description": "Get a list of unit/module outcomes.",
                "operationId": "outcomes",
                "responses": {
                    "200": {
                        "description": "Retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "outcomeId": {
                                            "description": "Unique outcome ID in Weworkbook system",
                                            "type": "integer",
                                            "example": 123456
                                        },
                                        "stateOutcomeId": {
                                            "description": "Unique state outcome ID in Weworkbook system. Western Australia only.",
                                            "type": "integer",
                                            "example": "Category A"
                                        },
                                        "outcomeDesc": {
                                            "description": "Outcome description.",
                                            "type": "string",
                                            "example": "Category A"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/student/{studentId}/notes": {
            "get": {
                "tags": [
                    "Student Notes"
                ],
                "summary": "Get a list of student notes.",
                "description": "Get a list of student notes.",
                "operationId": "notes",
                "parameters": [
                    {
                        "name": "studentId",
                        "in": "path",
                        "description": "Student ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        },
                        "example": 123456
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "noteId": {
                                            "description": "Unique student note ID in Weworkbook system",
                                            "type": "integer",
                                            "example": 123456
                                        },
                                        "content": {
                                            "description": "Note content in plain text.",
                                            "type": "string",
                                            "example": "Hello World"
                                        },
                                        "creatorId": {
                                            "description": "Unique user ID of note creator in Weworkbook system",
                                            "type": "integer",
                                            "example": 123
                                        },
                                        "creatorFirstName": {
                                            "description": "Creator's first name",
                                            "type": "string",
                                            "example": "John"
                                        },
                                        "creatorLastName": {
                                            "description": "Creator's last name",
                                            "type": "string",
                                            "example": "Wick"
                                        },
                                        "createdDate": {
                                            "description": "Note created date time in format yyyy-mm-dd hh:ii:ss, and timezone is GMT.",
                                            "type": "string",
                                            "example": "2020-10-01 11:30:00"
                                        },
                                        "followUpDate": {
                                            "description": "Note follow up date in format yyyy-mm-dd, and timezone is GMT",
                                            "type": "string",
                                            "example": "2020-10-01"
                                        },
                                        "followUpUserId": {
                                            "description": "Follow up user's ID in Weworkbook system.",
                                            "type": "integer",
                                            "example": 123
                                        },
                                        "followUpUserFirstName": {
                                            "description": "Follow up user's first name",
                                            "type": "string",
                                            "example": "John"
                                        },
                                        "followUpUserLastName": {
                                            "description": "Follow up user's last name",
                                            "type": "string",
                                            "example": "Wick"
                                        },
                                        "createdFromSLP": {
                                            "description": "Note is created from student learning portal",
                                            "type": "boolean",
                                            "example": true
                                        },
                                        "systemCreated": {
                                            "description": "Note is created by Weworkbook system automatically",
                                            "type": "boolean",
                                            "example": false
                                        },
                                        "noteCategoryId": {
                                            "description": "The unique note category ID.",
                                            "type": "integer",
                                            "example": 1
                                        },
                                        "noteCategoryName": {
                                            "description": "The note category name",
                                            "type": "string",
                                            "example": "Study Note"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/student/{studentId}/note": {
            "post": {
                "tags": [
                    "Student Notes"
                ],
                "summary": "Create a student note.",
                "description": "Create a student note.",
                "operationId": "note",
                "parameters": [
                    {
                        "name": "studentId",
                        "in": "path",
                        "description": "Student ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        },
                        "example": 123456
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "properties": {
                                    "content": {
                                        "description": "Note content",
                                        "type": "string"
                                    },
                                    "creatorId": {
                                        "description": "Creator's user ID in Weworkbook system",
                                        "type": "integer"
                                    },
                                    "followUpDate": {
                                        "description": "(Optional) Note follow up date in format yyyy-mm-dd, timezone is GMT",
                                        "type": "string"
                                    },
                                    "followUpUserId": {
                                        "description": "(Optional) Follow up user's ID in Weworkbook system",
                                        "type": "integer"
                                    },
                                    "noteCategoryId": {
                                        "description": "(Optional) Note category ID which can be get from the Note Categories API GET endpoint",
                                        "type": "integer"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Created successfully",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/users": {
            "get": {
                "tags": [
                    "Users"
                ],
                "summary": "Get a list of users in the login company.",
                "description": "Get a list of users in the login company.",
                "operationId": "listUsers",
                "parameters": [
                    {
                        "name": "search",
                        "in": "path",
                        "description": "Provide a keyword to search user name.",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "John"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "userId": {
                                            "description": "Unique user ID in Weworkbook system",
                                            "type": "integer",
                                            "example": 123
                                        },
                                        "firstName": {
                                            "description": "The first name of user.",
                                            "type": "string",
                                            "example": "John"
                                        },
                                        "lastName": {
                                            "description": "The last name of user.",
                                            "type": "string",
                                            "example": "Doe"
                                        },
                                        "isConfirmed": {
                                            "description": "Whether this user is confirmed registration with weworkbook. Value is 1 or 0.",
                                            "type": "boolean",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/student/{studentId}/schedules": {
            "get": {
                "tags": [
                    "Schedules"
                ],
                "summary": "Get a list of course schedules.",
                "description": "Get a list of course schedules.",
                "operationId": "index",
                "parameters": [
                    {
                        "name": "studentId",
                        "in": "path",
                        "description": "Student ID in Weworkbook system",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        },
                        "example": 123456
                    },
                    {
                        "name": "courseId",
                        "in": "path",
                        "description": "Course ID in Weworkbook system",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        },
                        "example": 1234
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "scheduleId": {
                                            "description": "Unique schedule ID in Weworkbook system",
                                            "type": "integer",
                                            "example": 123456
                                        },
                                        "city": {
                                            "description": "Location",
                                            "type": "string",
                                            "example": "Adelaide"
                                        },
                                        "startDate": {
                                            "description": "Schedule start date",
                                            "type": "string",
                                            "example": "2021-08-01"
                                        },
                                        "endDate": {
                                            "description": "Schedule end date",
                                            "type": "string",
                                            "example": "2021-08-03"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/schedules": {
            "get": {
                "tags": [
                    "Schedules"
                ],
                "summary": "Get a list of course schedules.",
                "description": "Get a list of course schedules.",
                "operationId": "show",
                "parameters": [
                    {
                        "name": "courseId",
                        "in": "path",
                        "description": "Course ID in Weworkbook system",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        },
                        "example": 1234
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "scheduleId": {
                                            "description": "Unique schedule ID in Weworkbook system",
                                            "type": "integer",
                                            "example": 123456
                                        },
                                        "city": {
                                            "description": "Location",
                                            "type": "string",
                                            "example": "Adelaide"
                                        },
                                        "startDate": {
                                            "description": "Schedule start date",
                                            "type": "string",
                                            "example": "2021-08-01"
                                        },
                                        "endDate": {
                                            "description": "Schedule end date",
                                            "type": "string",
                                            "example": "2021-08-03"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/students": {
            "get": {
                "tags": [
                    "Students"
                ],
                "summary": "Get a list of students with pagination.",
                "description": "Get a list of students. You can use the provided parameters below to filter the response data.\n     *     Pagination is available now.",
                "operationId": "index",
                "parameters": [
                    {
                        "name": "count",
                        "in": "query",
                        "description": "The maximum number of students in response data per page. The maximum number you can set is\n     *     1000.",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        },
                        "example": 20
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "Page index",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        },
                        "example": 1
                    },
                    {
                        "name": "order_by",
                        "in": "query",
                        "description": "Order the response data by studentId|firstName|lastName",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "firstName"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "Sort the response data in ascending or descending order. Value must be asc|desc",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "asc"
                    },
                    {
                        "name": "active",
                        "in": "query",
                        "description": "Active means student's outcomes of current enrolment must be 'Continuing enrolment'. Value must\n     *     be Yes|No",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "Yes"
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Return student objects which contain the search keyword in names or emails.",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "John"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "resource": {
                                            "description": "Student data array",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "studentId": {
                                                        "description": "Unique student ID in Weworkbook system",
                                                        "type": "integer",
                                                        "example": 123456
                                                    },
                                                    "RTOStudentId": {
                                                        "description": "A registered training organisation(RTO) student ID",
                                                        "type": "integer",
                                                        "example": 123456
                                                    },
                                                    "uniqueStudentIdentifier": {
                                                        "description": "Unique Student Identifier. https://www.usi.gov.au/",
                                                        "type": "string",
                                                        "example": "ABC34QQQ"
                                                    },
                                                    "isUSIValid": {
                                                        "description": "A mask to show the validity of first name, family name and DOB accordingly.\n     *     For example 111 shows all 3 fields are valid.",
                                                        "type": "string",
                                                        "example": "111"
                                                    },
                                                    "firstName": {
                                                        "description": "Frist name",
                                                        "type": "string",
                                                        "example": "John"
                                                    },
                                                    "lastName": {
                                                        "description": "Last name",
                                                        "type": "string",
                                                        "example": "Wick"
                                                    },
                                                    "middleName": {
                                                        "description": "Middle name",
                                                        "type": "string",
                                                        "example": "M"
                                                    },
                                                    "preferredName": {
                                                        "description": "Preferred name",
                                                        "type": "string",
                                                        "example": "John"
                                                    },
                                                    "certificateName": {
                                                        "description": "The name will be displayed on certificate",
                                                        "type": "string",
                                                        "example": "John Wick"
                                                    },
                                                    "dateOfBirth": {
                                                        "description": "Date of birth in yyyy-mm-dd format",
                                                        "type": "string",
                                                        "example": "1964-09-02"
                                                    },
                                                    "gender": {
                                                        "description": "Gender. Value is M|F",
                                                        "type": "string",
                                                        "example": "M"
                                                    },
                                                    "salutation": {
                                                        "description": "Title or salutation",
                                                        "type": "string",
                                                        "example": "Mr"
                                                    },
                                                    "entryDate": {
                                                        "description": "The date when the student was entered in the company's database.",
                                                        "type": "string",
                                                        "example": "2020-01-01"
                                                    },
                                                    "contactNumber": {
                                                        "description": "Phone number",
                                                        "type": "string",
                                                        "example": "0412333444"
                                                    },
                                                    "businessNumber": {
                                                        "description": "Business phone number",
                                                        "type": "string",
                                                        "example": "0811112222"
                                                    },
                                                    "homeNumber": {
                                                        "description": "Home phone number",
                                                        "type": "string",
                                                        "example": "0822221111"
                                                    },
                                                    "facsimileNumber": {
                                                        "description": "Fax number",
                                                        "type": "string",
                                                        "example": "0822220000"
                                                    },
                                                    "preferredNumber": {
                                                        "description": "Preferred contact number. Value is M|H|B",
                                                        "type": "string",
                                                        "example": "M"
                                                    },
                                                    "studentEmail": {
                                                        "description": "Email Address 1",
                                                        "type": "string",
                                                        "example": "john.wick@example.com"
                                                    },
                                                    "studentEmail2": {
                                                        "description": "Email Address 2",
                                                        "type": "string",
                                                        "example": "john.wick@example.com"
                                                    },
                                                    "studentEmail3": {
                                                        "description": "Email Address 3",
                                                        "type": "string",
                                                        "example": "john.wick@example.com"
                                                    },
                                                    "preferredEmail": {
                                                        "description": "Preferred contact email. Value is 1|2|3",
                                                        "type": "string",
                                                        "example": "1"
                                                    },
                                                    "buildingName": {
                                                        "description": "Usual residence address building name",
                                                        "type": "string",
                                                        "example": "Building A"
                                                    },
                                                    "streetNumber": {
                                                        "description": "Usual residence address street number",
                                                        "type": "string",
                                                        "example": "1"
                                                    },
                                                    "addressLine1": {
                                                        "description": "Usual residence address line 1",
                                                        "type": "string",
                                                        "example": "1 Street"
                                                    },
                                                    "addressLine2": {
                                                        "description": "Usual residence address line 2",
                                                        "type": "string",
                                                        "example": ""
                                                    },
                                                    "suburb": {
                                                        "description": "Usual residence address suburb",
                                                        "type": "string",
                                                        "example": ""
                                                    },
                                                    "state": {
                                                        "description": "Usual residence address state",
                                                        "type": "string",
                                                        "example": "SA"
                                                    },
                                                    "postcode": {
                                                        "description": "Usual residence address postcode",
                                                        "type": "string",
                                                        "example": "5000"
                                                    },
                                                    "country": {
                                                        "description": "Usual residence address country",
                                                        "type": "string",
                                                        "example": "Australia"
                                                    },
                                                    "buildingNamePostal": {
                                                        "description": "Postal address building name",
                                                        "type": "string",
                                                        "example": "Building A"
                                                    },
                                                    "unitDetailsPostal": {
                                                        "description": "Postal address unit details",
                                                        "type": "string",
                                                        "example": "Unit 1"
                                                    },
                                                    "streetNumberPostal": {
                                                        "description": "Postal address street number",
                                                        "type": "string",
                                                        "example": "1"
                                                    },
                                                    "streetNamePostal": {
                                                        "description": "Postal address street name",
                                                        "type": "string",
                                                        "example": "street"
                                                    },
                                                    "deliveryBoxPostal": {
                                                        "description": "Postal address delivery box number",
                                                        "type": "string",
                                                        "example": "PO Box 111"
                                                    },
                                                    "suburbPostal": {
                                                        "description": "Postal address suburb",
                                                        "type": "string",
                                                        "example": ""
                                                    },
                                                    "statePostal": {
                                                        "description": "Postal address state",
                                                        "type": "string",
                                                        "example": "SA"
                                                    },
                                                    "postcodePostal": {
                                                        "description": "Postal address postcode",
                                                        "type": "string",
                                                        "example": "5000"
                                                    },
                                                    "countryPostal": {
                                                        "description": "Postal address country",
                                                        "type": "string",
                                                        "example": "Australia"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "links": {
                                            "description": "Pagination links",
                                            "properties": {
                                                "first": {
                                                    "description": "Link for the first page.",
                                                    "type": "string",
                                                    "example": "https://api.weworkbook.com/api/v1/students?count=20&page=1"
                                                },
                                                "last": {
                                                    "description": "Link for the last page.",
                                                    "type": "string",
                                                    "example": "https://api.weworkbook.com/api/v1/students?count=20&page=5"
                                                },
                                                "prev": {
                                                    "description": "Link for the previous page, could be null when the current page is the first\n     *     page.",
                                                    "type": "string",
                                                    "example": "https://api.weworkbook.com/api/v1/students?count=20&page=2"
                                                },
                                                "next": {
                                                    "description": "Link for the next page, could be null when the current page is the last\n     *     page.",
                                                    "type": "string",
                                                    "example": "https://api.weworkbook.com/api/v1/students?count=20&page=4"
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "meta": {
                                            "description": "Pagination meta data",
                                            "properties": {
                                                "currentPage": {
                                                    "description": "The index of current page",
                                                    "type": "integer",
                                                    "example": 3
                                                },
                                                "from": {
                                                    "description": "The index of the first student data object on current page",
                                                    "type": "integer",
                                                    "example": 41
                                                },
                                                "to": {
                                                    "description": "The index of the last student data object on current page",
                                                    "type": "integer",
                                                    "example": 60
                                                },
                                                "lastPage": {
                                                    "description": "The index of the last page",
                                                    "type": "integer",
                                                    "example": 5
                                                },
                                                "path": {
                                                    "description": "The link of current page",
                                                    "type": "string",
                                                    "example": "https://api.weworkbook.com/api/v1/students?count=20&page=3"
                                                },
                                                "perPage": {
                                                    "description": "The number of student objects on each page",
                                                    "type": "integer",
                                                    "example": 20
                                                },
                                                "total": {
                                                    "description": "The total number of student objects",
                                                    "type": "integer",
                                                    "example": 100
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/student/{studentId}": {
            "get": {
                "tags": [
                    "Students"
                ],
                "summary": "Get student general information",
                "description": "Return student data",
                "operationId": "show",
                "parameters": [
                    {
                        "name": "studentId",
                        "in": "path",
                        "description": "Student ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        },
                        "example": 123456
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "studentId": {
                                            "description": "Unique student ID in Weworkbook system",
                                            "type": "integer",
                                            "example": 123456
                                        },
                                        "RTOStudentId": {
                                            "description": "A registered training organisation(RTO) student ID",
                                            "type": "integer",
                                            "example": 123456
                                        },
                                        "uniqueStudentIdentifier": {
                                            "description": "Unique Student Identifier. https://www.usi.gov.au/",
                                            "type": "string",
                                            "example": "ABC34QQQ"
                                        },
                                        "isUSIValid": {
                                            "description": "A mask to show the validity of first name, family name and DOB accordingly.\n     *     For example 111 shows all 3 fields are valid.",
                                            "type": "string",
                                            "example": "111"
                                        },
                                        "firstName": {
                                            "description": "Frist name",
                                            "type": "string",
                                            "example": "John"
                                        },
                                        "lastName": {
                                            "description": "Last name",
                                            "type": "string",
                                            "example": "Wick"
                                        },
                                        "middleName": {
                                            "description": "Middle name",
                                            "type": "string",
                                            "example": "M"
                                        },
                                        "preferredName": {
                                            "description": "Preferred name",
                                            "type": "string",
                                            "example": "John"
                                        },
                                        "certificateName": {
                                            "description": "The name will be displayed on certificate",
                                            "type": "string",
                                            "example": "John Wick"
                                        },
                                        "dateOfBirth": {
                                            "description": "Date of birth in yyyy-mm-dd format",
                                            "type": "string",
                                            "example": "1964-09-02"
                                        },
                                        "gender": {
                                            "description": "Gender. Value is M|F",
                                            "type": "string",
                                            "example": "M"
                                        },
                                        "salutation": {
                                            "description": "Title or salutation",
                                            "type": "string",
                                            "example": "Mr"
                                        },
                                        "entryDate": {
                                            "description": "The date when the student was entered in the company's database.",
                                            "type": "string",
                                            "example": "2020-01-01"
                                        },
                                        "contactNumber": {
                                            "description": "Phone number",
                                            "type": "string",
                                            "example": "0412333444"
                                        },
                                        "businessNumber": {
                                            "description": "Business phone number",
                                            "type": "string",
                                            "example": "0811112222"
                                        },
                                        "homeNumber": {
                                            "description": "Home phone number",
                                            "type": "string",
                                            "example": "0822221111"
                                        },
                                        "facsimileNumber": {
                                            "description": "Fax number",
                                            "type": "string",
                                            "example": "0822220000"
                                        },
                                        "preferredNumber": {
                                            "description": "Preferred contact number. Value is M|H|B",
                                            "type": "string",
                                            "example": "M"
                                        },
                                        "studentEmail": {
                                            "description": "Email Address 1",
                                            "type": "string",
                                            "example": "john.wick@example.com"
                                        },
                                        "studentEmail2": {
                                            "description": "Email Address 2",
                                            "type": "string",
                                            "example": "john.wick@example.com"
                                        },
                                        "studentEmail3": {
                                            "description": "Email Address 3",
                                            "type": "string",
                                            "example": "john.wick@example.com"
                                        },
                                        "preferredEmail": {
                                            "description": "Preferred contact email. Value is 1|2|3",
                                            "type": "string",
                                            "example": "1"
                                        },
                                        "buildingName": {
                                            "description": "Usual residence address building name",
                                            "type": "string",
                                            "example": "Building A"
                                        },
                                        "streetNumber": {
                                            "description": "Usual residence address street number",
                                            "type": "string",
                                            "example": "1"
                                        },
                                        "addressLine1": {
                                            "description": "Usual residence address line 1",
                                            "type": "string",
                                            "example": "1 Street"
                                        },
                                        "addressLine2": {
                                            "description": "Usual residence address line 2",
                                            "type": "string",
                                            "example": ""
                                        },
                                        "suburb": {
                                            "description": "Usual residence address suburb",
                                            "type": "string",
                                            "example": ""
                                        },
                                        "state": {
                                            "description": "Usual residence address state",
                                            "type": "string",
                                            "example": "SA"
                                        },
                                        "postcode": {
                                            "description": "Usual residence address postcode",
                                            "type": "string",
                                            "example": "5000"
                                        },
                                        "country": {
                                            "description": "Usual residence address country",
                                            "type": "string",
                                            "example": "Australia"
                                        },
                                        "buildingNamePostal": {
                                            "description": "Postal address building name",
                                            "type": "string",
                                            "example": "Building A"
                                        },
                                        "unitDetailsPostal": {
                                            "description": "Postal address unit details",
                                            "type": "string",
                                            "example": "Unit 1"
                                        },
                                        "streetNumberPostal": {
                                            "description": "Postal address street number",
                                            "type": "string",
                                            "example": "1"
                                        },
                                        "streetNamePostal": {
                                            "description": "Postal address street name",
                                            "type": "string",
                                            "example": "street"
                                        },
                                        "deliveryBoxPostal": {
                                            "description": "Postal address delivery box number",
                                            "type": "string",
                                            "example": "PO Box 111"
                                        },
                                        "suburbPostal": {
                                            "description": "Postal address suburb",
                                            "type": "string",
                                            "example": ""
                                        },
                                        "statePostal": {
                                            "description": "Postal address state",
                                            "type": "string",
                                            "example": "SA"
                                        },
                                        "postcodePostal": {
                                            "description": "Postal address postcode",
                                            "type": "string",
                                            "example": "5000"
                                        },
                                        "countryPostal": {
                                            "description": "Postal address country",
                                            "type": "string",
                                            "example": "Australia"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found that matches the given ID",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            },
            "put": {
                "tags": [
                    "Students"
                ],
                "summary": "Update student personal information",
                "description": "Update student personal information",
                "operationId": "update",
                "parameters": [
                    {
                        "name": "studentId",
                        "in": "path",
                        "description": "Student ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        },
                        "example": 123456
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "entryDate": {
                                        "description": "Entry date. Date format must be YYYY-MM-DD. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "title": {
                                        "description": "Title. Available options are Mr, Mrs, Miss, Ms, Dr, Rev and Hon. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "firstName": {
                                        "description": "Student first name.",
                                        "type": "string"
                                    },
                                    "middleName": {
                                        "description": "Student middle name.",
                                        "type": "string"
                                    },
                                    "lastName": {
                                        "description": "Student last name.",
                                        "type": "string"
                                    },
                                    "preferredName": {
                                        "description": "Student preferred name.",
                                        "type": "string"
                                    },
                                    "certificateName": {
                                        "description": "Certificate name.",
                                        "type": "string"
                                    },
                                    "gender": {
                                        "description": "Gender. Male, Female or Other.",
                                        "type": "string"
                                    },
                                    "DOB": {
                                        "description": "Date of birth. Date format must be YYYY-MM-DD. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "companyName": {
                                        "description": "Company name.",
                                        "type": "string"
                                    },
                                    "role": {
                                        "description": "Role.",
                                        "type": "string"
                                    },
                                    "buildingName": {
                                        "description": "Building or property name of usual residence.",
                                        "type": "string"
                                    },
                                    "unit": {
                                        "description": "Flat or unit details of usual residence.",
                                        "type": "string"
                                    },
                                    "streetNumber": {
                                        "description": "Street number of usual residence.",
                                        "type": "string"
                                    },
                                    "streetName": {
                                        "description": "Street name of usual residence.",
                                        "type": "string"
                                    },
                                    "suburb": {
                                        "description": "Suburb of usual residence.",
                                        "type": "string"
                                    },
                                    "state": {
                                        "description": "State of usual residence. If AVETMISS is required, only the following options are available.\n    New South Wales, Victoria, Queensland, South Australia, Western Australia, Tasmania, Northern Territory, Australian Capital Territory,\n    Other Australian Territories or Dependencies and Other (Overseas).",
                                        "type": "string"
                                    },
                                    "postcode": {
                                        "description": "Postcode of usual residence. If it is not an Australian postcode, use 'OSPC' for AVETMISS purposes.",
                                        "type": "string"
                                    },
                                    "country": {
                                        "description": "Country of usual residence.",
                                        "type": "string"
                                    },
                                    "postalBuildingName": {
                                        "description": "Building or property name of postal address.",
                                        "type": "string"
                                    },
                                    "postalUnit": {
                                        "description": "Flat or unit details of postal address.",
                                        "type": "string"
                                    },
                                    "postalStreetNumber": {
                                        "description": "Street number of postal address.",
                                        "type": "string"
                                    },
                                    "postalStreetName": {
                                        "description": "Street name of postal address.",
                                        "type": "string"
                                    },
                                    "postalDeliveryBox": {
                                        "description": "Delivery box of postal address.",
                                        "type": "string"
                                    },
                                    "postalSuburb": {
                                        "description": "Suburb of postal address.",
                                        "type": "string"
                                    },
                                    "postalState": {
                                        "description": "State of postal residence. If AVETMISS is required, only the following options are available.\n    New South Wales, Victoria, Queensland, South Australia, Western Australia, Tasmania, Northern Territory, Australian Capital Territory,\n    Other Australian Territories or Dependencies and Other (Overseas).",
                                        "type": "string"
                                    },
                                    "postalPostcode": {
                                        "description": "Postcode of postal address. If it is not an Australian postcode, use 'OSPC' for AVETMISS purposes.",
                                        "type": "string"
                                    },
                                    "postalCountry": {
                                        "description": "Country of postal address.",
                                        "type": "string"
                                    },
                                    "preferredPhone": {
                                        "description": "Preferred phone. Available options are M, B and H.",
                                        "type": "string"
                                    },
                                    "mobile": {
                                        "description": "Mobile number.",
                                        "type": "string"
                                    },
                                    "businessPhone": {
                                        "description": "Business phone number.",
                                        "type": "string"
                                    },
                                    "homePhone": {
                                        "description": "Home phone number.",
                                        "type": "string"
                                    },
                                    "fax": {
                                        "description": "Fax number.",
                                        "type": "string"
                                    },
                                    "preferredEmail": {
                                        "description": "Preferred email. Available options are 1, 2 and 3.",
                                        "type": "integer"
                                    },
                                    "email1": {
                                        "description": "Email 1.",
                                        "type": "string"
                                    },
                                    "email2": {
                                        "description": "Email 2.",
                                        "type": "string"
                                    },
                                    "email3": {
                                        "description": "Email 3.",
                                        "type": "string"
                                    },
                                    "isLearner": {
                                        "description": "Whether student is a learner. Value is 1 (Yes) or 0 (No).",
                                        "type": "boolean"
                                    },
                                    "isCompanyContact": {
                                        "description": "Whether student is a company contact. Value is 1 (Yes) or 0 (No).",
                                        "type": "boolean"
                                    },
                                    "VSN": {
                                        "description": "Victorian Student Number as provided by the Victorian Student Register (VSR). This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "educationIdentifier": {
                                        "description": "WA Education Identifier as provided by the Curriculum Council of Western Australia. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "learnerUniqueIdentifier": {
                                        "description": "Learner Unique Identifier as issued by the Queenland Studies Authority (QSA). This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "USI": {
                                        "description": "Unique Student Identifier (case sensitive). An alpha-numeric code unique to each new and continuing student undertaking nationally recognised VET courses. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "isOverseasClient": {
                                        "description": "Whether student is an overseas client. Value is 1 (Yes) or 0 (No). This can only be updated when AVETMISS is required.",
                                        "type": "boolean"
                                    },
                                    "nationalId": {
                                        "description": "National ID. This can only be updated when AVETMISS is required, and RTO is not using Weworkbook ID or company number.",
                                        "type": "string"
                                    },
                                    "surveyContactStatus": {
                                        "description": "Survey contact status. Available options are A, C, D, E, I, M and O.\n      They are A: Available for survey use, C: Correctional facility(addressor enrolment), D: Deceased student,\n          E: Excluded, I: Invalid address/itinerant student, M: Minor-under age of 15, O: Overseas.\n          This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "countryOfBirth": {
                                        "description": "Country of Birth. A 4 digit code, which can be obatined from https://weworkbook.com/publicPages/avetCountryList.php. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "isMainEnglish": {
                                        "description": "Do you mainly speak English at home? Value is 1 (Yes) or 0 (No). This can only be updated when AVETMISS is required.",
                                        "type": "boolean"
                                    },
                                    "otherLanguageAtHome": {
                                        "description": "Do you speak a language other than English at home? Value is 1 (Yes) or 0 (No). This can only be updated when AVETMISS is required.",
                                        "type": "boolean"
                                    },
                                    "spokenLanguage": {
                                        "description": "Language you speak other than English at home (if any). A 4 digit code, which can be obatined from https://weworkbook.com/publicPages/avetLanguageList.php. This can only be updated when AVETMISS is required and otherLanguageAtHome as YES.",
                                        "type": "string"
                                    },
                                    "proficiencyInEnglish": {
                                        "description": "Proficiency in English. Available options are numbers 1 to 4. They are 1: Very well, 2: Well, 3: Not well, 4: Not at all. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "indigenousStatus": {
                                        "description": "Indigenous Status. Available options are numbers 1 to 4. They are 1: Yes, Aboriginal, 2: Yes, Torres Strait Islander, 3: Yes, Aboriginal AND Torres Strait Islander, 4: No, Neither Aboriginal nor Torres Strait Islander. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "isDisabled": {
                                        "description": "Has a disability, impairment or long-term condition?. Available options are Y, N, NP. They are Y: Yes, N: No, NP: Not Provided.  This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "disabilities[]": {
                                        "description": "If 'isDisabled' is Yes, please indicate the areas of disability, impairment or long-term condition. Array of codes, which can be obatined from https://weworkbook.com/publicPages/avetDisabilityList.php.",
                                        "type": "string"
                                    },
                                    "medicalNote": {
                                        "description": "Medical Note. This can only be updated when AVETMISS is required and disabilities has '18 - Medical Condition'.",
                                        "type": "string"
                                    },
                                    "stillAtSchool": {
                                        "description": "Still at school? Value is 1 (Yes) or 0 (No). This can only be updated when AVETMISS is required.",
                                        "type": "boolean"
                                    },
                                    "highestLevelCompleted": {
                                        "description": "Highest school level completed?. Available options are 02,08,09,10,11,12,@@. They are 02: Did not go to school, 08: Year 8 or below, 09:Year 9 or equivalent,10:Completed Year 10,11:Completed Year 11,12:Completed Year 12,@@:Not specified.  This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "isSchoolYearCompletedEntered": {
                                        "description": "Year school level was completed stated? Value is 1 (Yes) or 0 (Not stated). This can only be updated when AVETMISS is required.",
                                        "type": "boolean"
                                    },
                                    "yearSchoolCompleted": {
                                        "description": "If isSchoolYearCompletedEntered is YES, please state year. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "priorEdAchievement": {
                                        "description": "Completed any of the following qualifications (list from highetQualifications field)?. Available options are Y, N, NP. They are Y: Yes, N: No, NP: Not Provided. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "highetQualifications[]": {
                                        "description": "Highest level of qualification you hold?. Array of codes, which can be obatined from https://weworkbook.com/publicPages/avetQualificationsList.php. This can only be updated when AVETMISS is required and priorEdAchievement as YES.",
                                        "type": "string"
                                    },
                                    "labourStatus": {
                                        "description": "Employment Status. Available options are numbers 01 to 08. They are 01: Full-time employee, 02:Part-time employee, 03:Self-employed - not employing others,04:Employer, 05:Employed - unpaid worker in family business,06:Unemployed - seeking full-time work,07:Unemployed seeking part-time work,08:Not employed - not seeking employment. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Updated successfully",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/student": {
            "post": {
                "tags": [
                    "Students"
                ],
                "summary": "Create a student.",
                "description": "Create a student.",
                "operationId": "store",
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "properties": {
                                    "firstName": {
                                        "description": "(Required) Student first name. Maximum 50 characters.",
                                        "type": "string"
                                    },
                                    "lastName": {
                                        "description": "(Required) Student last name. Maximum 50 characters.",
                                        "type": "string"
                                    },
                                    "contact": {
                                        "description": "(Required) Contact type. Value can be email, mobile, home or office.",
                                        "type": "string"
                                    },
                                    "contactInfo": {
                                        "description": "(Required) Email address or phone number.",
                                        "type": "integer"
                                    },
                                    "entryDate": {
                                        "description": "Entry date. Date format must be YYYY-MM-DD. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "title": {
                                        "description": "Title. Available options are Mr, Mrs, Miss, Ms, Dr, Rev and Hon. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "middleName": {
                                        "description": "Student middle name.",
                                        "type": "string"
                                    },
                                    "preferredName": {
                                        "description": "Student preferred name.",
                                        "type": "string"
                                    },
                                    "certificateName": {
                                        "description": "Certificate name.",
                                        "type": "string"
                                    },
                                    "gender": {
                                        "description": "Gender. Male, Female or Other.",
                                        "type": "string"
                                    },
                                    "DOB": {
                                        "description": "Date of birth. Date format must be YYYY-MM-DD. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "companyName": {
                                        "description": "Company name.",
                                        "type": "string"
                                    },
                                    "role": {
                                        "description": "Role.",
                                        "type": "string"
                                    },
                                    "buildingName": {
                                        "description": "Building or property name of usual residence.",
                                        "type": "string"
                                    },
                                    "unit": {
                                        "description": "Flat or unit details of usual residence.",
                                        "type": "string"
                                    },
                                    "streetNumber": {
                                        "description": "Street number of usual residence.",
                                        "type": "string"
                                    },
                                    "streetName": {
                                        "description": "Street name of usual residence.",
                                        "type": "string"
                                    },
                                    "suburb": {
                                        "description": "Suburb of usual residence.",
                                        "type": "string"
                                    },
                                    "state": {
                                        "description": "State of usual residence. If AVETMISS is required, only the following options are available.\n    New South Wales, Victoria, Queensland, South Australia, Western Australia, Tasmania, Northern Territory, Australian Capital Territory,\n    Other Australian Territories or Dependencies and Other (Overseas).",
                                        "type": "string"
                                    },
                                    "postcode": {
                                        "description": "Postcode of usual residence. If it is not an Australian postcode, use 'OSPC' for AVETMISS purposes.",
                                        "type": "string"
                                    },
                                    "country": {
                                        "description": "Country of usual residence.",
                                        "type": "string"
                                    },
                                    "postalBuildingName": {
                                        "description": "Building or property name of postal address.",
                                        "type": "string"
                                    },
                                    "postalUnit": {
                                        "description": "Flat or unit details of postal address.",
                                        "type": "string"
                                    },
                                    "postalStreetNumber": {
                                        "description": "Street number of postal address.",
                                        "type": "string"
                                    },
                                    "postalStreetName": {
                                        "description": "Street name of postal address.",
                                        "type": "string"
                                    },
                                    "postalDeliveryBox": {
                                        "description": "Delivery box of postal address.",
                                        "type": "string"
                                    },
                                    "postalSuburb": {
                                        "description": "Suburb of postal address.",
                                        "type": "string"
                                    },
                                    "postalState": {
                                        "description": "State of postal residence. If AVETMISS is required, only the following options are available.\n    New South Wales, Victoria, Queensland, South Australia, Western Australia, Tasmania, Northern Territory, Australian Capital Territory,\n    Other Australian Territories or Dependencies and Other (Overseas).",
                                        "type": "string"
                                    },
                                    "postalPostcode": {
                                        "description": "Postcode of postal address. If it is not an Australian postcode, use 'OSPC' for AVETMISS purposes.",
                                        "type": "string"
                                    },
                                    "postalCountry": {
                                        "description": "Country of postal address.",
                                        "type": "string"
                                    },
                                    "preferredPhone": {
                                        "description": "Preferred phone. Available options are M, B and H.",
                                        "type": "string"
                                    },
                                    "mobile": {
                                        "description": "Mobile number.",
                                        "type": "string"
                                    },
                                    "businessPhone": {
                                        "description": "Business phone number.",
                                        "type": "string"
                                    },
                                    "homePhone": {
                                        "description": "Home phone number.",
                                        "type": "string"
                                    },
                                    "fax": {
                                        "description": "Fax number.",
                                        "type": "string"
                                    },
                                    "preferredEmail": {
                                        "description": "Preferred email. Available options are 1, 2 and 3.",
                                        "type": "integer"
                                    },
                                    "email1": {
                                        "description": "Email 1.",
                                        "type": "string"
                                    },
                                    "email2": {
                                        "description": "Email 2.",
                                        "type": "string"
                                    },
                                    "email3": {
                                        "description": "Email 3.",
                                        "type": "string"
                                    },
                                    "isLearner": {
                                        "description": "Whether student is a learner. Value is 1 (Yes) or 0 (No).",
                                        "type": "boolean"
                                    },
                                    "isCompanyContact": {
                                        "description": "Whether student is a company contact. Value is 1 (Yes) or 0 (No).",
                                        "type": "boolean"
                                    },
                                    "VSN": {
                                        "description": "Victorian Student Number as provided by the Victorian Student Register (VSR). This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "educationIdentifier": {
                                        "description": "WA Education Identifier as provided by the Curriculum Council of Western Australia. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "learnerUniqueIdentifier": {
                                        "description": "Learner Unique Identifier as issued by the Queenland Studies Authority (QSA). This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "USI": {
                                        "description": "Unique Student Identifier (case sensitive). An alpha-numeric code unique to each new and continuing student undertaking nationally recognised VET courses. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "isOverseasClient": {
                                        "description": "Whether student is an overseas client. Value is 1 (Yes) or 0 (No). This can only be updated when AVETMISS is required.",
                                        "type": "boolean"
                                    },
                                    "surveyContactStatus": {
                                        "description": "Survey contact status. Available options are A, C, D, E, I, M and O.\n    They are A: Available for survey use, C: Correctional facility(addressor enrolment), D: Deceased student,\n    E: Excluded, I: Invalid address/itinerant student, M: Minor-under age of 15, O: Overseas.\n    This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "countryOfBirth": {
                                        "description": "Country of Birth. A 4 digit code, which can be obatined from https://weworkbook.com/publicPages/avetCountryList.php. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "isMainEnglish": {
                                        "description": "Do you mainly speak English at home? Value is 1 (Yes) or 0 (No). This can only be updated when AVETMISS is required.",
                                        "type": "boolean"
                                    },
                                    "otherLanguageAtHome": {
                                        "description": "Do you speak a language other than English at home? Value is 1 (Yes) or 0 (No). This can only be updated when AVETMISS is required.",
                                        "type": "boolean"
                                    },
                                    "spokenLanguage": {
                                        "description": "Language you speak other than English at home (if any). A 4 digit code, which can be obatined from https://weworkbook.com/publicPages/avetLanguageList.php. This can only be updated when AVETMISS is required and otherLanguageAtHome as YES.",
                                        "type": "string"
                                    },
                                    "proficiencyInEnglish": {
                                        "description": "Proficiency in English. Available options are numbers 1 to 4. They are 1: Very well, 2: Well, 3: Not well, 4: Not at all. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "indigenousStatus": {
                                        "description": "Indigenous Status. Available options are numbers 1 to 4. They are 1: Yes, Aboriginal, 2: Yes, Torres Strait Islander, 3: Yes, Aboriginal AND Torres Strait Islander, 4: No, Neither Aboriginal nor Torres Strait Islander. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "isDisabled": {
                                        "description": "Has a disability, impairment or long-term condition?. Available options are Y, N, NP. They are Y: Yes, N: No, NP: Not Provided.  This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "disabilities[]": {
                                        "description": "If 'isDisabled' is Yes, please indicate the areas of disability, impairment or long-term condition. Array of codes, which can be obatined from https://weworkbook.com/publicPages/avetDisabilityList.php.",
                                        "type": "string"
                                    },
                                    "medicalNote": {
                                        "description": "Medical Note. This can only be updated when AVETMISS is required and disabilities has '18 - Medical Condition'.",
                                        "type": "string"
                                    },
                                    "stillAtSchool": {
                                        "description": "Still at school? Value is 1 (Yes) or 0 (No). This can only be updated when AVETMISS is required.",
                                        "type": "boolean"
                                    },
                                    "highestLevelCompleted": {
                                        "description": "Highest school level completed?. Available options are 02,08,09,10,11,12,@@. They are 02: Did not go to school, 08: Year 8 or below, 09:Year 9 or equivalent,10:Completed Year 10,11:Completed Year 11,12:Completed Year 12,@@:Not specified.  This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "isSchoolYearCompletedEntered": {
                                        "description": "Year school level was completed stated? Value is 1 (Yes) or 0 (Not stated). This can only be updated when AVETMISS is required.",
                                        "type": "boolean"
                                    },
                                    "yearSchoolCompleted": {
                                        "description": "If isSchoolYearCompletedEntered is YES, please state year. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "priorEdAchievement": {
                                        "description": "Completed any of the following qualifications (list from highetQualifications field)?. Available options are Y, N, NP. They are Y: Yes, N: No, NP: Not Provided. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    },
                                    "highetQualifications[]": {
                                        "description": "Highest level of qualification you hold?. Array of codes, which can be obatined from https://weworkbook.com/publicPages/avetQualificationsList.php. This can only be updated when AVETMISS is required and priorEdAchievement as YES.",
                                        "type": "string"
                                    },
                                    "labourStatus": {
                                        "description": "Employment Status. Available options are numbers 01 to 08. They are 01: Full-time employee, 02:Part-time employee, 03:Self-employed - not employing others,04:Employer, 05:Employed - unpaid worker in family business,06:Unemployed - seeking full-time work,07:Unemployed seeking part-time work,08:Not employed - not seeking employment. This can only be updated when AVETMISS is required.",
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Created successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "studentId": {
                                            "description": "Unique student ID in Weworkbook system for this newly created student",
                                            "type": "integer",
                                            "example": 123456
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/webhooks": {
            "get": {
                "tags": [
                    "Webhooks"
                ],
                "summary": "Get a list of webhooks.",
                "description": "Get a list of webhooks.",
                "operationId": "listWebhooks",
                "responses": {
                    "200": {
                        "description": "Retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "Unique webhook ID in Weworkbook system",
                                            "type": "integer",
                                            "example": 123456
                                        },
                                        "typeId": {
                                            "description": "Unique webhook type ID.",
                                            "type": "integer",
                                            "example": 123
                                        },
                                        "type": {
                                            "description": "Webhook type",
                                            "type": "string",
                                            "example": "Student Notes"
                                        },
                                        "url": {
                                            "description": "Webhook request URL.",
                                            "type": "string",
                                            "example": "https://example.com/webhook.php"
                                        },
                                        "enabled": {
                                            "description": "Whether webhook is enabled or disabled.",
                                            "type": "boolean",
                                            "example": true
                                        },
                                        "actions": {
                                            "description": "Webhook request actions. Value can be 'Add', 'Edit' or 'Delete'.",
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "example": "Add"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            },
            "post": {
                "tags": [
                    "Webhooks"
                ],
                "summary": "Create a webhook.",
                "description": "Create a webhook. Default HTTP request method is POST.",
                "operationId": "createWebhooks",
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "properties": {
                                    "typeId": {
                                        "description": "(Required) Webhook type ID. Available webhook types can be get from WebhookTypes GET endpoint.",
                                        "type": "integer"
                                    },
                                    "url": {
                                        "description": "(Required) Webhook request URL, HTTPS is recommended.",
                                        "type": "string"
                                    },
                                    "actions[]": {
                                        "description": "(Required) The webhook request actions. Valid actions include 'Add', 'Edit', 'Delete' or 'Automate'. Multiple action values can be provided in a POST array.",
                                        "type": "string"
                                    },
                                    "enabled": {
                                        "description": "(Required) Set new webhook is enalbed or disabled. Value must be 1 or 0.",
                                        "type": "boolean"
                                    },
                                    "delurl": {
                                        "description": "(Optional) To delete the webhook subscription. Part of Create Call output",
                                        "type": "string"
                                    },
                                    "delid": {
                                        "description": "(Optional) To delete the webhook subscription. Part of Create Call output",
                                        "type": "integer"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Created successfully",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/webhooks/{id}": {
            "put": {
                "tags": [
                    "Webhooks"
                ],
                "summary": "Update a webhook",
                "description": "Update the details of a webhook.",
                "operationId": "updateWebhooks",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Unique webhook ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        },
                        "example": 123456
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "url": {
                                        "description": "(Optional) Webhook request URL, HTTPS is recommended.",
                                        "type": "string"
                                    },
                                    "actions[]": {
                                        "description": "(Optional) The webhook request actions. Valid actions include 'Add', 'Edit' or 'Delete'. Multiple action values can be provided in a PUT array.",
                                        "type": "string"
                                    },
                                    "enabled": {
                                        "description": "(Optional) Set webhook is enalbed or disabled. Value must be 1 or 0.",
                                        "type": "boolean"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Updated successfully",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "https://api.weworkbook.com/api/v1/webhookTypes": {
            "get": {
                "tags": [
                    "WebhookTypes"
                ],
                "summary": "Get a list of webhook types.",
                "description": "Get a list of webhook types.",
                "operationId": "listWebhookTypes",
                "responses": {
                    "200": {
                        "description": "Retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "Unique webhook type ID in Weworkbook system",
                                            "type": "integer",
                                            "example": 1
                                        },
                                        "type": {
                                            "description": "The name of webhook type.",
                                            "type": "string",
                                            "example": "Student Notes"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "description": "No resource found",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "/oauth/authorize": {
            "get": {
                "tags": [
                    "Authorization (OAuth2)"
                ],
                "summary": "Requesting tokens and redirecting for authorization",
                "operationId": "authorize",
                "parameters": [
                    {
                        "name": "client_id",
                        "in": "query",
                        "description": "Client APP ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "redirect_uri",
                        "in": "query",
                        "description": "Client APP callback URI",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "response_type",
                        "in": "query",
                        "description": "Define this parameter as 'code'",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "scope",
                        "in": "query",
                        "description": "You can leave this as empty string for now",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "state",
                        "in": "query",
                        "description": "A random 40 characters long string",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "401": {
                        "description": "Unauthenticated"
                    },
                    "400": {
                        "description": "Bad Request"
                    },
                    "404": {
                        "description": "not found"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                }
            }
        },
        "/oauth/token": {
            "post": {
                "tags": [
                    "Authorization (OAuth2)"
                ],
                "summary": "Converting authorization codes to access tokens",
                "operationId": "token",
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "properties": {
                                    "grant_type": {
                                        "description": "Set grant type as authorization_code",
                                        "type": "string"
                                    },
                                    "client_id": {
                                        "description": "Your client App ID",
                                        "type": "string"
                                    },
                                    "client_secret": {
                                        "description": "Your client App secret",
                                        "type": "string"
                                    },
                                    "redirect_uri": {
                                        "description": "Rediect URI",
                                        "type": "string"
                                    },
                                    "code": {
                                        "description": "The authorization code you got.",
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "token_type": {
                                            "description": "Token type",
                                            "type": "string",
                                            "example": "Bearer"
                                        },
                                        "expires_in": {
                                            "description": "Access token expires in 86400 seconds.",
                                            "type": "integer",
                                            "example": 86400
                                        },
                                        "access_token": {
                                            "description": "Token string",
                                            "type": "string"
                                        },
                                        "refresh_token": {
                                            "description": "Token string",
                                            "type": "string"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated"
                    },
                    "400": {
                        "description": "Bad Request"
                    },
                    "404": {
                        "description": "not found"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                }
            }
        },
        "/oauth/token ": {
            "post": {
                "tags": [
                    "Authorization (OAuth2)"
                ],
                "summary": "Refresh access tokens with the refresh token",
                "operationId": "refresh",
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "properties": {
                                    "grant_type": {
                                        "description": "Set grant type as refresh_token",
                                        "type": "string"
                                    },
                                    "client_id": {
                                        "description": "Your client App ID",
                                        "type": "string"
                                    },
                                    "client_secret": {
                                        "description": "Your client App secret",
                                        "type": "string"
                                    },
                                    "refresh_token": {
                                        "description": "The refresh token you have got",
                                        "type": "string"
                                    },
                                    "scope": {
                                        "description": "Scope",
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "token_type": {
                                            "description": "Token type",
                                            "type": "string",
                                            "example": "Bearer"
                                        },
                                        "expires_in": {
                                            "description": "Access token expires in 86400 seconds.",
                                            "type": "integer",
                                            "example": 86400
                                        },
                                        "access_token": {
                                            "description": "Token string",
                                            "type": "string"
                                        },
                                        "refresh_token": {
                                            "description": "Token string",
                                            "type": "string"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated"
                    },
                    "400": {
                        "description": "Bad Request"
                    },
                    "404": {
                        "description": "not found"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                }
            }
        }
    },
    "security": [
        []
    ]
}