aYOUne
← Monitoring API

AdvertisementAssets

Singular: AdvertisementAsset — Base URL: https://monitoring-api.ayoune.app — Access: CRUD

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 /advertisementassets List with filters/pagination monitoring.advertisementassets.view
GET /advertisementassets/:id Single record monitoring.advertisementassets.view
POST /advertisementassets Create new record monitoring.advertisementassets.new
PUT /advertisementassets Update record monitoring.advertisementassets.edit
DELETE /advertisementassets/:id Delete record monitoring.advertisementassets.delete

SDK

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

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

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

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

See also