← Production API
ProductionResources
Singular: ProductionResource — Base URL: https://production-api.ayoune.app — Access: CRUD
Try it now
beta
Response (live)
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": "65e0b1a2121b7d48fe159c83",
"status": "available",
"materialTransport": false,
"productTransport": false,
"machineTransport": false,
"boundToMachine": false,
"width": 0,
"height": 0,
"length": 0,
"volume": 0,
"netWeight": 0,
"maxWeight": 0,
"createdBy": "6045f4d25704710012485569",
"createdAt": "2024-02-29T16:32:34.914Z",
"updatedAt": "2024-02-29T16:32:34.914Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://production-api.ayoune.app/productionresources/65e0b1a2121b7d48fe159c83",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"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": "StorageAreas",
"title": "MODEL_STORAGEAREA",
"href": "https://api.ayoune.app/config/storageareas",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.storageareas"
},
{
"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": "Machines",
"title": "MODEL_MACHINE",
"href": "https://api.ayoune.app/config/machines",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.machines"
}
],
"debugId": "6a6198a22f837abff56457eb",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_PRODUCTIONRESOURCE",
"href": "https://api.ayoune.app/production/productionresources/65e0b1a2121b7d48fe159c83/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_PRODUCTIONRESOURCE",
"href": "https://api.ayoune.app/production/productionresources/65e0b1a2121b7d48fe159c83/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.19.1",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2420",
"reset": "1784784540",
"resetDate": "Thu Jul 23 2026"
},
"responseTime": 300.826265,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /productionresources |
List with filters/pagination | production.productionresources.view |
| GET | /productionresources/:id |
Single record | production.productionresources.view |
| POST | /productionresources |
Create new record | production.productionresources.new |
| PUT | /productionresources |
Update record | production.productionresources.edit |
| DELETE | /productionresources/:id |
Delete record | production.productionresources.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.production.productionResources.find().limit(10).exec();
// Single record
const one = await ay.production.productionResources.findById('OBJECT_ID').exec();
// Create
const created = await ay.production.productionResources.create({ name: 'Foo' });