v1
latestOpenAPI 3.1.02026-07-2420077.8 KBCost centers
Set users to a cost center
Replaces all users assigned to the cost center with the provided list. Any users not in the list are removed from the cost center
put/cost_centers/{id}/users
Path parameters
idstring required
The unique ID of the cost center
Headers
Authorizationstring required
Your Perk API key
Request body
Example request
{
"user_ids": [
42,
43,
44
]
}Response
Returns '200 OK' and the updated cost center resource with the new user list
Example response
{
"id": "1",
"name": "Marketing",
"all_companies": true,
"users": [
{
"id": 42,
"first_name": "Alex",
"last_name": "Chen",
"email": "alex.chen@company.com"
}
],
"count_users": 3,
"erp_code": "CC-4210"
}