aYOUne
← HR API

AccessTerminals

Singular: AccessTerminal — Base-URL: https://hr-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": "65e06d861e1be45a37c623c2",
    "active": false,
    "theme": "tolinax-light",
    "restrictTimes": false,
    "restrictTimesFromHour": 6,
    "restrictTimesFromMin": 0,
    "restrictTimesToHour": 18,
    "restrictTimesToMin": 0,
    "allowLeaderBoard": true,
    "allowMessages": true,
    "showDebug": false,
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-29T11:41:58.609Z",
    "updatedAt": "2024-02-29T11:41:58.609Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://hr-api.ayoune.app/accessterminals/65e06d861e1be45a37c623c2",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "IoTDevices",
        "title": "MODEL_IOTDEVICE",
        "href": "https://api.ayoune.app/config/iotdevices",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.iotdevices"
      }
    ],
    "debugId": "6a62e00d59e4802b7b80cd99",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_ACCESSTERMINAL",
        "href": "https://api.ayoune.app/hr/accessterminals/65e06d861e1be45a37c623c2/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_ACCESSTERMINAL",
        "href": "https://api.ayoune.app/hr/accessterminals/65e06d861e1be45a37c623c2/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.11.0",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2480",
      "reset": "1784868377",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 107.213467,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend