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