Zum Inhalt springen
aYOUne
← Projektmanagement API

UseCases

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

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": "6ac9c2b619375108206b6a48",
    "title": "OBVIOUS_SAPPHIRE_PALPATINE",
    "published": false,
    "_modules": [],
    "_features": [],
    "_references": [],
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "createdAt": "2026-10-10T04:44:38.238Z",
    "updatedAt": "2026-10-10T04:44:38.238Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://pm-api.ayoune.app/usecases/6ac9c2b619375108206b6a48",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Images",
        "title": "MODEL_IMAGE",
        "href": "https://api.ayoune.app/cms/images",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "cms.images"
      }
    ],
    "debugId": "6ac9c2b619375108206b6aae",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_USECASE",
        "href": "https://api.ayoune.app/pm/usecases/6ac9c2b619375108206b6a48/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_USECASE",
        "href": "https://api.ayoune.app/pm/usecases/6ac9c2b619375108206b6a48",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.77.1",
      "core": "2026.368.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9515",
      "reset": "1791611037",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 47.943097,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend