{
 "openapi": "3.1.0",
 "info": {
  "title": "Programme Effectiveness (HRMS)",
  "version": "20261030b",
  "description": "Per course: how many finish, how well they score, and what they thought of it."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "course-effectiveness": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "code": {
      "type": "string",
      "description": "Code",
      "readOnly": true
     },
     "name": {
      "type": "string",
      "description": "Name",
      "readOnly": true
     },
     "category": {
      "type": "string",
      "description": "Category",
      "readOnly": true
     },
     "is_compliance": {
      "type": "boolean",
      "description": "Is compliance",
      "readOnly": true
     },
     "enrolled": {
      "type": "integer",
      "description": "Enrolled",
      "readOnly": true
     },
     "completed": {
      "type": "integer",
      "description": "Completed",
      "readOnly": true
     },
     "completion_pct": {
      "type": "string",
      "format": "decimal",
      "description": "Completion pct",
      "readOnly": true
     },
     "avg_score": {
      "type": "string",
      "format": "decimal",
      "description": "Avg score",
      "readOnly": true
     },
     "evaluations": {
      "type": "integer",
      "description": "Evaluations",
      "readOnly": true
     },
     "avg_rating": {
      "type": "string",
      "format": "decimal",
      "description": "Avg rating",
      "readOnly": true
     },
     "recommend_pct": {
      "type": "string",
      "format": "decimal",
      "description": "Recommend pct",
      "readOnly": true
     },
     "evaluations_requested": {
      "type": "integer",
      "description": "Evaluations requested",
      "readOnly": true
     },
     "evaluations_outstanding": {
      "type": "integer",
      "description": "Evaluations outstanding",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/course-effectiveness": {
   "get": {
    "summary": "list course-effectiveness",
    "operationId": "list_course_effectiveness_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post programme effectiveness",
    "operationId": "action_course_effectiveness_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/course-effectiveness/{id}": {
   "get": {
    "summary": "get course-effectiveness",
    "operationId": "get_course_effectiveness_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put programme effectiveness",
    "operationId": "action_course_effectiveness_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete programme effectiveness",
    "operationId": "action_course_effectiveness_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/course-effectiveness/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_course_effectiveness_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"
     }
    }
   }
  }
 }
}