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