# Update Employee Information

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /empeo/api/v1/employees/Information:
    post:
      summary: Update Employee Information
      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: Unique identifier for referring to employees (Employee No.)
                GenderId:
                  type: integer
                  description: Gender ID (1 = Male, 2 = Female, 3 = Other)
                  nullable: true
                ReligionId:
                  type: integer
                  description: Religion ID (can view in Get mastertypes API)
                  nullable: true
                Height:
                  type: integer
                  description: Employee height
                  nullable: true
                Weight:
                  type: integer
                  description: Employee weight
                  nullable: true
                MaritalStatusId:
                  type: integer
                  description: Marital status ID (can view in Get mastertypes API)
                  nullable: true
                NationalityId:
                  type: integer
                  description: Nationality ID (can view in Get mastertypes API)
                  nullable: true
                MilitaryStatusId:
                  type: integer
                  description: Military status ID (can view in Get mastertypes API)
                  nullable: true
                raceId:
                  type: integer
                  description: Race ID (can view in Get mastertypes API)
                  nullable: true
                BloodTypeId:
                  type: integer
                  description: Blood type (can view in Get mastertypes API)
                  nullable: true
                TitleId:
                  type: integer
                  description: Title ID of the employee (can view in Get name prefixes API)
                  nullable: true
                companyName:
                  type: string
                  description: Employee company name
                emailAddress:
                  type: string
                  description: Email address of the employee (Work)
                  nullable: true
                telephoneNo:
                  type: string
                  description: Contact number of the employee (work)
                  nullable: true
                employmentTypeId:
                  type: integer
                  description: >-
                    Employee employment type (1 = Part Time, 2 = Apprentice, 3 =
                    Temporary, 4 = Daily, 5 = Permanent)
                  nullable: true
                employmentStatusId:
                  type: integer
                  description: >-
                    Employee work status (1 = Probation, 2 = Permanent, 3 =
                    Resign, 4 = Waiting to start work)
                  nullable: true
                organizationName:
                  type: string
                  description: >-
                    Name of the department of the employee. Ex. Org chart is
                    "Chief Executive Officer (1)> Human Resources Department
                    (2)> HR Team (3)> HR Manager (4)" if organizationName is HR
                    Team, organizationLevel is 3
                  nullable: true
                organizationLevels:
                  type: integer
                  description: >-
                    Employee department levels. Ex. Org chart is "Chief
                    Executive Officer (1)> Human Resources Department (2)> HR
                    Team (3)> HR Manager (4)" if organizationName is HR Team,
                    organizationLevel is 3
                  nullable: true
              x-apidog-orders:
                - employeeRefId
                - companyName
                - GenderId
                - TitleId
                - ReligionId
                - NationalityId
                - raceId
                - Height
                - Weight
                - BloodTypeId
                - MilitaryStatusId
                - MaritalStatusId
                - emailAddress
                - telephoneNo
                - employmentTypeId
                - employmentStatusId
                - organizationName
                - organizationLevels
              required:
                - employeeRefId
                - companyName
                - GenderId
                - TitleId
                - employmentStatusId
                - organizationName
                - organizationLevels
                - employmentTypeId
            example:
              employeeRefId: '23003'
              companyName: empeo Dev Test
              GenderId: 1
              ReligionId: 200001
              Height: 175
              MaritalStatusId: 900001
      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-3846710-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: []

```
