← Configuration API
LabelFormats
Singular: LabelFormat — Base URL: https://config-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)
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 | /labelformats |
List with filters/pagination | config.labelformats.view |
| GET | /labelformats/:id |
Single record | config.labelformats.view |
| POST | /labelformats |
Create new record | config.labelformats.new |
| PUT | /labelformats |
Update record | config.labelformats.edit |
| DELETE | /labelformats/:id |
Delete record | config.labelformats.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.config.labelFormats.find().limit(10).exec();
// Single record
const one = await ay.config.labelFormats.findById('OBJECT_ID').exec();
// Create
const created = await ay.config.labelFormats.create({ name: 'Foo' });