HomeGuidesAPI ReferenceChangelogDiscussions
API Reference

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
Log in to see full request history
Body Params
integer
required
memberships
array
required
memberships*
integer
required
Response

Response body
array of objects
object
integer
required

The unique identifier of the cost center membership

integer
required

The identifier of the associated employee

integer
required

The identifier of the associated cost center

string
required

The date the employee started being assigned to the cost center

string

The date the em'ployee stopped being assigned to the cost center

number
required

The percentage allocation of the employee to the cost center

Language
Credentials
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json