Skip to main content
POST
/
absence_types
Abwesenheitsart erstellen
curl --request POST \
  --url https://{tenant}.stamp.eu/rest/absence_types \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "slug": "<string>",
  "name": "<string>",
  "category": "<string>",
  "unit": "day",
  "substitute_option": "<string>",
  "color": "<string>",
  "icon": "<string>",
  "half_day_allowed": true,
  "affects_vacation": true,
  "target_work_factor": 0.5,
  "working_time_flag": 123,
  "requires_approval": true,
  "is_paid": true,
  "certificate_required": true,
  "certificate_deadline_days": 2,
  "count_weekdays_only": true,
  "sort_order": 1
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "slug": "<string>",
    "name": "<string>",
    "category": "<string>",
    "unit": "day",
    "color": "<string>",
    "icon": "<string>",
    "is_system": true,
    "half_day_allowed": true,
    "affects_vacation": true,
    "target_work_factor": 0.5,
    "working_time_flag": 123,
    "requires_approval": true,
    "is_paid": true,
    "certificate_required": true,
    "certificate_deadline_days": 123,
    "substitute_option": "<string>",
    "count_weekdays_only": true,
    "is_active": true,
    "sort_order": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
slug
string
required
Maximum string length: 100
Pattern: ^[a-z0-9_]+$
name
string
required
Maximum string length: 255
category
string
required
unit
enum<string>
required
Available options:
day,
hour
substitute_option
string
required
color
string
Maximum string length: 7
Pattern: ^#[0-9A-Fa-f]{6}$
icon
string
Maximum string length: 100
half_day_allowed
boolean
affects_vacation
boolean
target_work_factor
number
Required range: 0 <= x <= 1
working_time_flag
integer
requires_approval
boolean
is_paid
boolean
certificate_required
boolean
certificate_deadline_days
integer
Required range: x >= 1
count_weekdays_only
boolean
sort_order
integer
Required range: x >= 0

Response

AbsenceTypeResource

data
object
required