aYOUne
← Hub API

HubQuestions

Singular: HubQuestion — Base-URL: https://hub-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

play_circle Jetzt ausprobieren beta

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": "61de4ca94970427b9c5a5490",
    "tags": [],
    "closed": false,
    "mentions": [],
    "consumerMentions": [],
    "votes": [],
    "comments": [],
    "answers": [],
    "user": "5ee06fc3860473001cfb290e",
    "createdAt": "2022-01-12T03:36:09.410Z",
    "updatedAt": "2022-01-12T03:36:11.347Z",
    "shares": []
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://hub-api.ayoune.app/hubquestions/61de4ca94970427b9c5a5490",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Projects",
        "title": "MODEL_PROJECT",
        "href": "https://api.ayoune.app/pm/projects",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "pm.projects"
      },
      {
        "rel": "ProjectRequirements",
        "title": "MODEL_PROJECTREQUIREMENT",
        "href": "https://api.ayoune.app/config/projectrequirements",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.projectrequirements"
      },
      {
        "rel": "Tasks",
        "title": "MODEL_TASK",
        "href": "https://api.ayoune.app/pm/tasks",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "pm.tasks"
      }
    ],
    "debugId": "6aa37adab63be8cffe6d5c67",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_HUBQUESTION",
        "href": "https://api.ayoune.app/hub/hubquestions/61de4ca94970427b9c5a5490/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_HUBQUESTION",
        "href": "https://api.ayoune.app/hub/hubquestions/61de4ca94970427b9c5a5490",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.18.0",
      "core": "2026.335.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2419",
      "reset": "1789102289",
      "resetDate": "Fri Sep 11 2026"
    },
    "responseTime": 102.562848,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /hubquestions Liste mit Filtern/Paginierung hub.hubquestions.view
GET /hubquestions/:id Einzelner Datensatz hub.hubquestions.view
POST /hubquestions Neuen Datensatz erstellen hub.hubquestions.new
PUT /hubquestions Datensatz aktualisieren hub.hubquestions.edit
DELETE /hubquestions/:id Datensatz löschen hub.hubquestions.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.hub.hubQuestions.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.hub.hubQuestions.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.hub.hubQuestions.create({ name: 'Foo' });

Weiterführend