Zum Inhalt springen
aYOUne
← Konfiguration API

Flags

Singular: Flag — Base-URL: https://config-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": "6ad0db7d217e0dfd7ef48aa3",
    "name": "ecommerce.shipping.mockCarrier",
    "_deployments": [],
    "type": "operational",
    "archived": true,
    "value": "false",
    "createdBy": "5a76d07e2d8b3270ff6df587",
    "children": [],
    "dependencies": [],
    "environments": [],
    "variants": [],
    "shares": [],
    "createdAt": "2026-10-15T13:56:13.867Z",
    "updatedAt": "2026-10-15T14:15:35.904Z",
    "modifiedBy": "5a76d07e2d8b3270ff6df587"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/flags/6ad0db7d217e0dfd7ef48aa3",
        "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"
      }
    ],
    "debugId": "6b06530992a1964c090d13f4",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_FLAG",
        "href": "https://api.ayoune.app/config/flags/6ad0db7d217e0dfd7ef48aa3/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_FLAG",
        "href": "https://api.ayoune.app/config/flags/6ad0db7d217e0dfd7ef48aa3",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.170.1",
      "core": "2026.393.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "8869",
      "reset": "1795579355",
      "resetDate": "Wed Nov 25 2026"
    },
    "responseTime": 18.483707,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend