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
}
}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
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
100^[a-z0-9_]+$255day, hour 7^#[0-9A-Fa-f]{6}$1000 <= x <= 1x >= 1x >= 0AbsenceTypeResource
Show child attributes