Add/Remove Employees to Accrual Policy

Time Status User Agent
Make a request to see history.

URL Expired

The URL for this request expired after 30 days.

Adds or removes an employee to/from an accrual policy in Zeal's system.

Returns

Returns boolean indicating success status and a list of added or removed employees and corresponding policy code.

attribute type description
success boolean Response status
data array List of newly added or removed employees
errors array Contains list of error objects which consists of:
message: Error message
code: Error code as described in Error codes

companyID

string

required

ID of the company

policy_code

string

required

Unique code assigned to a policy

add_employees

array of strings

Adds an array of employeeIDs to be assigned to the respective policy

remove_employees

array of strings

Removes employees from accrual policy (accepts array of employeeIDs)

``200 200

``400 400

ShellNodeRubyPHPPython

xxxxxxxxxx

curl --request POST \
     --url https://api.zeal.com/accrualPolicyEmployees \
     --header 'accept: application/json' \
     --header 'content-type: application/json'