aYOUne
← Production API

MachineUtilizations

Singular: MachineUtilization — Base URL: https://production-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": "65e0b19f121b7d48fe159c35",
    "_productionOrders": [],
    "_assignments": [],
    "_products": [],
    "utilization": 0,
    "maxUtilizationValue": 0,
    "currentUtilizationValue": 0,
    "minUtilization": 100,
    "maxUtilization": 100,
    "utilizationMode": "dimension",
    "maxWeight": 10000000,
    "maxWeightUnit": "Kilogramm",
    "maxWidth": 10000000,
    "maxWidthUnit": "Meter",
    "maxLength": 10000000,
    "maxLengthUnit": "Meter",
    "maxHeight": 10000000,
    "maxHeightUnit": "Meter",
    "maxVolume": 10000000,
    "maxVolumeUnit": "Kubikmeter",
    "status": "",
    "running": false,
    "totalTime": 0,
    "totalTimeHours": 0,
    "totalTimeDays": 0,
    "totalTimeWeeks": 0,
    "totalTimeMonths": 0,
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-29T16:32:31.448Z",
    "updatedAt": "2024-02-29T16:32:31.448Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://production-api.ayoune.app/machineutilizations/65e0b19f121b7d48fe159c35",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Machines",
        "title": "MODEL_MACHINE",
        "href": "https://api.ayoune.app/config/machines",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.machines"
      }
    ],
    "debugId": "6a6198982f837abff564555c",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_MACHINEUTILIZATION",
        "href": "https://api.ayoune.app/production/machineutilizations/65e0b19f121b7d48fe159c35/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_MACHINEUTILIZATION",
        "href": "https://api.ayoune.app/production/machineutilizations/65e0b19f121b7d48fe159c35/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.19.1",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2462",
      "reset": "1784784540",
      "resetDate": "Thu Jul 23 2026"
    },
    "responseTime": 206.826007,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

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

SDK

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

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

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

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

See also