aYOUne
← Marketing API

Awards

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

SDK

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

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

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

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

See also