← Hub API
ExamResults
Singular: ExamResult — 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": "65e06ecb1e1be45a37c624d5",
"_user": "6045f4d25704710012485569",
"right": 0,
"wrong": 0,
"passed": false,
"aborted": false,
"finished": false,
"createdBy": "6045f4d25704710012485569",
"startTime": "2024-02-29T11:47:23.742Z",
"answers": [],
"createdAt": "2024-02-29T11:47:23.743Z",
"updatedAt": "2024-02-29T11:47:23.743Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://hub-api.ayoune.app/examresults/65e06ecb1e1be45a37c624d5",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "Products",
"title": "MODEL_PRODUCT",
"href": "https://api.ayoune.app/pim/products/6045f4d25704710012485569",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pim.products"
}
],
"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": "6a62e0412b20d6ae273beffa",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_EXAMRESULT",
"href": "https://api.ayoune.app/hub/examresults/65e06ecb1e1be45a37c624d5/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_EXAMRESULT",
"href": "https://api.ayoune.app/hub/examresults/65e06ecb1e1be45a37c624d5/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.11.3",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2476",
"reset": "1784868426",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 24.630786,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /examresults |
Liste mit Filtern/Paginierung | hub.examresults.view |
| GET | /examresults/:id |
Einzelner Datensatz | hub.examresults.view |
| POST | /examresults |
Neuen Datensatz erstellen | hub.examresults.new |
| PUT | /examresults |
Datensatz aktualisieren | hub.examresults.edit |
| DELETE | /examresults/:id |
Datensatz löschen | hub.examresults.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.hub.examResults.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.hub.examResults.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.hub.examResults.create({ name: 'Foo' });