post https://api.factorialhr.com/api/v1/core/webhooks
Creates a subscription for a determined webhook type. If webhook already exists, it just changes the target_url.
Webhooks Types
Type | Information |
---|---|
employee_invited | When creating a new employee, optionally you can send an invitation to create an account in Factorial. If you send an invitation, this event gets triggered. |
employee_created | When creating a new employee, after submitting the form, this event gets triggered. |
employee_updated | When updating personal protected employee information such has birthday, this event gets triggered. |
employee_terminated | When terminating an employee, after submitting the form, this event gets triggered |
employee_unterminated | When un terminating an employee, after submitting the form, this event gets triggered |
attendance_clockin | When the user clocks in and starts the timer, this event is triggered. |
attendance_clockout | When the user clocks out and stops the timer, this event is triggered |
attendance_shift_created | When the user creates a shift, this event is triggered |
attendance_shift_updated | When the user edits a shift, this event is triggered |
attendance_shift_deleted | When the user deletes a shift, this event is triggered |
ats_application_created | When a candidate applies for a posting. |
ats_application_updated | When a candidates application for a posting suffers changes. |
ats_job_posting_created | When a job posting is created. |
ats_job_posting_updated | When a job posting is updated. |
ats_job_posting_deleted | When a job posting is deleted. |
timeoff_leave_created | When a Timeoff Leave is created. |
timeoff_leave_destroyed | When a Timeoff Leave is destroyed. |
timeoff_leave_updated | When a Timeoff Leave suffers any changes. |
timeoff_leave_approved | When a Timeoff Leave is explicitly approved. |
timeoff_leave_rejected | When a Timeoff Leave is rejected. |
shift_management_shift_destroyed | When a single Shift Management Shift is destroyed. |
shift_management_shift_bulk_destroyed | When Shift Management Shifts are destroyed in bulk. |
document_created | When a document is created. |
task_created | When a task is created. |
contract_version_created | When a contract version is created. |