← planning API
PlanningScenarios
Singular: PlanningScenario — Base URL: https://planning-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 | /planningscenarios |
List with filters/pagination | planning.planningscenarios.view |
| GET | /planningscenarios/:id |
Single record | planning.planningscenarios.view |
| POST | /planningscenarios |
Create new record | planning.planningscenarios.new |
| PUT | /planningscenarios |
Update record | planning.planningscenarios.edit |
| DELETE | /planningscenarios/:id |
Delete record | planning.planningscenarios.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.planning.planningScenarios.find().limit(10).exec();
// Single record
const one = await ay.planning.planningScenarios.findById('OBJECT_ID').exec();
// Create
const created = await ay.planning.planningScenarios.create({ name: 'Foo' });