API reference

updateRestaurantTheme

Required permission: RestaurantSettingsWrite

graphql
updateRestaurantTheme(
  restaurantId: ID!
  patch: RestaurantThemePatch!
): RestaurantTheme

Arguments

Name Type Description
restaurantId ID!
patch RestaurantThemePatch!

Returns

RestaurantTheme

Example

graphql
mutation UpdateRestaurantTheme($restaurantId: ID!, $patch: RestaurantThemePatch!) {
  updateRestaurantTheme(restaurantId: $restaurantId, patch: $patch) {
    lightMode {
      accentColor
      fallbackAccentColor
      primaryColor
      retroProductButtonsDefaultColor
      secondaryColor
    }
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateRestaurantTheme(...) { __typename } }"}'