aYOUne
← Hub API

HubQuestions

Singular: HubQuestion — Base-URL: https://hub-api.ayoune.app — Zugriff: CRUD

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": "6a618f65d90d766fd313b812",
    "tags": [],
    "closed": false,
    "mentions": [],
    "consumerMentions": [],
    "createdBy": "6045f4d25704710012485569",
    "votes": [],
    "comments": [],
    "answers": [],
    "createdAt": "2026-07-23T03:49:57.872Z",
    "updatedAt": "2026-07-23T03:49:57.872Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://hub-api.ayoune.app/hubquestions/6a618f65d90d766fd313b812",
        "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": "6a62e0502b20d6ae273bf3b3",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_HUBQUESTION",
        "href": "https://api.ayoune.app/hub/hubquestions/6a618f65d90d766fd313b812/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_HUBQUESTION",
        "href": "https://api.ayoune.app/hub/hubquestions/6a618f65d90d766fd313b812/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.11.3",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2422",
      "reset": "1784868426",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 65.682659,
    "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