← Export API
ConsumerChannels
Singular: ConsumerChannel — Base-URL: https://export-api.ayoune.app — Zugriff: CRUD
Jetzt ausprobieren
beta
Response (live)
Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.
Beispiel-Response (aufgezeichnet) Beispiel
Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.
{
"payload": {
"restrictions": {
"teams": [],
"users": []
},
"_id": "65e0b0b8121b7d48fe1586cc",
"check": false,
"valid": false,
"share": false,
"key": "",
"url": "",
"booleanAs": "yn",
"delimiter": ",",
"quotes": "\"",
"hasCSVColumnTitle": true,
"ending": "default",
"encoding": "utf8",
"flag_export": "none",
"flag_export_date": "none",
"createdBy": "6045f4d25704710012485569",
"fields": [],
"createdAt": "2024-02-29T16:28:40.673Z",
"updatedAt": "2024-02-29T16:28:40.673Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://export-api.ayoune.app/consumerchannels/65e0b0b8121b7d48fe1586cc",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [],
"debugId": "6a62dffac18c2749f553f74f",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_CONSUMERCHANNEL",
"href": "https://api.ayoune.app/export/consumerchannels/65e0b0b8121b7d48fe1586cc/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_CONSUMERCHANNEL",
"href": "https://api.ayoune.app/export/consumerchannels/65e0b0b8121b7d48fe1586cc/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.0.2",
"core": "2026.234.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2474",
"reset": "1784868359",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 95.15438,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /consumerchannels |
Liste mit Filtern/Paginierung | export.consumerchannels.view |
| GET | /consumerchannels/:id |
Einzelner Datensatz | export.consumerchannels.view |
| POST | /consumerchannels |
Neuen Datensatz erstellen | export.consumerchannels.new |
| PUT | /consumerchannels |
Datensatz aktualisieren | export.consumerchannels.edit |
| DELETE | /consumerchannels/:id |
Datensatz löschen | export.consumerchannels.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.export.consumerChannels.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.export.consumerChannels.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.export.consumerChannels.create({ name: 'Foo' });