Update cost center

Updates a cost center. You can update the name, archive status, approver, delegate, and delegate expiry. Passing 'null' for 'approver_id', 'delegate_id', or 'delegate_expiry' does not clear those fields; they remain unchanged

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The unique ID of the cost center

Body Params
string

The new name for the cost center

boolean

Set to 'true' to archive the cost center, or 'false' to unarchive it

integer

The ID of the user to set as approver. The user must belong to one of the cost center's companies. Passing 'null' does not clear the field

integer

The ID of the user to set as delegate. The delegate must belong to one of the cost center's companies. Passing 'null' does not clear the field

string

The expiry date for the delegate in YYYY-MM-DD format. Passing 'null' does not clear the field

string

Identifier used to associate this cost center with a corresponding record in an external ERP system

company_ids
array of integers

IDs of companies this cost center is scoped to. Must be provided together with 'all_companies'. At least one company required when 'all_companies' is false. Ignored when 'all_companies' is true (company scope is set to all companies in the account). Omit both fields to leave unchanged.

company_ids
boolean

Whether the cost center applies to all companies in the account. Must be provided together with 'company_ids'. When true, 'company_ids' is ignored and the cost center is scoped to all companies in the account. Omit both fields to leave unchanged.

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