aYOUne
← Configuration API

Attributes

Singular: Attribute — Base URL: https://config-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.

Example response (recorded) sample

A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.

{
  "payload": {
    "tableSettings": {
      "headers": []
    },
    "listsettings": {
      "conditions": []
    },
    "_id": "65e0afdf121b7d48fe155d70",
    "models": [],
    "showAttributesOnTyp": [],
    "requiredCalculationAttributes": [],
    "createdBy": "6045f4d25704710012485569",
    "allocations": [],
    "values": [],
    "createdAt": "2024-02-29T16:25:03.678Z",
    "updatedAt": "2024-02-29T16:25:03.678Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://pim-api.ayoune.app/attributes/65e0afdf121b7d48fe155d70",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6a619825ef646eb812608188",
    "errors": [],
    "actions": [],
    "version": {
      "host": "2026.15.0",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2447",
      "reset": "1784784423",
      "resetDate": "Thu Jul 23 2026"
    },
    "responseTime": 19.68927,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

MethodPathDescriptionRight
GET /attributes List with filters/pagination config.attributes.view
GET /attributes/:id Single record config.attributes.view
POST /attributes Create new record config.attributes.new
PUT /attributes Update record config.attributes.edit
DELETE /attributes/:id Delete record config.attributes.delete

SDK

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

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

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

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

See also