HomeGuidesAPI ReferenceChangelogDiscussions
API Reference
These docs are for v2.0. Click to read the latest docs for v2024-10-01.

Bulk create updates a Cost center membership

What does it do? Performs an update of cost center memberships for an employee.

The action creates new memberships starting from today, terminating any pre-existing memberships for the employee.
This ensures a history of cost center memberships is preserved.

What does the memberships array look like?

An array of objects with these properties:

  • cost_center_id
  • percentage: A float between 0 and 1 representing the percentage that the employee is assigned to the cost center. For multiple assignments, the sum of percentages must equal 1.0.
    For example, for an employee assigned to cost center 1 during 30% of their time and cost center 2 during 70% of their time, the request parameters would look like: memberships[][cost_center_id]=1&memberships[][percentage]=0.3&memberships[][cost_center_id]=2&memberships[][percentage]=0.7
Language
Credentials
URL
Click Try It! to start a request and see the response here!