v1

latestOpenAPI 3.1.02026-07-2420077.8 KB
Cost centers

Bulk update cost centers

Archives or unarchives a list of cost centers in a single request. Returns the number of cost centers updated

patch/cost_centers/bulk_update

Headers

Authorizationstring required

Your Perk API key

Request body

archiveboolean required

Set to 'true' to archive the cost centers, or 'false' to unarchive them

id_listinteger[] required

The IDs of the cost centers to archive or unarchive

Example request

{
  "archive": true,
  "id_list": [
    1,
    2,
    3
  ]
}

Response

Returns '200 OK' and the number of cost centers updated.

updated_countinteger

The number of cost centers successfully updated

Example response

{
  "updated_count": 3
}