Skip to main content

create-employee

This skill should be used when the task asks to "create an employee", "opprett ein tilsett", "opprett en ansatt", "créer un employé", "criar um funcionário", "Mitarbeiter erstellen", "crear un empleado", or involves creating an employee and optionally assigning roles or contact information in Tripletex.

Datos de origen

Repositorio
JardarIversen/ainm-2026
Última actividad en el origen
21 de marzo de 2026 a las 11:30
Idioma detectado de SKILL.md
inglés
Estrellas
18
Forks
14

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
create_employee
tier
1
task
T01
description
This skill should be used when the task asks to "create an employee", "opprett ein tilsett", "opprett en ansatt", "créer un employé", "criar um funcionário", "Mitarbeiter erstellen", "crear un empleado", or involves creating an employee and optionally assigning roles or contact information in Tripletex.
# Create Employee Exactly 2 API calls. ## Call 1: Get Department + Division (ONE call) ``` GET /employee?fields=id,department(id),employments(id,division(id))&count=1 ``` From the admin employee response, extract: - `department.id` — needed for the new employee - `employments[0].division.id` — needed for inline employment Both come from this single call. Do NOT make a separate GET for employment/division. ## Call 2: Create Employee WITH Inline Employment ```json POST /employee { "firstName": "<first name>", "lastName": "<last name>", "email": "<email>", "dateOfBirth": "<YYYY-MM-DD>", "userType": "NO_ACCESS", "department": {"id": <department_id>}, "employments": [ { "startDate": "<start date from prompt>", "division": {"id": <division_id>}, "isMainEmployer": true, "taxDeductionCode": "loennFraHovedarbeidsgiver" } ] } ``` **Total: 2 calls, 0 errors.** ## userType Selection - `"NO_ACCESS"` — default for most tasks - `"EXTENDED"` — use when prompt mentions "administrator" / "kontoadministrator" / "admin" ## Gotchas - `department` is required — creation fails without it - `startDate` goes on employment, NOT on the employee object - `dateOfBirth` format is "YYYY-MM-DD" - GET /employee with `fields=id,department(id),employments(id,division(id))` returns BOTH department and division in ONE call — do NOT make a second GET
Ver en GitHub