Bulk update cost centers

Updates a list of cost centers in a single request. You can archive or unarchive them and/or set their cost object type (type) when that feature is enabled for your organization. Returns the number of cost centers updated. When cost object types are enabled, provide at least one of archive or a non-null type. When the feature is not enabled, archive remains required.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
boolean

Set to 'true' to archive the cost centers, or 'false' to unarchive them. Omit to leave archive state unchanged. Required when cost object types are not enabled for your organization.

id_list
array of integers
required

The IDs of the cost centers to update

id_list*
string | null

Cost object type name to set on all cost centers in id_list. Available only when cost object types are enabled for your organization on request. Non-empty string (max 256 characters). If a type with that name already exists (case-insensitive), it is assigned; otherwise it is created. Omit or null leaves types unchanged. When the feature is enabled, provide at least one of archive or a non-null type. If any listed cost center is Yokoy-sourced and type is set, the request fails with 400 (all-or-nothing).

Headers
string
required

Your Perk API key

Responses

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