Update Business Admin

​

Updates a business admin in the Punchh platform

Headers

  • 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".

  • Advertises which content types the client is able to understand

  • Set this header to application/json.

Body

application/json
  • Properties: 11
  • ID of the business admin to be updated

Responses

  • application/json
  • application/json
Request Example for patch/api2/dashboard/business_admins
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/dashboard/business_admins \
  --request PATCH \
  --header 'Authorization: Bearer BUSINESS_ADMIN_KEY_GOES_HERE' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "business_admin_id": "30803",
  "business_admin": {
    "email": "test@example.com",
    "first_name": "FIRST_NAME_GOES_HERE",
    "last_name": "LAST_NAME_GOES_HERE",
    "timezone": "America/Los_Angeles",
    "role_id": 11,
    "location_ids": [
      9,
      10
    ],
    "store_numbers": [
      "21",
      "10"
    ],
    "location_group_ids": [
      "1"
    ],
    "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": 11,
  "business_admin_id": 30803,
  "read_only": false,
  "suspend": false,
  "franchisee_id": 12,
  "locations": [
    {
      "location_id": 9,
      "store_number": "21"
    },
    {
      "location_id": 10,
      "store_number": "10"
    }
  ],
  "location_groups": [
    {
      "location_group_id": 1,
      "name": "New Business Location group"
    }
  ]
}