> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ugps.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a new employee

> Operacion: Create a new employee.



## OpenAPI

````yaml /generated/specs/platform.json post /api/hr/employees
openapi: 3.0.0
info:
  title: Raul API - Plataforma
  description: Portal cliente, templates, RRHH, notificaciones y automatizaciones internas.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/hr/employees:
    post:
      tags:
        - HR - Employees
      summary: Create a new employee
      description: 'Operacion: Create a new employee.'
      operationId: HrEmployeesController_create
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateEmployeeDto'
      responses:
        '201':
          description: Employee created successfully
        '400':
          description: Invalid RUT or duplicate
        '404':
          description: Position or Department not found
components:
  schemas:
    CreateEmployeeDto:
      type: object
      properties:
        rut:
          type: string
          example: 12.345.678-9
          description: RUT in format XX.XXX.XXX-X
        first_name:
          type: string
          example: Juan
          maxLength: 100
        last_name:
          type: string
          example: Pérez
          maxLength: 100
        email:
          type: string
          example: juan@test.com
        phone:
          type: string
          example: '+56912345678'
          maxLength: 50
        hire_date:
          type: string
          example: '2024-01-15'
          description: ISO date string
        current_salary:
          type: string
          example: '1500000'
          description: Salary as string (will be converted to Decimal)
        position_id:
          type: string
          example: uuid-of-position
        department_id:
          type: string
          example: uuid-of-department
      required:
        - rut
        - first_name
        - last_name
        - hire_date
        - current_salary
        - position_id
        - department_id

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.