# Update Employee Education

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /empeo/api/v1/employees/education:
    post:
      summary: Update Employee Education
      deprecated: false
      description: >-
        All fields that have tag 'Required' and 'Nullable' is mean that field
        required only when adding data, If update data that field is nullable
      tags:
        - empeo/Core HR/Employee
      parameters:
        - name: Content-Type
          in: header
          description: 'Accepted value: application/json'
          required: true
          example: application/json
          schema:
            type: string
        - name: Ocp-Apim-Subscription-Key
          in: header
          description: Api subscription key get from the OpenAPI integration setting page
          required: true
          example: WPe123a9RKbcfLQNSztr45
          schema:
            type: string
        - name: Authorization
          in: header
          description: Authorization credential utilized in API requests
          required: true
          example: bearer {token}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                employeeRefId:
                  type: string
                  description: Employee No
                companyName:
                  type: string
                  description: Employee company name
                educationRefNo:
                  type: string
                  description: >-
                    Employee education reference number for update (can view
                    from Get Employee List)
                educationDegreeId:
                  type: integer
                  description: Education ID (masterTypes)
                educationInstitute:
                  type: string
                  description: Employee formal educational organization
                  nullable: true
                isEducationDomestic:
                  type: integer
                  description: Employee education domestic status (1 = true, 0 = false)
                  nullable: true
                educationFromYear:
                  type: integer
                  description: The starting year when the employee began education
                  nullable: true
                educationToYear:
                  type: integer
                  description: The ending year when the employee completed education
                  nullable: true
                educationFaculty:
                  type: string
                  description: Employee education faculty
                  nullable: true
                educationMajorSubject:
                  type: string
                  description: Employee education major subject
                  nullable: true
                educationGPA:
                  type: number
                  description: Employee grade point average
                  nullable: true
              required:
                - companyName
                - employeeRefId
                - educationDegreeId
                - educationFromYear
                - educationToYear
                - educationInstitute
                - isEducationDomestic
                - educationRefNo
              x-apidog-orders:
                - employeeRefId
                - companyName
                - educationRefNo
                - educationDegreeId
                - educationInstitute
                - isEducationDomestic
                - educationFromYear
                - educationToYear
                - educationFaculty
                - educationMajorSubject
                - educationGPA
            example:
              employeeRefId: '23003'
              companyName: empeo Dev Test
              EducationDegreeId: 100008
              EducationInstitute: Empeo university
              IsEducationDomestic: 0
              EducationMajorSubject: Information Technology
              EducationGPA: 3.5
              EducationFromYear: 2030
              EducationToYear: 2035
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apidog-orders: []
              example:
                statusCode: 200
                message: OK
                data:
                  message: Update successfully
                  result: true
          headers: {}
          x-apidog-name: Success
      security:
        - bearerAuth: []
          x-apidog:
            schemeGroups:
              - id: uyL_cJmK7q60QJZRTi5ot
                schemeIds:
                  - bearerAuth
            required: true
            use:
              id: uyL_cJmK7q60QJZRTi5ot
            scopes:
              uyL_cJmK7q60QJZRTi5ot:
                bearerAuth: []
      x-apidog-folder: empeo/Core HR/Employee
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-3848848-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: ใส่ JWT Token ในรูปแบบ Bearer {token}
    bearer:
      type: bearer
      scheme: bearer
servers:
  - url: https://api.gofive.co.th
    description: Production
security:
  - bearerAuth: []
    x-apidog:
      schemeGroups:
        - id: uyL_cJmK7q60QJZRTi5ot
          schemeIds:
            - bearerAuth
      required: true
      use:
        id: uyL_cJmK7q60QJZRTi5ot
      scopes:
        uyL_cJmK7q60QJZRTi5ot:
          bearerAuth: []

```
