aYOUne
← HR API

JobOffers

Singular: JobOffer — Base URL: https://hr-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)

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.

Endpoints

MethodPathDescriptionRight
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' });

See also