aYOUne
← Marketing API

PressReleases

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

SDK

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

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

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

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

See also