Discussions

Ask a Question
Back to All

How many new attendances can POST /company/attendances accept?

The docs say "It is possible to add attendances for one or many employees at the same time." but I tried with 92 attendances in the array, and got a 400 Bad Request response.

This is a log of the request body my code generates with random data:

attendances: [
{
employee: 65076448,
date: '2023-10-19',
start_time: '10:34',
end_time: '11:02',
break: 0,
comment: 'd542b10c-fb2d-4a77-aca1-1af29a3655ca'
},
{
employee: 65076448,
date: '2023-11-01',
start_time: '03:47',
end_time: '03:54',
break: 0,
comment: '679a83d3-ab03-4f85-936c-d9b9949c41c5'
},
{
employee: 65076448,
date: '2023-10-24',
start_time: '16:17',
end_time: '16:34',
break: 0,
comment: 'fec467ba-ff1a-4342-aa1d-3582e00e90a2'
},
{
employee: 65076448,
date: '2023-11-08',
start_time: '19:19',
end_time: '20:17',
break: 0,
comment: 'f9ff30f7-d01d-46fe-8958-e6b1966f2222'
},
{
employee: 65076448,
date: '2023-10-28',
start_time: '05:24',
end_time: '06:17',
break: 0,
comment: 'd2d66d49-f1ab-431f-befc-f45fb5e4a633'
}
]