Create Business Admin
Creates a business admin in the Punchh platform
Headers
- Type: stringAuthorizationrequired
Bearer token for admin authorization, who is making a call on behalf of the customer. Send the API key in the following format: "Authorization: Bearer BUSINESS_ADMIN_KEY_GOES_HERE".
- Type: stringAcceptrequired
Advertises which content types the client is able to understand
- Type: stringContent
- Type requiredSet this header to application/json.
Body
application/json
- Properties: 12Type: objectbusiness
_admin
Responses
- application/json
- application/json
Request Example for post/api2/dashboard/business_admins
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/dashboard/business_admins \
--request POST \
--header 'Authorization: Bearer BUSINESS_ADMIN_KEY_GOES_HERE' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"email": "test@example.com",
"first_name": "FIRST_NAME_GOES_HERE",
"last_name": "LAST_NAME_GOES_HERE",
"timezone": "America/Los_Angeles",
"location_ids": [
310969,
310971
],
"store_numbers": [
68,
70
],
"role_id": 214,
"location_group_ids": [
2086,
1619
],
"read_only": false,
"suspend": false,
"franchisee_id": 12
}'
{
"email": "test@example.com",
"first_name": "FIRST_NAME_GOES_HERE",
"last_name": "LAST_NAME_GOES_HERE",
"timezone": "America/Los_Angeles",
"role_id": 214,
"business_admin_id": 5399,
"read_only": false,
"suspend": false,
"franchisee_id": 12,
"locations": [
{
"location_id": 310969,
"store_number": " 68"
},
{
"location_id": 310971,
"store_number": " 70"
}
],
"location_groups": [
{
"location_group_id": 1619,
"name": "Location Group 1"
},
{
"location_group_id": 2086,
"name": "Location Group 2"
}
]
}