aYOUne
← Hub API

HubQuestions

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

play_circle Try it now beta

Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.

Example response (recorded) sample

A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.

{
  "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
  }
}

Endpoints

MethodPathDescriptionRight
GET /hubquestions List with filters/pagination hub.hubquestions.view
GET /hubquestions/:id Single record hub.hubquestions.view
POST /hubquestions Create new record hub.hubquestions.new
PUT /hubquestions Update record hub.hubquestions.edit
DELETE /hubquestions/:id Delete record hub.hubquestions.delete

SDK

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

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

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

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

See also