Cost centers
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.
patch/cost_centers/bulk_update
Request
- Base URLhttps://api.perk.com
- URLhttps://api.perk.com/cost_centers/bulk_update
- Authnone declared. Required headers: Authorization
Headers
Authorizationstring required
Your Perk API key
Request body
Example request
{
"archive": true,
"id_list": [
1,
2,
3
],
"type": "Department"
}Response
Returns '200 OK' and the number of cost centers updated.
Example response
{
"updated_count": 3
}Changes
No recorded changes to this operation across all 1 revision of this API.