Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Absentify Leave types API

The Leave types API from Absentify — 3 operation(s) for leave types.

Absentify Leave types API is one of 7 APIs that Absentify publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 14 JSON Schema definitions.

Tagged areas include Leave types. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 14 JSON Schemas.

This API exposes 6 operations across 3 paths, and defines 5 schemas. It is described by OpenAPI 3.1.0, at version 1.0.0.

Requests are made against a single base URL, https://api.absentify.com/api/v1.

6 operations 3 paths 5 schemas 1 DELETE2 GET1 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0
Base URL
https://api.absentify.com/api/v1
Authentication
API Key, API Key
Resource Areas
1

Authentication & Security 2

Absentify Leave types API declares 2 security schemes for authenticating requests. An API key is passed in the header as X-API-KEY (ApiKey). An API key is passed in the header as x-api-key (ApiKeyAuth).

  • ApiKeyAuth — API key from your absentify account settings. Requires Plus plan.

Paths & Operations 6

Across 3 paths, the API surfaces 6 operations — 1 DELETE, 2 GET, 1 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Leave types 6
GET
/leave_types
Absentify Get All Leave Types
leaveTypes-getLeaveTypes → 200400401403404500
POST
/leave_types
Absentify Create a Leave Type
leaveTypes-createLeaveType body → 200400401403500
GET
/leave_types/{id}
Absentify Read a Leave Type by Id
leaveTypes-getLeaveTypeById 1 param → 200400401403404500
PUT
/leave_types/{id}
Absentify Update a Leave Type
leaveTypes-updateLeaveType 1 param body → 200400401403404500
DELETE
/leave_types/{id}
Absentify Delete a Leave Type
leaveTypes-DeleteLeaveTypeById 3 params → 200400401403404500
PUT
/leave_types/{id}/restore
Absentify Restore an Archived Leave Type
leaveTypes-restoreLeaveType 1 param → 200400401403404500

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are error.FORBIDDEN (3 properties), error.INTERNAL_SERVER_ERROR (3 properties), error.NOT_FOUND (3 properties), error.UNAUTHORIZED (3 properties). Each schema is shown below with its type and property counts.

error.BAD_REQUEST
object
The error information
3 properties 2 required
error.UNAUTHORIZED
object
The error information
3 properties 2 required
error.NOT_FOUND
object
The error information
3 properties 2 required
error.INTERNAL_SERVER_ERROR
object
The error information
3 properties 2 required
error.FORBIDDEN
object
The error information
3 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

absentify-leave-types-api-openapi.yml Raw ↑

Other APIs Absentify publishes across the network.

Absentify Absences API
Absentify Departments API
Absentify Members API
Absentify Public holidays API
Absentify Requests API
Absentify Workspace API