{
 "openapi": "3.1.0",
 "info": {
  "title": "Skill Gaps (HRMS)",
  "version": "20261030b",
  "description": "Each person against what their job requires: the level held, the level needed, and the gap."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "skill-gaps": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "employee_id": {
      "type": "string",
      "format": "uuid",
      "description": "Employee id",
      "readOnly": true
     },
     "employee_no": {
      "type": "string",
      "description": "Employee no",
      "readOnly": true
     },
     "employee_name": {
      "type": "string",
      "description": "Employee name",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "position_id": {
      "type": "string",
      "format": "uuid",
      "description": "Position id",
      "readOnly": true
     },
     "position_title": {
      "type": "string",
      "description": "Position title",
      "readOnly": true
     },
     "job_id": {
      "type": "string",
      "format": "uuid",
      "description": "Job id",
      "readOnly": true
     },
     "job_title": {
      "type": "string",
      "description": "Job title",
      "readOnly": true
     },
     "skill_id": {
      "type": "string",
      "format": "uuid",
      "description": "Skill id",
      "readOnly": true
     },
     "skill_code": {
      "type": "string",
      "description": "Skill code",
      "readOnly": true
     },
     "skill_name": {
      "type": "string",
      "description": "Skill name",
      "readOnly": true
     },
     "skill_category": {
      "type": "string",
      "description": "Skill category",
      "readOnly": true
     },
     "required_level": {
      "type": "integer",
      "description": "Required level",
      "readOnly": true
     },
     "is_mandatory": {
      "type": "boolean",
      "description": "Is mandatory",
      "readOnly": true
     },
     "current_level": {
      "type": "integer",
      "description": "Current level",
      "readOnly": true
     },
     "verified": {
      "type": "boolean",
      "description": "Verified",
      "readOnly": true
     },
     "source": {
      "type": "string",
      "description": "Source",
      "readOnly": true
     },
     "gap": {
      "type": "integer",
      "description": "Gap",
      "readOnly": true
     },
     "meets": {
      "type": "boolean",
      "description": "Meets",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/skill-gaps": {
   "get": {
    "summary": "list skill-gaps",
    "operationId": "list_skill_gaps_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post skill gaps",
    "operationId": "action_skill_gaps_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/skill-gaps/{id}": {
   "get": {
    "summary": "get skill-gaps",
    "operationId": "get_skill_gaps_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put skill gaps",
    "operationId": "action_skill_gaps_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete skill gaps",
    "operationId": "action_skill_gaps_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/skill-gaps/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_skill_gaps_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}