aYOUne
← Configuration API

AlertCategories

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

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.

Endpoints

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

SDK

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

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

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

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

See also