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