← Marketing API
aYOUneAdvertisementGroups
Singular: aYOUneAdvertisementGroup — Base URL: https://marketing-api.ayoune.app — Access: CRUD
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /ayouneadvertisementgroups |
List with filters/pagination | marketing.ayouneadvertisementgroups.view |
| GET | /ayouneadvertisementgroups/:id |
Single record | marketing.ayouneadvertisementgroups.view |
| POST | /ayouneadvertisementgroups |
Create new record | marketing.ayouneadvertisementgroups.new |
| PUT | /ayouneadvertisementgroups |
Update record | marketing.ayouneadvertisementgroups.edit |
| DELETE | /ayouneadvertisementgroups/:id |
Delete record | marketing.ayouneadvertisementgroups.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.marketing.aYOUneAdvertisementGroups.find().limit(10).exec();
// Single record
const one = await ay.marketing.aYOUneAdvertisementGroups.findById('OBJECT_ID').exec();
// Create
const created = await ay.marketing.aYOUneAdvertisementGroups.create({ name: 'Foo' });