aYOUne
← Produktion API

QualityControls

Singular: QualityControl — Base-URL: https://production-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": "65e0b1a4121b7d48fe159caa",
    "kind": "Wareneingangskontrolle",
    "lotNumber": "",
    "checkPassed": false,
    "createdBy": "6045f4d25704710012485569",
    "checks": [],
    "createdAt": "2024-02-29T16:32:36.692Z",
    "updatedAt": "2024-02-29T16:32:36.692Z",
    "nbr": "FXWHNNT"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://production-api.ayoune.app/qualitycontrols/65e0b1a4121b7d48fe159caa",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Consumers",
        "title": "MODEL_CONSUMER",
        "href": "https://api.ayoune.app/crm/consumers",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "crm.consumers"
      },
      {
        "rel": "QualityControlTemplates",
        "title": "MODEL_QUALITYCONTROLTEMPLATE",
        "href": "https://api.ayoune.app/config/qualitycontroltemplates",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.qualitycontroltemplates"
      },
      {
        "rel": "ProductionOrders",
        "title": "MODEL_PRODUCTIONORDER",
        "href": "https://api.ayoune.app/production/productionorders",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "production.productionorders"
      },
      {
        "rel": "Products",
        "title": "MODEL_PRODUCT",
        "href": "https://api.ayoune.app/pim/products",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "pim.products"
      },
      {
        "rel": "Lots",
        "title": "MODEL_LOT",
        "href": "https://api.ayoune.app/sale/lots",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "sale.lots"
      }
    ],
    "debugId": "6a6198a52f837abff56458a0",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_QUALITYCONTROL",
        "href": "https://api.ayoune.app/production/qualitycontrols/65e0b1a4121b7d48fe159caa/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_QUALITYCONTROL",
        "href": "https://api.ayoune.app/production/qualitycontrols/65e0b1a4121b7d48fe159caa/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.19.1",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2408",
      "reset": "1784784540",
      "resetDate": "Thu Jul 23 2026"
    },
    "responseTime": 188.217057,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend