← Hub API
Exams
Singular: Exam — Base-URL: https://hub-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": "65e06ecc1e1be45a37c624ee",
"skills": [],
"retries": 2,
"timelimit": 20,
"percentageToSucceed": 80,
"createdBy": "6045f4d25704710012485569",
"modules": [],
"createdAt": "2024-02-29T11:47:24.549Z",
"updatedAt": "2024-02-29T11:47:24.549Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://hub-api.ayoune.app/exams/65e06ecc1e1be45a37c624ee",
"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": "Courses",
"title": "MODEL_COURSE",
"href": "https://api.ayoune.app/hr/courses",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "hr.courses"
}
],
"debugId": "6a62e0462b20d6ae273bf124",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_EXAM",
"href": "https://api.ayoune.app/hub/exams/65e06ecc1e1be45a37c624ee/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_EXAM",
"href": "https://api.ayoune.app/hub/exams/65e06ecc1e1be45a37c624ee/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.11.3",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2459",
"reset": "1784868426",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 103.496743,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /exams |
Liste mit Filtern/Paginierung | hub.exams.view |
| GET | /exams/:id |
Einzelner Datensatz | hub.exams.view |
| POST | /exams |
Neuen Datensatz erstellen | hub.exams.new |
| PUT | /exams |
Datensatz aktualisieren | hub.exams.edit |
| DELETE | /exams/:id |
Datensatz löschen | hub.exams.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.hub.exams.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.hub.exams.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.hub.exams.create({ name: 'Foo' });