aYOUne
← Production API

FailureMessages

Singular: FailureMessage — 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": "65e0b19c121b7d48fe159be7",
    "qty": 0,
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-29T16:32:28.660Z",
    "updatedAt": "2024-02-29T16:32:28.660Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://production-api.ayoune.app/failuremessages/65e0b19c121b7d48fe159be7",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Shifts",
        "title": "MODEL_SHIFT",
        "href": "https://api.ayoune.app/hr/shifts",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "hr.shifts"
      },
      {
        "rel": "WorkCenters",
        "title": "MODEL_WORKCENTER",
        "href": "https://api.ayoune.app/production/workcenters",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "production.workcenters"
      },
      {
        "rel": "Machines",
        "title": "MODEL_MACHINE",
        "href": "https://api.ayoune.app/config/machines",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.machines"
      },
      {
        "rel": "ProductionResources",
        "title": "MODEL_PRODUCTIONRESOURCE",
        "href": "https://api.ayoune.app/production/productionresources",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "production.productionresources"
      },
      {
        "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"
      },
      {
        "rel": "ProductionOrders",
        "title": "MODEL_PRODUCTIONORDER",
        "href": "https://api.ayoune.app/production/productionorders",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "production.productionorders"
      }
    ],
    "debugId": "6a61988e2f837abff564531f",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_FAILUREMESSAGE",
        "href": "https://api.ayoune.app/production/failuremessages/65e0b19c121b7d48fe159be7/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_FAILUREMESSAGE",
        "href": "https://api.ayoune.app/production/failuremessages/65e0b19c121b7d48fe159be7/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.19.1",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2493",
      "reset": "1784784540",
      "resetDate": "Thu Jul 23 2026"
    },
    "responseTime": 492.705342,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

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

SDK

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

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

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

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

See also