Skip to content
aYOUne
← Configuration API

EnergyNodes

Singular: EnergyNode — 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.

Endpoints

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

SDK

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

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

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

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

See also