Skip to content
aYOUne
← Configuration API

ProcedureRuns

Singular: ProcedureRun — Base URL: https://config-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)

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": "6ad66319f6b84ebd398a6485",
    "_procedure": "6ad661cbf6b84ebd398a5b2b",
    "entityType": "Consumers",
    "_entityID": "6acc2d917625d45cca5d29c4",
    "status": "completed",
    "steps": [
      {
        "key": "freigabe",
        "status": "completed",
        "checks": [
          {
            "key": "ok",
            "kind": "manual-confirm",
            "passed": true,
            "evidence": {
              "_by": "5a76d07e2d8b3270ff6df587",
              "at": "2026-10-19T18:37:02.286Z",
              "value": "Abnahme-Test: freigegeben",
              "shares": []
            },
            "shares": []
          }
        ],
        "startedAt": "2026-10-19T18:36:09.176Z",
        "completedAt": "2026-10-19T18:37:02.287Z",
        "shares": []
      }
    ],
    "startedAt": "2026-10-19T18:36:09.176Z",
    "_startedBy": "5a76d07e2d8b3270ff6df587",
    "createdBy": "5a76d07e2d8b3270ff6df587",
    "shares": [],
    "createdAt": "2026-10-19T18:36:09.184Z",
    "updatedAt": "2026-10-19T18:37:02.297Z",
    "completedAt": "2026-10-19T18:37:02.287Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/procedureruns/6ad66319f6b84ebd398a6485",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "Procedures",
        "title": "MODEL_PROCEDURE",
        "href": "https://api.ayoune.app/config/procedures/6ad661cbf6b84ebd398a5b2b",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.procedures"
      }
    ],
    "relations": [
      {
        "rel": "Procedures",
        "title": "MODEL_PROCEDURE",
        "href": "https://api.ayoune.app/config/procedures",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.procedures"
      }
    ],
    "debugId": "6b0653c892a1964c090dd288",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_PROCEDURERUN",
        "href": "https://api.ayoune.app/config/procedureruns/6ad66319f6b84ebd398a6485/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_PROCEDURERUN",
        "href": "https://api.ayoune.app/config/procedureruns/6ad66319f6b84ebd398a6485",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.170.1",
      "core": "2026.393.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "6470",
      "reset": "1795579355",
      "resetDate": "Wed Nov 25 2026"
    },
    "responseTime": 19.238092,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

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

SDK

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

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

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

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

See also