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