Update User Cost Center

Allowed Scopes: experimental:user:manage

Set the default cost center of a user of the company the token resolves to, or clear it with null. The cost centers feature must be enabled, and the cost center must be an active cost center of that company. Setting the same cost center again changes nothing, and when several updates of the user's cost center happen at the same time, the last one wins. Users who are admin, account owner or travel manager in the company cannot be updated, and companies whose users are managed by an HRIS integration are refused.

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

ID of the user to update.

Body Params
string | null
required

ID of the cost center to set as the user's default, or null to clear it.

Headers
string

ID of the company the request acts on. Required with an organisation-level token; not needed with a company-level token.

Responses

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