← HR API
CourseModules
Singular: CourseModule — Base-URL: https://hr-api.ayoune.app — Zugriff: CRUD
Jetzt ausprobieren
beta
Response (live)
Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.
Beispiel-Response (aufgezeichnet) Beispiel
Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.
{
"payload": {
"_id": "65e06d871e1be45a37c623f4",
"skills": [],
"team": [],
"lessons": [],
"createdBy": "6045f4d25704710012485569",
"createdAt": "2024-02-29T11:41:59.822Z",
"updatedAt": "2024-02-29T11:41:59.822Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://hr-api.ayoune.app/coursemodules/65e06d871e1be45a37c623f4",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Consumers",
"title": "MODEL_CONSUMER",
"href": "https://api.ayoune.app/crm/consumers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.consumers"
},
{
"rel": "Products",
"title": "MODEL_PRODUCT",
"href": "https://api.ayoune.app/pim/products",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pim.products"
},
{
"rel": "Exams",
"title": "MODEL_EXAM",
"href": "https://api.ayoune.app/hub/exams",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "hub.exams"
}
],
"debugId": "6a62e01759e4802b7b80cfe5",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_COURSEMODULE",
"href": "https://api.ayoune.app/hr/coursemodules/65e06d871e1be45a37c623f4/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_COURSEMODULE",
"href": "https://api.ayoune.app/hr/coursemodules/65e06d871e1be45a37c623f4/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.11.0",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2450",
"reset": "1784868377",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 83.285708,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /coursemodules |
Liste mit Filtern/Paginierung | hr.coursemodules.view |
| GET | /coursemodules/:id |
Einzelner Datensatz | hr.coursemodules.view |
| POST | /coursemodules |
Neuen Datensatz erstellen | hr.coursemodules.new |
| PUT | /coursemodules |
Datensatz aktualisieren | hr.coursemodules.edit |
| DELETE | /coursemodules/:id |
Datensatz löschen | hr.coursemodules.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.hr.courseModules.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.hr.courseModules.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.hr.courseModules.create({ name: 'Foo' });