← HR API
CourseQuestions
Singular: CourseQuestion — 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": "65e06d881e1be45a37c6240d",
"createdBy": "6045f4d25704710012485569",
"answers": [],
"createdAt": "2024-02-29T11:42:00.360Z",
"updatedAt": "2024-02-29T11:42:00.360Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://hr-api.ayoune.app/coursequestions/65e06d881e1be45a37c6240d",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Products",
"title": "MODEL_PRODUCT",
"href": "https://api.ayoune.app/pim/products",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pim.products"
}
],
"debugId": "6a62e01b59e4802b7b80d111",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_COURSEQUESTION",
"href": "https://api.ayoune.app/hr/coursequestions/65e06d881e1be45a37c6240d/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_COURSEQUESTION",
"href": "https://api.ayoune.app/hr/coursequestions/65e06d881e1be45a37c6240d/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.11.0",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2432",
"reset": "1784868377",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 169.541735,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /coursequestions |
Liste mit Filtern/Paginierung | hr.coursequestions.view |
| GET | /coursequestions/:id |
Einzelner Datensatz | hr.coursequestions.view |
| POST | /coursequestions |
Neuen Datensatz erstellen | hr.coursequestions.new |
| PUT | /coursequestions |
Datensatz aktualisieren | hr.coursequestions.edit |
| DELETE | /coursequestions/:id |
Datensatz löschen | hr.coursequestions.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.hr.courseQuestions.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.hr.courseQuestions.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.hr.courseQuestions.create({ name: 'Foo' });