aYOUne
← planning API

PlanningBlocks

Singular: PlanningBlock — Base URL: https://planning-api.ayoune.app — Access: CRUD

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

SDK

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

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

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

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

See also