Cost 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
Request
- Base URLhttps://api.perk.com
- URLhttps://api.perk.com/cost_centers/{id}/users
- Authnone declared. Required headers: Authorization
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",
"type": "Department",
"all_companies": true,
"companies": [
1,
2
],
"users": [
{
"id": 42,
"first_name": "Alex",
"last_name": "Chen",
"email": "alex.chen@company.com"
}
],
"count_users": 3,
"erp_code": "CC-4210",
"owner_ids": [
789,
790
],
"owners": [
{
"id": 789,
"first_name": "Sam",
"last_name": "Patel",
"email": "sam.patel@company.com"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.