Cost centers
Set access configuration for a cost center
Updates the access configuration (access_type, user_ids, group_ids) for the cost center.
put/cost_centers/{id}/access
Request
- Base URLhttps://api.perk.com
- URLhttps://api.perk.com/cost_centers/{id}/access
- 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
{
"access_type": "specificUsersOrUserGroups",
"group_ids": [
"11111111-1111-1111-1111-111111111111"
],
"user_ids": [
123,
456
]
}Response
Returns '200 OK' and the updated cost center resource with the new access configuration.
Example response
{
"access_type": "specificUsersOrUserGroups",
"count_groups": 1,
"count_users": 1,
"erp_code": "CC-4210",
"groups": [
{
"id": "11111111-1111-1111-1111-111111111111",
"name": "Sales Team"
}
],
"id": "1",
"name": "Marketing",
"type": "Department",
"users": [
{
"email": "alex.chen@company.com",
"first_name": "Alex",
"id": 123,
"last_name": "Chen"
}
],
"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.