aYOUne
← CMS API

DownloadLists

Singular: DownloadList — Base URL: https://cms-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 /downloadlists List with filters/pagination cms.downloadlists.view
GET /downloadlists/:id Single record cms.downloadlists.view
POST /downloadlists Create new record cms.downloadlists.new
PUT /downloadlists Update record cms.downloadlists.edit
DELETE /downloadlists/:id Delete record cms.downloadlists.delete

SDK

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

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

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

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

See also