Add public holidays to staff
This endpoint can bulk add public holidays to a worker. But before adding, you need to get the public holiday id from Data Could -> Get public holiday by country API.
Add public holidays to worker
POST /add-ee-public-holiday
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
Name
Type
Description
customer_id
string
The unique Marco identifier for your company
user_id
number
User ID
public_holidays
list of number
List of public holiday id The public holiday can be get fromData Could -> Get public holiday by country API
Parameter
{
"customer_id": 1,
"user_id": 3593,
"public_holidays": [
1000
]
}Response
{"message":"Public holiday added successfully "}{"message":"Unable to find public holidays"}
{"message":"You have already added public holiday"}Last updated